summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-23 18:56:42 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-23 18:56:42 -0300
commit64d3f000649ca78616ac1038e0490fe8e855b314 (patch)
tree799ca4e9d32eb594d4503c76e3a83bdc8dfc0344 /npc/functions
parent10dc6a79dbb9c2ab246e958b97ddc206d9ac9cf2 (diff)
downloadserverdata-64d3f000649ca78616ac1038e0490fe8e855b314.tar.gz
serverdata-64d3f000649ca78616ac1038e0490fe8e855b314.tar.bz2
serverdata-64d3f000649ca78616ac1038e0490fe8e855b314.tar.xz
serverdata-64d3f000649ca78616ac1038e0490fe8e855b314.zip
New analytical data: Monsters and Players killed.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/mobpoint.txt2
-rw-r--r--npc/functions/news.txt2
2 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt
index c29e4462c..8b88c1cb2 100644
--- a/npc/functions/mobpoint.txt
+++ b/npc/functions/mobpoint.txt
@@ -25,6 +25,7 @@ OnUnlock:
end;
OnNPCKillEvent:
+ $MONSTERS_KILLED+=1;
if (killedrid == MonsterKing) {
announce "An illusionary monster king was killed.", bc_all | bc_pc;
getexp min(641500, BaseLevel**3), 0;
@@ -48,6 +49,7 @@ OnNPCKillEvent:
// Only a few maps will give you experience for PK: Tulimshar's Guards Arena,
// Frostia Imperial PVP Arena, Call Of Dusty, Arena Quirino Voraz.
OnPCKillEvent:
+ $PLAYERS_KILLED+=1;
// killedrid
.@m$=getmap();
.@bxp=readparam(BaseLevel, killedrid);
diff --git a/npc/functions/news.txt b/npc/functions/news.txt
index 63283a788..7dabd24bd 100644
--- a/npc/functions/news.txt
+++ b/npc/functions/news.txt
@@ -344,6 +344,8 @@ function script Journalman {
l("Beware the Terranite! Only @@ would be brave enough to challenge them!", $MOST_HEROIC$),
l("Terrible manaquake hits the whole world, causing dramatic changes!"),
l("Green Wars project says that @@ trees were planted by adventurers on the world!", $TREE_PLANTED),
+ l("The Team For A Better PvP says that @@ players were killed in fair matches!", $PLAYERS_KILLED),
+ l("The Alliance says that @@ monsters have been slain by players since 2019-05-24!", $MONSTERS_KILLED),
l("All hail @@ and Andrei Sakar, heroes of the world!", $MOST_HEROIC$));
mesn getarg(0);
mesq l("Bonjour! I am @@, and I am from the Press! Read the latest news with me!", getarg(0));