• 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!

Problem differentiating ORIGIN between WEAPON and SPELL

Luan Luciano

Member
Joined
Apr 28, 2014
Messages
60
Reaction score
22
GitHub
luanluciano93
I'm creating a life leech system, but I want it to be done only by attacks with enchanted weapons ...

Lua:
onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)

I edited a new wand by the weapons file... but its 'origin' damage is ORIGIN_SPELL, just like any other spells, how could I differentiate them?
 
Back
Top