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

Lua onGainExperience for summons

hellboy

Intermediate OT User
Joined
Apr 6, 2008
Messages
544
Solutions
6
Reaction score
121
Location
player:getTown()
It's possible to get experience "gained" by summon, when it done any dmg, but someone else killed target?

As I can see in events.cpp onGainExperience is set only for metatable "Player".
In creatureevent.cpp I see preparedeath, death, kill.

Lua:
onPrepareDeath(creature, killer)
onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
onKill(creature, target)

I can't see any damage map or anything similar.
 
Back
Top