Hello! Its possible to add function to this script
if someone got pz the rune will not work.
Thanks
PHP:
local newPos = {
x = 780,
y = 699,
z = 7
}
local delayInSeconds = 60
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
function onCastSpell(cid, var)
if (getPlayerStorageValue(cid, 1232) < os.clock()) then
setPlayerStorageValue(cid, 1232, (os.clock() + delayInSeconds))
doTeleportThing(cid,newPos)
doSendMagicEffect(newPos,10)
doCombat(cid, combat, var)
return true
end
return true
end
if someone got pz the rune will not work.
Thanks