drafenous
New Member
- Joined
- Nov 8, 2017
- Messages
- 7
- Reaction score
- 1
Hello my friends!
I'm making a NPC for travel to Gengia, Pyro and Oken in my server.
But my npc can't travel to destination on say "yes".
Here is my script:
Here is the NPC interaction:
I'm making a NPC for travel to Gengia, Pyro and Oken in my server.
But my npc can't travel to destination on say "yes".
Here is my script:
Lua:
if (msgcontains(msg, "gengia")) then
if(vip.hasVip(cid) == true) then
npcHandler:say("Do you want to sail to Gengia for free?",cid)
Topic[cid] = 4
elseif (Topic[cid] == 4) then
if (msgcontains(msg, 'yes')) then
doTeleportThing(cid,{x = 31270, y = 31181, z = 6})
doSendMagicEffect({x = 31270, y = 31181, z = 6},CONST_ME_TELEPORT)
else
npcHandler:say("You dont have enough of gold.",cid)
end
else
npcHandler:say("Sorry, only VIP Players can travel there.",cid)
end
end
Here is the NPC interaction: