summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/commands/exp.txt20
-rw-r--r--npc/scripts.conf3
2 files changed, 21 insertions, 2 deletions
diff --git a/npc/commands/exp.txt b/npc/commands/exp.txt
new file mode 100644
index 000000000..a8ffe7393
--- /dev/null
+++ b/npc/commands/exp.txt
@@ -0,0 +1,20 @@
+// @getexp atcommand
+// Gets experience
+//
+// group lv: 5
+// group char lv: 99
+// log: True
+
+- script @getexp 32767,{
+ end;
+
+OnCall:
+ .@delta$ = .@atcmd_parameters$[0];
+ .@d = atoi(.@delta$);
+
+ getexp .@d, 0;
+ end;
+
+OnInit:
+ bindatcmd "getexp", "@getexp::OnCall", 5, 99, 1;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 267032daa..664ebe1e8 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -55,11 +55,10 @@
// custom atcommands
"npc/commands/music.txt",
-//"npc/commands/zeny.txt",
+"npc/commands/exp.txt",
"npc/commands/debug-look.txt",
"npc/commands/debug-quest.txt",
"npc/commands/debug-skill.txt",
-//"npc/commands/debug-preset.txt",
"npc/commands/debug.txt",
"npc/commands/event.txt",
"npc/commands/kami.txt",