damian00912
Member
- Joined
- Sep 11, 2009
- Messages
- 90
- Reaction score
- 6
Hallo!
I very need change for example fire bomb rune script, so that it only deals damage to players, not monsters.
Someone can help me please?
Thanks you so much!
I very need change for example fire bomb rune script, so that it only deals damage to players, not monsters.
Someone can help me please?
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_FIREFIELD_PVP_FULL)
combat:setArea(createCombatArea(AREA_SQUARE1X1))
function onCastSpell(creature, var, isHotkey)
return combat:execute(creature, var)
end
Thanks you so much!