summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/hub.txt7
1 files changed, 7 insertions, 0 deletions
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%