summaryrefslogtreecommitdiff
path: root/npc/commands
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 /npc/commands
parented3358c3d0bb70105b04c838d40eccb425c09fb1 (diff)
downloadserverdata-a509e0fd2e8bca722afb62622127dbf4feecf39d.tar.gz
serverdata-a509e0fd2e8bca722afb62622127dbf4feecf39d.tar.bz2
serverdata-a509e0fd2e8bca722afb62622127dbf4feecf39d.tar.xz
serverdata-a509e0fd2e8bca722afb62622127dbf4feecf39d.zip
@getexp
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/exp.txt20
1 files changed, 20 insertions, 0 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;
+}