From 1dd948bff321d23657f8cc1e7b5847ec947f65b8 Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Tue, 8 Jan 2019 23:44:45 -0200
Subject: Prepare to give players experience on PK. Currently in pre-alpha
 stage.

---
 npc/functions/mobpoint.txt | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

(limited to 'npc/functions')

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;
+
 }
-- 
cgit v1.2.3-70-g09d2