Angel Of Death
Rise Of Tibia ServerOwner
- Joined
- Mar 12, 2012
- Messages
- 91
- Reaction score
- 0
i need a talkaction that requests the right password before continuing with the script
function onSay(cid, words, param, channel)
if(param == "secretPaSsWoRd") then
-- here code to execute when good password
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong password!")
end
return false
end
function onSay(cid, words, param, channel)
if(words == "RiseOfTibia") then
doTeleportThing(cid,{x=1398, y=1525, z=12})
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Test Hall.")
doSendMagicEffect(getThingPos(cid),CONT_ME_TELEPORT)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong password!")
doSendMagicEffect(getThingPos(cid),CONT_ME_POFF)
end
return true
end
function onSay(cid, words, param, channel)
if(param == "RiseOfTibia") then
doTeleportThing(cid, {x = 1398, y = 1525, z = 12})
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Test Hall")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong password!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return false
end