From 8cd506cac367a22f0d010eba3f5c336b5079ee6c Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 26 May 2020 01:59:43 +0000 Subject: add player commands to get deaths and boss points --- world/map/npc/commands/_import.txt | 2 ++ world/map/npc/commands/bosspoints.txt | 11 +++++++++++ world/map/npc/commands/deaths.txt | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 world/map/npc/commands/bosspoints.txt create mode 100644 world/map/npc/commands/deaths.txt 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; +} -- cgit v1.2.3-70-g09d2