Lbtg
Advanced OT User
- Joined
- Nov 22, 2008
- Messages
- 2,398
- Reaction score
- 165
php code:
function onCastSpell(cid, var)
local function doTeleport(cid, count)
if (not isPlayer(cid)) then
return true
end
doSendAnimatedText(getCreaturePosition(cid), (30 - count).."s", COLOR_ORANGE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_YELLOW_RINGS)
if (count == 30) then
return doCreatureSetNoMove(cid, false) and doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
else
addEvent(doTeleport, 1000, cid, count + 1)
end
return true
end
return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0)
end
i want someone on this script add that people cant use this spell with pz , and second thing using this spell you loss 20k
function onCastSpell(cid, var)
local function doTeleport(cid, count)
if (not isPlayer(cid)) then
return true
end
doSendAnimatedText(getCreaturePosition(cid), (30 - count).."s", COLOR_ORANGE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_YELLOW_RINGS)
if (count == 30) then
return doCreatureSetNoMove(cid, false) and doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
else
addEvent(doTeleport, 1000, cid, count + 1)
end
return true
end
return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0)
end
i want someone on this script add that people cant use this spell with pz , and second thing using this spell you loss 20k