MadMOOK
Hoo
- Joined
- Apr 20, 2011
- Messages
- 802
- Reaction score
- 44
This script is supposed to check level and take tokens to teleport u and if it dont, then get message..
Right now it does not check level and only thing that works is teleport no matter what xD
Right now it does not check level and only thing that works is teleport no matter what xD
Code:
local p = {x=2079, y=1992, z=11}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 25 then
if getPlayerItemById(cid, 6527, 10) then
doRemoveItem(cid, 6527, 10)
doTeleportThing(cid, p)
else
doSendMagicEffect(p, CONST_ME_TELEPORT)
doPlayerSendCancel(cid, "You have to be below level 25 and have 10 instance tokens.")
doSendMagicEffect(cid, CONST_ME_POFF)
end
doTransformItem(item.uid, item.itemid == 1946 and 1945 or 1946)
return true
end
end
Last edited: