diff options
author | Hello=) <hello@themanaworld.org> | 2024-11-16 18:46:07 +0300 |
---|---|---|
committer | Hello=) <hello@themanaworld.org> | 2024-11-16 18:46:07 +0300 |
commit | 271b53b153c3a05b9604b365c7f4ba076fdbc8c4 (patch) | |
tree | 490b5c800ef81a6d5631f275ec671bda0b2d38da /deps | |
parent | 7df2af70b994abc56f9178128e5d7549f04b712b (diff) | |
download | tmwa-271b53b153c3a05b9604b365c7f4ba076fdbc8c4.tar.gz tmwa-271b53b153c3a05b9604b365c7f4ba076fdbc8c4.tar.bz2 tmwa-271b53b153c3a05b9604b365c7f4ba076fdbc8c4.tar.xz tmwa-271b53b153c3a05b9604b365c7f4ba076fdbc8c4.zip |
Expose X and Y of killed mob to OnMobKillEvent script event (for slime split, etc)
Rationale:
OnMobKillEvent invoked under PLAYER's RID - so using e.g. POS_X and
POS_Y returns PLAYER's coordinates when kill occured. The only extra data
available been @mobID - giving killed mob's type (class).
However, to "split" slimes I need to spawn few new mobs right on location
where kill occured - or some area around this spot, not player's X/Y.
This commit exposes 2 new variables set by server, @mob_X and @mob_Y
containing mob's X and Y coordinates when kill happened.
This is server-code change needed by relevant scripts.
Scripts itself would be landed a bit later to serverdata.
Diffstat (limited to 'deps')
0 files changed, 0 insertions, 0 deletions