summaryrefslogtreecommitdiff
path: root/npc/items/teleporter.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-09 12:07:36 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-09 12:07:36 -0300
commit32298da90daf4762883185cc2c233ba10fd1fa56 (patch)
tree9ca3c95ac480229eef6580dff5bbdcc0291c80cb /npc/items/teleporter.txt
parent7746323daa14ca0441acb9f858c985e519068f7c (diff)
downloadserverdata-32298da90daf4762883185cc2c233ba10fd1fa56.tar.gz
serverdata-32298da90daf4762883185cc2c233ba10fd1fa56.tar.bz2
serverdata-32298da90daf4762883185cc2c233ba10fd1fa56.tar.xz
serverdata-32298da90daf4762883185cc2c233ba10fd1fa56.zip
Arkim fix, and preparative for teleporter
Diffstat (limited to 'npc/items/teleporter.txt')
-rw-r--r--npc/items/teleporter.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt
new file mode 100644
index 000000000..5d4ad5497
--- /dev/null
+++ b/npc/items/teleporter.txt
@@ -0,0 +1,37 @@
+// TMW2 scripts.
+// Authors:
+// Pyndragon
+// Jesusalva
+// Description:
+// Hand Teleporter (also saves coordinates - @memo)
+
+- script LoF Teleporter NPC_HIDDEN,{
+ close;
+
+L_Cooldown:
+ mesn;
+ mesc l("This teleporter is currently recharging.");
+ mesc l("You can use it again in @@.", FuzzyTime(TELEPORTER_TIME));
+ close;
+
+OnUse:
+ if (TELEPORTER_TIME > gettimetick(2))
+ goto L_Cooldown;
+
+ mesn;
+ mesc l("Do you want to cut this @@?", getitemlink(Croconut));
+ next;
+
+ menu
+ l("Yes."), L_Weapon,
+ l("No."), -;
+
+ getitem Croconut, 1;
+ close;
+
+L_Weapon:
+ mesc l("You perfectly cut your @@ into two edible parts.", getitemlink(Croconut));
+
+ getitem HalfCroconut, 2;
+ close;
+}