summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-15 12:58:54 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-15 12:58:54 -0300
commit70bb55ed06c8d165a20880e3848a3ddeee02b5b4 (patch)
tree9728f97b972563ac41599ea344d46060bdf7358e /npc/functions
parent1910c64b8fed6aa558e74147cfa73fddffe8a6b1 (diff)
downloadserverdata-70bb55ed06c8d165a20880e3848a3ddeee02b5b4.tar.gz
serverdata-70bb55ed06c8d165a20880e3848a3ddeee02b5b4.tar.bz2
serverdata-70bb55ed06c8d165a20880e3848a3ddeee02b5b4.tar.xz
serverdata-70bb55ed06c8d165a20880e3848a3ddeee02b5b4.zip
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.
Diffstat (limited to 'npc/functions')
-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%