diff options
-rw-r--r-- | npc/functions/mobpoint.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index c89903b3f..8bb2148e4 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -39,4 +39,21 @@ OnNPCKillEvent: callfunc "SQuest_Hasan"; end; +// When you kill a player, some special care is needed +OnPCKillEvent: + // killedrid + // This is actually just a bunch of tests. + if (is_staff()) { + // First: Assume the killedrid is the actual Account ID + dispbottom l("ID: @@", killedrid); + getexp readparam(BaseLevel, killedrid), 0; + .@killed$=strcharinfo(0,"error",killedrid); + dispbottom l("You murder @@ in cold blood.", .@killed$); + // Second: Assume the killedrid is actually the Char ID + .@killed$=strcharinfo(0,"error",charid2rid(killedrid)); + dispbottom l("In case of false positive, @@ was murdered.", .@killed$); + } + + end; + } |