Quote:
Quest Request:
when player is lvl105 ...
Player go to a npc and have 4 options to teleport to diferents maps!
Thank You!
Code:
quest teleport105 begin
state start begin
when NPCVNUM.chat."Teleport" begin
local map_data = {
{xxxx, yyyy},
{xxxx, yyyy},
{xxxx, yyyy},
{xxxx, yyyy}
}
say("Where do you want to go?")
local s = map_data[select("1", "2", "3", "4", "Cancel")] or false
if not s then return end
while pc.can_warp() != true do
say("You cannot warp.")
say("You have to wait a few seconds ...")
if select("Try again", "Cancel") == 2 then return end
end
pc.warp(s[1], s[2])
end
end
end