Jelajahi Sumber

Small correction of Utan Kid NPC script (#9175)

Fixed #9174
StrawberrysherbetIX 1 bulan lalu
induk
melakukan
6d5b26fdd5
1 mengubah file dengan 10 tambahan dan 6 penghapusan
  1. 10 6
      npc/cities/umbala.txt

+ 10 - 6
npc/cities/umbala.txt

@@ -379,9 +379,11 @@ umbala,59,243,5	script	Utan Kid#1	787,{
 				mes "Meat? Thanks! I will pay you";
 				mes "back with these.";
 				delitem 517,1;// Meat
-				getitem 909,2;// Jellopy
-				getitem 914,2;// Fluff
-				getitem 705,2;// Clover
+				switch (rand(1,3)) {
+					case 1: getitem 909,3; break; // Jellopy
+					case 2: getitem 914,3; break; // Fluff
+					case 3: getitem 705,3; break; // Clover
+				}
 				emotion ET_SCISSOR;
 				close;
 			}
@@ -416,9 +418,11 @@ umbala,59,243,5	script	Utan Kid#1	787,{
 				mes "Umbaumbaumbabababah.";
 				mes "Umbababahum.";
 				delitem 517,1;// Meat
-				getitem 909,2;// Jellopy
-				getitem 914,2;// Fluff
-				getitem 705,2;// Clover
+				switch (rand(1,3)) {
+					case 1: getitem 909,3; break; // Jellopy
+					case 2: getitem 914,3; break; // Fluff
+					case 3: getitem 705,3; break; // Clover
+				}
 				emotion ET_SCISSOR;
 				close;
 			}