summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authorJesusalva Jesusalva <jesusalva@themanaworld.org>2022-11-28 12:01:48 +0000
committerJesusalva Jesusalva <jesusalva@themanaworld.org>2022-11-28 12:01:48 +0000
commit2cfe6c9f52ba1857d812ffdf6f862dca462918ba (patch)
tree73878d9649cc469e184892ca981bb687ce7bba0d /world/map/npc
parentd9f88e40e4d2e81d27de16546f880a8d247bc3da (diff)
parentbf6bcf7e32a32d8151391ae4a3a4aa0d585578aa (diff)
downloadserverdata-2cfe6c9f52ba1857d812ffdf6f862dca462918ba.tar.gz
serverdata-2cfe6c9f52ba1857d812ffdf6f862dca462918ba.tar.bz2
serverdata-2cfe6c9f52ba1857d812ffdf6f862dca462918ba.tar.xz
serverdata-2cfe6c9f52ba1857d812ffdf6f862dca462918ba.zip
Merge branch 'master' into 'master'
Add daily points command See merge request legacy/serverdata!620
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/commands/_import.txt1
-rw-r--r--world/map/npc/commands/dailypoints.txt11
2 files changed, 12 insertions, 0 deletions
diff --git a/world/map/npc/commands/_import.txt b/world/map/npc/commands/_import.txt
index e9e64b95..7f85d0d4 100644
--- a/world/map/npc/commands/_import.txt
+++ b/world/map/npc/commands/_import.txt
@@ -20,3 +20,4 @@ npc: npc/commands/bosspoints.txt
npc: npc/commands/deaths.txt
npc: npc/commands/divorce.txt
npc: npc/commands/exp.txt
+npc: npc/commands/dailypoints.txt
diff --git a/world/map/npc/commands/dailypoints.txt b/world/map/npc/commands/dailypoints.txt
new file mode 100644
index 00000000..5d5234fc
--- /dev/null
+++ b/world/map/npc/commands/dailypoints.txt
@@ -0,0 +1,11 @@
+-|script|@dailypoints|32767
+{
+ message strcharinfo(0), "Daily Points : You currently have " + (DailyQuestPoints + DailyQuestBonus) + " Daily Points.";
+ close;
+
+OnInit:
+ // TODO: allow event managers to give and take daily points
+ registercmd chr(ATCMD_SYMBOL) + "dailypoints", strnpcinfo(0);
+ registercmd chr(ATCMD_SYMBOL) + "dailypoint", strnpcinfo(0); // for typos
+ end;
+}