From e3dac0c139cc8b3c2753a94cb73062a1f82e6b1c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 20 Dec 2018 14:10:10 -0200 Subject: Empty box core logic/mechanic. Still Unobtanium. --- npc/items/emptybox.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 npc/items/emptybox.txt (limited to 'npc/items') diff --git a/npc/items/emptybox.txt b/npc/items/emptybox.txt new file mode 100644 index 000000000..0243cac6c --- /dev/null +++ b/npc/items/emptybox.txt @@ -0,0 +1,42 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// Description: +// Allows to mount your own fish/plushroom/croconut box + +000-0,0,0,0 script Empty Box#it NPC_HIDDEN,{ + close; + +OnUse: + mesn; + mesc l("You can fill this box with the following:"); + mesc l("- @@ @@", 17, getitemlink(Croconut)); + mesc l("- @@ @@", 20, getitemlink(CommonCarp)); + mesc l("- @@ @@", 87, getitemlink(Plushroom)); + mes ""; + mesc l("Fill with what?"); + select + l("Don't fill"), + rif(countitem(Croconut) >= 17, l("17 Croconut")), + rif(countitem(CommonCarp) >= 20, l("20 Common Carp")), + rif(countitem(Plushroom) >= 87, l("87 Plushroom")); + mes ""; + switch (@menu) { + case 2: + delitem Croconut, 17; + getitem CroconutBox, 1; + break; + case 3: + delitem CommonCarp, 17; + getitem FishBox, 1; + break; + case 4: + delitem Plushroom, 17; + getitem PlushroomBox, 1; + break; + default: + getitem EmptyBox, 1; + } + closedialog; + close; +} -- cgit v1.2.3-60-g2f50