viewing paste Random Pet supplies 2. | Text

Posted on the
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
stprontera,135,155,5    script  PalGaHo 81,{
 
// What Item you want to Make ?
 
setarray .@itempet[0],639,621,642,12373,12365,12340,641,631,12361,630,12358,632,12363,14570,660,12366,12370,14571,659,14572,12408,12374,14569,12362,12846,12367,12371,626,636,637,12369,635,622,14573,624,625,640,12357,638,629,661,12368,12364,12225,627,633,12395,12699,634,12360,14574,12359,628,619,619,619,619,619,619,619,619,619,619,620,620,620,620,620,620,620,620,620,620,619,619,619,619,619,619,619,619,619,619,620,620,620,620,620,620,620,620,620,620;
set .Random,getarraysize(.@itempet);
 
// Item Requirements + Amounts
setarray .Item[0],
   29002,1,//Cash Coin 100  Point
   29001,4,//Cash Coin 10  Point
   29000,10;//Cash Coin 1  Point
 
for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
if( countitem( .Item[.@i] ) < .Item[.@i + 1] ){
  for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
   mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] );
  close;
}
if( select("Random ^FF0000Pet supplies.^000000:Cancel") == 2 ) close;
for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
delitem .Item[ .@i ],.Item[ .@i + 1 ];
getitem (.@itempet[rand(.Random)],1);
mes "You Random ^FF0000Pet supplies.^000000 Success.";
close;
OnInIt:
waitingroom "Random Pet supplies.",0;
end;
}
 
stprontera,134,153,5    script  Hammy   876,{
 
//10021 ใส่ไม่ได้ เด้ง
setarray .@itemvip[0],10033,10013,10017,10010,10028,10037,10024,10022,10016,10020,10023,10015,10025,10038,10036,10029,10034,10018,10002,10004,10027,10008,10032,10006,10019,10031,10014,10007,10001,10035,10011,10030,10026,10012,10003,10039,10005,10009;
set .Random,getarraysize(.@itemvip);
 
setarray .@itemnal[0],60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,60284,12622,12622,12622,12622,12622,12622,60280,60280,60280,60280,60280,60279,60279,60279,60279,60279,60278,60278,60278,60278,60278,60277,60277,60277,60277,60277,60276,60276,60276,60276,60276,60276,60276,60276,10033,10013,10017,10010,10028,10037,10024,10022,10016,10020,10023,10015,10025,10038,10036,10029,10034,10018,10002,10004,10027,10008,10032,10006,10019,10031,10014,10007,10001,10035,10011,10030,10026,10012,10003,10039,10005,10009;
set .Random,getarraysize(.@itemnal);
 
menu ""+getitemname(29003)+" 1 ea",vip,""+getitemname(29002)+" 2 ea",Nal,""+getitemname(6594)+" 1 ea",Nal2;
 
vip:
// What Item you want to Make ?
// Item Requirements + Amounts
setarray .Item[0],
   29003,1;//Cash Coin 1000  Point
 
for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
if( countitem( .Item[.@i] ) < .Item[.@i + 1] ){
  for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
   mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] );
close;
}
 
if( select("Random ^FF0000Pet Armor.^000000:Cancel") == 2 ) close;
for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
delitem .Item[ .@i ],.Item[ .@i + 1 ];
getitem 60284,1;
getitem 60276,5;
getitem (.@itemvip[rand(.Random)],1);
        mes "You Random ^FF0000Pet Armor.^000000 Success.";
close;
 
nal:
// Item Requirements + Amounts
setarray .Item[0],
   29002,2;//Cash Coin 100  Point
 
for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
if( countitem( .Item[.@i] ) < .Item[.@i + 1] ){
  for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
        mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] );
  close;
}
if( select("Random ^FF0000Pet Armor.^000000:Cancel") == 2 ) close;
for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
delitem .Item[ .@i ],.Item[ .@i + 1 ];
getitem (.@itemnal[rand(.Random)],1);
        mes "You Random ^FF0000Pet Armor.^000000 Success.";
close;
 
nal2:
// Item Requirements + Amounts
setarray .Item[0],
   6594,1;//Magic Bronze Bullion
 
for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
if( countitem( .Item[.@i] ) < .Item[.@i + 1] ){
  for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
        mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] );
  close;
}
if( select("Random ^FF0000Pet Armor.^000000:Cancel") == 2 ) close;
for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 )
delitem .Item[ .@i ],.Item[ .@i + 1 ];
getitem (.@itemnal[rand(.Random)],1);
        mes "You Random ^FF0000Pet Armor.^000000 Success.";
close;
 
OnInIt:
waitingroom "Random Pet Armor.",0;
end;
}
 
Viewed 759 times, submitted by il3ol2ed.