summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-24 09:27:52 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-24 09:27:52 -0300
commit41f3f54bf2f770f8682aae8b4b9393661cec493c (patch)
tree3411f3e38044edde36f6ac65c24d422c8c82558c /npc/003-1
parentb99ed9de478bf7f088f6ac146c657b941d803f32 (diff)
downloadserverdata-41f3f54bf2f770f8682aae8b4b9393661cec493c.tar.gz
serverdata-41f3f54bf2f770f8682aae8b4b9393661cec493c.tar.bz2
serverdata-41f3f54bf2f770f8682aae8b4b9393661cec493c.tar.xz
serverdata-41f3f54bf2f770f8682aae8b4b9393661cec493c.zip
Taree: Prototype
Diffstat (limited to 'npc/003-1')
-rw-r--r--npc/003-1/_import.txt1
-rw-r--r--npc/003-1/taree.txt57
2 files changed, 58 insertions, 0 deletions
diff --git a/npc/003-1/_import.txt b/npc/003-1/_import.txt
index 991cdc513..b55813abf 100644
--- a/npc/003-1/_import.txt
+++ b/npc/003-1/_import.txt
@@ -36,6 +36,7 @@
"npc/003-1/silvia.txt",
"npc/003-1/soul-menhir.txt",
"npc/003-1/swezanne.txt",
+"npc/003-1/taree.txt",
"npc/003-1/tinris.txt",
"npc/003-1/town.txt",
"npc/003-1/wateranimation.txt",
diff --git a/npc/003-1/taree.txt b/npc/003-1/taree.txt
new file mode 100644
index 000000000..2980140f0
--- /dev/null
+++ b/npc/003-1/taree.txt
@@ -0,0 +1,57 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// Description:
+// Mouboo Renting (var MOUBOO_RENTTIME )
+
+003-1,63,31,0 script Taree NPC_ELVEN_MAN_MOUBOO_SHOP,{
+ if (MOUBOO_RENTTIME > gettimetick(2))
+ goto L_Rented;
+
+ mesn;
+ mesq l("Moo!");
+ next;
+ mesn;
+ mesq l("Do you want to rent a Mouboo? It allows quick traveling!");
+ next;
+ menuint
+ rif(Zeny > 100, l("Rent 1 day for 100 GP")), 100,
+ rif(Zeny > 270, l("Rent 3 days for 270 GP")), 270,
+ rif(Zeny > 600, l("Rent 7 days for 600 GP")), 600,
+ rif(Zeny > 1200, l("Rent 15 days for 1200 GP")), 1200,
+ rif(Zeny > 2000, l("Rent 30 days for 2000 GP")), 2000,
+ l("Don't rent a mouboo."), 0;
+ mes "";
+ switch (@menuret) {
+ case 0:
+ close;
+ case 100:
+ .@time=86400; break;
+ case 270:
+ .@time=259200; break;
+ case 600:
+ .@time=604800; break;
+ case 1200:
+ .@time=1296000; break;
+ case 2000:
+ .@time=2592000; break;
+ default:
+ Exception("Invalid price: "+@menuret, RB_DEFAULT|RB_SPEECH|RB_ISFATAL);
+ break;
+ }
+ inventoryplace RidingMouboo, 1;
+ MOUBOO_RENTTIME=gettimetick(2)+.@time;
+ Zeny-=@menuret;
+ rentitem RidingMouboo, .@time;
+ close;
+
+L_Rented:
+ mesn;
+ mesq l("Moo!");
+ close;
+
+OnInit:
+ .distance=4;
+ end;
+}
+