norse123
Member
- Joined
- Jun 26, 2010
- Messages
- 1,193
- Reaction score
- 19
Hey,
Can someone fix this Tp Scroll for me?
I want it to make a countdown from 10-0 and then it takes u to temple.
And you can use it again after 60seonds.
Heres the script
Can someone fix this Tp Scroll for me?
I want it to make a countdown from 10-0 and then it takes u to temple.
And you can use it again after 60seonds.
Heres the script
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = getThingPos(cid)
if getTileInfo(pos).protection then
doPlayerSendCancel(cid, 'You cannot use this inside a protection zone.')
elseif getCreatureCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, 'You can\'t teleport immediately after fight.')
else
doTeleportThing(cid, getPlayerMasterPos(cid))
doSendMagicEffect(pos, 66)
doSendAnimatedText(pos, 'Teleport!', 16)
return true
end
return doSendMagicEffect(pos, CONST_ME_POFF)
end