prontera,139,172,4 script Lotti Girl 714,{
mes "[Lotti Girl]";
mes "Hello Sir! Are you out";
mes "shopping in the city?!";
next;
mes "[Lotti Girl]";
mes "I'm Lotti! I'll exchange cool";
mes "random prizes for every";
mes "^ff00001 Lottery Ticket^000000.";
next;
mes "[Lotti Girl]";
mes "Our Grand prize is:";
mes "^ff0000+9 Weapon Refine Deed^000000";
mes "^ff0000+10 Weapon Refine Deed^000000";
mes "^ff0000+9 Armor Refine Deed^000000";
mes "^ff0000+10 Armor Refine Deed^000000";
next;
mes "[Lotti Girl]";
mes "Special prizes are:";
mes "^ff0000+5 Armor Refine Deed^000000";
mes "^ff0000+6 Armor Refine Deed^000000";
mes "^ff0000+7 Armor Refine Deed^000000";
mes "^ff0000+8 Armor Refine Deed^000000";
mes "^ff0000+5 Weapon Refine Deed^000000";
mes "^ff0000+6 Weapon Refine Deed^000000";
mes "^ff0000+7 Weapon Refine Deed^000000";
mes "^ff0000+8 Weapon Refine Deed^000000";
next;
mes "[Lotti Girl]";
mes "MVP Card & Headgear prizes are:";
mes "^ff0000Tao Gunka Card^000000";
mes "^ff0000Turtle General Card^000000";
mes "^ff0000Japan Anniversary Hat^000000";
next;
mes "Consolation prizes are:";
mes "^ff0000Food Buffs^000000";
mes "^ff0000Healing Foods^000000";
mes "^ff0000Random Dye Box^000000";
if (countitem(7528) < 1)
close;
next;
if(select("Deal me in!:No way...")==2)
close;
mes "[Lotti Girl]";
mes "Here we go...";
delitem 7528,1;
set .@Total,33;
//<%>,<ItemID>,<Amount>
setarray .@P1[0],6,8001,1;
setarray .@P2[0],5,8002,1;
setarray .@P3[0],4,8003,1;
setarray .@P4[0],3,8004,1;
setarray .@P5[0],2,8005,1;
setarray .@P6[0],1,8006,1;
setarray .@P7[0],6,8007,1;
setarray .@P8[0],5,8008,1;
setarray .@P9[0],4,8009,1;
setarray .@P10[0],3,8010,1;
setarray .@P11[0],2,8011,1;
setarray .@P12[0],1,8012,1;
setarray .@P13[0],20,13517,3;
setarray .@P14[0],20,12080,5;
setarray .@P15[0],20,12075,5;
setarray .@P16[0],20,12085,5;
setarray .@P17[0],20,12090,5;
setarray .@P18[0],20,12095,5;
setarray .@P18[0],20,12100,5;
setarray .@P19[0],50,26000,1;
setarray .@P20[0],40,7528,1;
setarray .@P21[0],1,4305,1;
setarray .@P22[0],45,12033,10;
setarray .@P23[0],45,13548,2;
setarray .@P24[0],60,12709,20;
setarray .@P25[0],65,663,50;
setarray .@P26[0],50,26048,1;
setarray .@P27[0],1,5846,1;
setarray .@P28[0],1,4302,1;
setarray .@P29[0],80,13517,1;
setarray .@P30[0],80,13517,1;
setarray .@P31[0],80,13517,1;
setarray .@P32[0],80,13517,1;
setarray .@P33[0],80,13517,1;
setarray .@Default[0],13517,1;
set .@i, rand(1,.@Total);
if (rand(1,100) > getd(".@P"+.@i+"[0]"))
{
for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2)
{
getitem .@Default[.@j], .@Default[.@j+1];
if(!.@k[0])
setarray .@k[0], .@Default[.@j], .@Default[.@j+1];
}
}
else{
for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)
{
getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
if (!.@k[0])
{
set .@gz,.@i;
setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
break;
}
}
}
if(1<=.@gz&&.@gz<=4)
announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl!",0;
specialeffect2 248;
close;
}
I am using this script but after i edited the prizes, it only gives mostly the default prize which is
setarray .@Default[0],13517,1;
i don't know i'f im wrong or maybe the npc is more likely choosing the default....Can you help me with this? even i put 100% on the item mostyly the item give is default.
Question
xienne15
I am using this script but after i edited the prizes, it only gives mostly the default prize which is
i don't know i'f im wrong or maybe the npc is more likely choosing the default....Can you help me with this? even i put 100% on the item mostyly the item give is default.
Link to comment
Share on other sites
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.