From c856b07c45aed6c5842ee19a940f7e76f780221c Mon Sep 17 00:00:00 2001 From: Atemo Date: Thu, 23 Aug 2018 15:49:32 +0200 Subject: [PATCH] Suggestion of 'killedgid', variable set when a monster is killed containing the monster game ID (#3418) --- doc/script_commands.txt | 10 ++++++---- src/map/map.hpp | 1 + src/map/mob.cpp | 3 +++ src/map/pc.cpp | 4 ++++ src/map/pc.hpp | 2 +- src/map/script_constants.hpp | 1 + 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index d88ef1e6a2..26e0b4b6ab 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -943,8 +943,9 @@ This special label triggers when a player kills another player. The variable OnNPCKillEvent: -This special label triggers when a player kills a monster without label. The variable -'killedrid' is set to the Class (mob ID) of the monster killed. +This special label triggers when a player kills a monster without label. +The variable 'killedrid' is set to the Class (mob ID) of the monster killed. +The variable 'killedgid' is set to the ID (unique mob game ID) of the monster killed. OnPCLoadMapEvent: @@ -6052,8 +6053,9 @@ The only very special thing about this command is an event label, which is an optional parameter. This label is written like '::