1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// TMW2 scripts.
// Authors:
// Jesusalva
// Description:
// Allows to create your own fish/plushroom/croconut box
- script Empty Box#it NPC_HIDDEN,{
close;
OnUse:
mesn;
mesc l("You can fill this box with the following items:");
mesc l("- @@ @@", 7, getitemlink(GrassCarp));
mesc l("- @@ @@", 8, 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(GrassCarp) >= 7, l("7 Grass Carps")),
rif(countitem(Croconut) >= 8, l("8 Croconuts")),
rif(countitem(CommonCarp) >= 20, l("20 Common Carps")),
rif(countitem(Aquada) >= 50, l("50 Aquadas")),
rif(countitem(Plushroom) >= 87, l("87 Plushrooms"));
mes "";
switch (@menu) {
case 2:
delitem GrassCarp, 7;
getitem FishBox, 1;
break;
case 3:
delitem Croconut, 8;
getitem CroconutBox, 1;
break;
case 4:
delitem CommonCarp, 20;
getitem FishBox, 1;
break;
case 5:
delitem Aquada, 50;
getitem AquadaBox, 1;
break;
case 6:
delitem Plushroom, 87;
getitem PlushroomBox, 1;
break;
default:
getitem EmptyBox, 1;
}
delitem EmptyBox, 1;
closedialog;
close;
}
|