From 32298da90daf4762883185cc2c233ba10fd1fa56 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 9 Jul 2018 12:07:36 -0300 Subject: Arkim fix, and preparative for teleporter --- npc/items/teleporter.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 npc/items/teleporter.txt (limited to 'npc/items/teleporter.txt') 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; +} -- cgit v1.2.3-70-g09d2