summaryrefslogtreecommitdiff
path: root/npc/000-2-1/alige.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/000-2-1/alige.txt')
-rw-r--r--npc/000-2-1/alige.txt37
1 files changed, 20 insertions, 17 deletions
diff --git a/npc/000-2-1/alige.txt b/npc/000-2-1/alige.txt
index bc235aa4..78526fa8 100644
--- a/npc/000-2-1/alige.txt
+++ b/npc/000-2-1/alige.txt
@@ -17,7 +17,8 @@
// 2 Accept the task.
// 3 Bring first food.
-000-2-1.gat,43,32,0,1 script AligeTrigger 0,1,1,{
+// Gender = 1
+000-2-1,43,32,0 script AligeTrigger 32767,1,1,{
OnTouch:
if (getq(ShipQuests_Alige) > 0) close;
@@ -47,7 +48,9 @@ OnTimer190:
end;
}
-000-2-1.gat,43,31,0,1 script Alige 301;2,{
+// Size = 2
+// Gender = 1
+000-2-1,43,31,0 script Alige 301,{
set @q, getq(ShipQuests_Alige);
if (@q > 1) goto L_AskForFood;
@@ -165,20 +168,20 @@ L_Accepted:
L_GiveFood:
mes "";
menu
- rif(countitem(501, 1), l(getitemname("Acorn"))), 0,
- rif(countitem(502, 1), l(getitemname("Bread"))), 502,
- rif(countitem(503, 1), l(getitemname("Fungus"))), 503,
- rif(countitem(504, 1), l(getitemname("Cheese"))), 504,
- rif(countitem(505, 1), l(getitemname("PiouLegs"))), 505,
- rif(countitem(506, 1), l(getitemname("LettuceLeaf"))), 0,
- rif(countitem(507, 1), l(getitemname("Piberries"))), 2,
- rif(countitem(508, 1), l(getitemname("SeaDrops"))), 1,
- rif(countitem(509, 1), l(getitemname("Aquada"))), 509,
- rif(countitem(510, 1), l(getitemname("PinkBlobime"))), 1,
- rif(countitem(512, 1), l(getitemname("HalfCroconut"))), 512,
- rif(countitem(513, 1), l(getitemname("Croconut"))), 0,
- rif(countitem(515, 1), l(getitemname("Plushroom"))), 515,
- rif(countitem(516, 1), l(getitemname("PumpkinSeeds"))), 1,
+ rif(countitemcolor(501, 1), l(getitemname("Acorn"))), 0,
+ rif(countitemcolor(502, 1), l(getitemname("Bread"))), 502,
+ rif(countitemcolor(503, 1), l(getitemname("Fungus"))), 503,
+ rif(countitemcolor(504, 1), l(getitemname("Cheese"))), 504,
+ rif(countitemcolor(505, 1), l(getitemname("PiouLegs"))), 505,
+ rif(countitemcolor(506, 1), l(getitemname("LettuceLeaf"))), 0,
+ rif(countitemcolor(507, 1), l(getitemname("Piberries"))), 2,
+ rif(countitemcolor(508, 1), l(getitemname("SeaDrops"))), 1,
+ rif(countitemcolor(509, 1), l(getitemname("Aquada"))), 509,
+ rif(countitemcolor(510, 1), l(getitemname("PinkBlobime"))), 1,
+ rif(countitemcolor(512, 1), l(getitemname("HalfCroconut"))), 512,
+ rif(countitemcolor(513, 1), l(getitemname("Croconut"))), 0,
+ rif(countitemcolor(515, 1), l(getitemname("Plushroom"))), 515,
+ rif(countitemcolor(516, 1), l(getitemname("PumpkinSeeds"))), 1,
l("I don't have anything good for you today."), -1;
set @id, @menuret;
@@ -186,7 +189,7 @@ L_GiveFood:
if (@id == 0) goto L_NoReward; // In case of wrong food.
if (@id == 1) goto L_Poison; // In case of poisoned food.
if (@id == 2) goto L_NoMore; // In case of Piberries.
- if (countitem(@id) == 0) goto L_Quit;
+ if (countitemcolor(@id) == 0) goto L_Quit;
// if (@id == item's ID) then food is correct.
// Do not put any other number than -1, 0, 1, 2 or the item's ID, that'll avoid confusion.