From 70bb55ed06c8d165a20880e3848a3ddeee02b5b4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 15 May 2020 12:58:54 -0300 Subject: Automatize Kill the GM events. Now any GM murder on a PvP map will automatically yield a Murderer Crown for a week. For manual events, remember: use @item, event system to remove, and use @killable instead of @pvpon. --- npc/functions/hub.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 3832b02a6..041827347 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -369,6 +369,7 @@ function script HUB_PvP { .@bxp=max(readparam(BaseLevel, killedrid), .@def); .@jxp=readparam(JobLevel, killedrid); .@m$=getmap(); + .@gm=getgroupid(killedrid); // This is an official PVP Map if (ispvpmap(.@m$)) { @@ -383,6 +384,12 @@ function script HUB_PvP { HONOR+=.@honor; // It's negative. } + // PvP, and a GM was slain + if (.@gm >= 80) { + rentitem MurdererCrown, (86400*7); // 1 week + kamibroadcast("%s killed Game Master \"%s\", and now may wear a %s for a week.", strcharinfo(0), strcharinfo(0, "", killedrid), getitemlink(MurdererCrown)); + } + // It was a duel! } else { // Honorable Duel: HONOR +30% -- cgit v1.2.3-70-g09d2