• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Lua onGainExperience for summons

hellboy

Intermediate OT User
Joined
Apr 6, 2008
Messages
500
Solutions
4
Reaction score
101
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.
 
Top