• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua onGainExperience for summons

hellboy

Intermediate OT User
Joined
Apr 6, 2008
Messages
549
Solutions
6
Reaction score
124
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