how to make it like buy menu
Examples is like in tibia when we say hi to npc
pls help me
Scripts
how to make a buy menu??
how to make a buy menu??
1

addhook("usebutton","but")
function but(id,x,y)
if (x == X coordinate and y == Y coordinate) the
menu(id,"Menu,Npc menu")
end
end
addhook("menu,"md")
function md(id,title,button)
if title == "Menu" then
end
end
addhook("movetile","tilemove")
function tilemove(id,x,y)
if x == 20 and y == 4 then -- Change the 20 and 4 tile to yours
	 menu(id,'max,150HP|$1000,200HP|$5000,250HP|$10000') -- Example
end
end
1
