GOD Wille
Excellent OT User
Tell me how to do so ppl cant atk in pz with this rune
They cant in just normal mode but when they sd in battle it works, please help.
nobody know???
They cant in just normal mode but when they sd in battle it works, please help.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -24.2 , -1800, -24.3, 1800)
function onCastSpell(cid, var)
if not(getTileInfo(getPlayerPosition(cid)).protection) then
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You can't use Sudden Death in a protected zone.")
end
end
nobody know???
Last edited: