hello is there anyway to add option to this script example i want to add 10 rolls 20 rolls and 50 rolls
Quote
turbo_room,88,139,5 script PVP Gacha NPC 478,{
mes "[ ^FF7700PVP Girl^000000 ]";
mes "Hello Adventurer! Are you out";
mes "shopping in the city?!";
next;
mes "[ ^FF7700PVP Girl^000000 ]";
mes "I'm PVP Girl! I'll exchange cool";
mes "Get a Change to Win Random ";
mes "Prizes for every ^ff00005 PVP Ticket^000000.";
mes "you can get ^26A7DFPVP Tickets^000000 in our Grand Arena ";
next;
mes "[ ^FF7700PVP Girl^000000 ]";
mes " Consumables:";
mes "<ITEM>^0000ff2x Light White Potion ^000000<INFO>11501</INFO></ITEM>";
mes "<ITEM>^0000ff2x Light Blue Potion ^000000<INFO>11502</INFO></ITEM>";
mes "<ITEM>^0000ff1x Ticket for Kafra Storage ^000000<INFO>7059</INFO></ITEM>";
mes "<ITEM>^0000ff1x Agility Scroll ^000000<INFO>12216</INFO></ITEM>";
mes "<ITEM>^0000ff1x Blessing Scroll ^000000<INFO>12215</INFO></ITEM>";
next;
mes "Grand Prize:[1%]";
mes "<ITEM>^00bfffC. PVP Ticket ^000000<INFO>61966</INFO></ITEM>";
next;
if (countitem(7960) < 5) goto L_Sorry;
next;
if(select("Deal me in!:No way...")==2)
close;
mes "[ ^FF7700PVP Girl^000000 ]";
mes "Here we go...";
delitem 7960,5;
set .@Total,9;
setarray .@P1[0],1,61966,1; // PVP Ticket
setarray .@P2[0],50,11501,5; // Light Whites
setarray .@P3[0],50,11502,5; // Light Blues
setarray .@P4[0],40,12216,5; // Agi scroll 5x
setarray .@P5[0],40,12215,5; // Blessing Scroll 5x
setarray .@P6[0],30,7059,1; // Kafra Storage
setarray .@P7[0],80,909,1; // Royal Jelly
setarray .@P8[0],100,909,1; // Royal Jelly
setarray .@P9[0],100,909,1; // Royal Jelly
do{
set .@i, rand(1,.@Total);
}while( rand(1,100) > getd(".@P"+.@i+"[0]") );
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( .@gz && .@gz <= 1 )
announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from PVP Gacha NPC",0;
specialeffect2 248;
close;
L_Sorry:
mes "[ ^FF7700PVP Girl^000000 ]";
mes "You don't have enough PVP Gacha Ticket, please get some";
close;
OnTimer0050:
showscript "PVP Gacha", getnpcid(0);
initnpctimer;
end;
OnInit:
initnpctimer;
end;
}
maintown,37,18,5 duplicate(PVP Gacha NPC) PVP Gacha NPC#prt1 478
Question
Sallycantdance
hello is there anyway to add option to this script example i want to add 10 rolls 20 rolls and 50 rolls
Link to comment
Share on other sites
11 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.