• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Failed to configure event

alright, i try it;

in creaturescript.xml

<event type="HealthChange" name="creaturescript" script="creaturescript.lua" />

in login.lua

player:registerEvent("HealthChange")

the spell is,

function onCastSpell(creature, variant, isHotkey)
local player = Player(creature)
player:getPosition():sendMagicEffect(CONST_ME_FLESH)

local t = 10000
local v = 100
local resist = Condition(CONDITION_ATTRIBUTES)
resist:setParameter(CONDITION_PARAM_TICKS, t)
resist:setParameter(CONDITION_PARAM_SUBID, 107)
player:setStorageValue(5, v)
resist:setParameter(CONDITION_PARAM_BUFF_SPELL, true)
player:addCondition(resist)
return true
end



no error now, but no make nothing.
 
is it, thanks Xikini and Stigma.
I realized that I could not put 2 conditions (100% res. death and -100% res holy) so I started messing with the script and rolled everything up.
Its possible add 2 resist using that script?
 
Back
Top