Donio
Banned User
Hello.. I need some help to do No pz when you use this tp script..
When you got skull, or just killed someone means you cant use this spell until the pz is gone.. anyone knows how to do that? =)
Also so a message appears when you have been tped to temple.. like "You have been teleported to temple" or something
Code:
function onCastSpell(cid, var)
local function doTeleport(cid, count)
if (not isPlayer(cid)) then
return true
end
doSendAnimatedText(getCreaturePosition(cid), (5 - count).."s", COLOR_ORANGE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_YELLOW_RINGS)
if (count == 5) then
return doCreatureSetNoMove(cid, false) and doTeleportThing(cid,{x=1000,y=999,z=7})
else
addEvent(doTeleport, 1000, cid, count + 1)
end
return true
end
return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0)
end
When you got skull, or just killed someone means you cant use this spell until the pz is gone.. anyone knows how to do that? =)
Also so a message appears when you have been tped to temple.. like "You have been teleported to temple" or something