summaryrefslogtreecommitdiff
path: root/npc/commands/rent.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-10-09 11:47:50 -0300
committerJesusaves <cpntb1@ymail.com>2020-10-09 11:47:50 -0300
commitc73c31527b1adf0a38141c369843928c6481a9ff (patch)
tree70b9f88550159052997c17b3ba176e5be1dca2bf /npc/commands/rent.txt
parent04f0bcc4cacee634a9c10b17541f332014c7354f (diff)
downloadserverdata-c73c31527b1adf0a38141c369843928c6481a9ff.tar.gz
serverdata-c73c31527b1adf0a38141c369843928c6481a9ff.tar.bz2
serverdata-c73c31527b1adf0a38141c369843928c6481a9ff.tar.xz
serverdata-c73c31527b1adf0a38141c369843928c6481a9ff.zip
Discord Booster Necklace.
Also, fix typos reported by YuckFou.
Diffstat (limited to 'npc/commands/rent.txt')
-rw-r--r--npc/commands/rent.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/npc/commands/rent.txt b/npc/commands/rent.txt
new file mode 100644
index 000000000..cafe41e33
--- /dev/null
+++ b/npc/commands/rent.txt
@@ -0,0 +1,31 @@
+// TMW2 Script
+//
+// @rentitem <item> <time>
+// Rents an <item> for <time>
+
+- script @rentitem 32767,{
+ end;
+
+OnCall:
+ //.@request$ = "";
+ //.@request$ += implode(.@atcmd_parameters$, " ");
+
+ .@item=atoi(.@atcmd_parameters$[0]);
+ .@time=atoi(.@atcmd_parameters$[1]);
+
+ if (!.@item || !.@time) {
+ dispbottom l("@rentitem <item numeric id> <time in seconds>");
+ end;
+ }
+
+ // Limiting to 365 days max
+ .@time=limit(15, .@time, 31536000);
+
+ rentitem(.@item, .@time);
+ end;
+
+OnInit:
+ bindatcmd "rentitem", "@rentitem::OnCall", 80, 99, 1;
+ end;
+}
+