summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-11 01:26:09 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-11 01:26:09 -0300
commita509e0fd2e8bca722afb62622127dbf4feecf39d (patch)
tree90dc417fbbec08c0e7cc95af219de2b96098ef6f
parented3358c3d0bb70105b04c838d40eccb425c09fb1 (diff)
downloadserverdata-a509e0fd2e8bca722afb62622127dbf4feecf39d.tar.gz
serverdata-a509e0fd2e8bca722afb62622127dbf4feecf39d.tar.bz2
serverdata-a509e0fd2e8bca722afb62622127dbf4feecf39d.tar.xz
serverdata-a509e0fd2e8bca722afb62622127dbf4feecf39d.zip
@getexp
-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",