summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-08 23:44:45 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-08 23:44:45 -0200
commit1dd948bff321d23657f8cc1e7b5847ec947f65b8 (patch)
tree856ab870e8eabf68dcd0be40a0a93773a4b64b77
parentabd3a36c49df86834ef2ee77f3eec2b5e17ec798 (diff)
downloadserverdata-1dd948bff321d23657f8cc1e7b5847ec947f65b8.tar.gz
serverdata-1dd948bff321d23657f8cc1e7b5847ec947f65b8.tar.bz2
serverdata-1dd948bff321d23657f8cc1e7b5847ec947f65b8.tar.xz
serverdata-1dd948bff321d23657f8cc1e7b5847ec947f65b8.zip
Prepare to give players experience on PK. Currently in pre-alpha stage.
-rw-r--r--npc/functions/mobpoint.txt17
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;
+
}