summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-05-26 01:59:43 +0000
committergumi <git@gumi.ca>2020-05-26 02:03:37 +0000
commit8cd506cac367a22f0d010eba3f5c336b5079ee6c (patch)
tree3cf6202cdc0d60ca193dedbeddd54debaad6089c
parent9521d017bbaf6fd55fb525c1b3e0c4e0796d6aee (diff)
downloadserverdata-8cd506cac367a22f0d010eba3f5c336b5079ee6c.tar.gz
serverdata-8cd506cac367a22f0d010eba3f5c336b5079ee6c.tar.bz2
serverdata-8cd506cac367a22f0d010eba3f5c336b5079ee6c.tar.xz
serverdata-8cd506cac367a22f0d010eba3f5c336b5079ee6c.zip
add player commands to get deaths and boss points
-rw-r--r--world/map/npc/commands/_import.txt2
-rw-r--r--world/map/npc/commands/bosspoints.txt11
-rw-r--r--world/map/npc/commands/deaths.txt11
3 files changed, 24 insertions, 0 deletions
diff --git a/world/map/npc/commands/_import.txt b/world/map/npc/commands/_import.txt
index 74fd8a1e..0242b0dc 100644
--- a/world/map/npc/commands/_import.txt
+++ b/world/map/npc/commands/_import.txt
@@ -17,3 +17,5 @@ npc: npc/commands/python.txt
npc: npc/commands/gm.txt
npc: npc/commands/automod.txt
npc: npc/commands/valentine.txt
+npc: npc/commands/bosspoints.txt
+npc: npc/commands/deaths.txt
diff --git a/world/map/npc/commands/bosspoints.txt b/world/map/npc/commands/bosspoints.txt
new file mode 100644
index 00000000..d7a8e0ab
--- /dev/null
+++ b/world/map/npc/commands/bosspoints.txt
@@ -0,0 +1,11 @@
+-|script|@bosspoints|32767
+{
+ message strcharinfo(0), "Boss Points : You currently have " + BOSS_POINTS + " Boss Points.";
+ close;
+
+OnInit:
+ // TODO: allow event managers to give and take boss points
+ registercmd chr(ATCMD_SYMBOL) + "bosspoints", strnpcinfo(0);
+ registercmd chr(ATCMD_SYMBOL) + "bosspoint", strnpcinfo(0); // for typos
+ end;
+}
diff --git a/world/map/npc/commands/deaths.txt b/world/map/npc/commands/deaths.txt
new file mode 100644
index 00000000..94189748
--- /dev/null
+++ b/world/map/npc/commands/deaths.txt
@@ -0,0 +1,11 @@
+-|script|@deaths|32767
+{
+ message strcharinfo(0), "Deaths : You have died " + PC_DIE_COUNTER + " times in total.";
+ close;
+
+OnInit:
+ // TODO: allow event managers to query deaths
+ registercmd chr(ATCMD_SYMBOL) + "deaths", strnpcinfo(0);
+ registercmd chr(ATCMD_SYMBOL) + "death", strnpcinfo(0); // for typos
+ end;
+}