diff options
Diffstat (limited to 'npc/items/teleporter.txt')
-rw-r--r-- | npc/items/teleporter.txt | 37 |
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; +} |