Well,
Im trying to make a script that you damage max 5 on the monster named blocker. But the script just doesnt execute. It doesnt print anything on the console. Also any tips about how to make it just max damage 5?
Thanks in advice.
Im trying to make a script that you damage max 5 on the monster named blocker. But the script just doesnt execute. It doesnt print anything on the console. Also any tips about how to make it just max damage 5?
LUA:
function onStatsChange(cid, attacker, type, combat, value)
if getCreatureName(cid) == "Blocker" then
if(isPlayer(attacker) and (type == STATSCHANGE_MANALOSS or type == STATSCHANGE_HEALTHLOSS)) then
print("it Works")
end
end
return true
end
Thanks in advice.