Zarabustor
Human Being
Code:
if getPlayerStorageValue(cid, 558555) > os.time() then
if (getPlayerStorageValue(cid, 558555) - os.time()) == 1 then
letter = ""
else
letter = "s"
end
doPlayerSendCancel(cid, 'You must wait ' .. getPlayerStorageValue(cid, 558555) - os.time() .. ' second' .. letter .. '.')
doSendMagicEffect(position, 2)
return TRUE
elseif getCreatureCondition(cid, CONDITION_EXHAUST) == FALSE and getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE then
doCreateTeleport(1387, temple, topos)
doSendMagicEffect(topos, 10)
doSendMagicEffect(topos, 55)
doSendMagicEffect(topos, 56)
setPlayerStorageValue(cid, 558555, os.time() + exhausttime)
doSendAnimatedText(topos, '10', TEXTCOLOR_RED)
addEvent(nineSeconds, 1000)
addEvent(eightSeconds, 2000)
addEvent(sevenSeconds, 3000)
addEvent(sixSeconds, 4000)
addEvent(fiveSeconds, 5000)
addEvent(fourSeconds, 6000)
addEvent(threeSeconds, 7000)
addEvent(twoSeconds, 8000)
addEvent(oneSecond, 9000)
addEvent(removeTP, 10000)
else
doPlayerSendCancel(cid, 'You are in a fight!')
end
return TRUE
end
Could you please help me to add this advanced teleport (is the end of the scrtip) but i want that the item cant be used on PZ, when you try to use in a PZ says something like Destination not ranchable
Adding rep if you help me+9