Search the Community
Showing results for 'lotti'.
-
TCG Drainer - Very useful to most of the servers (just like Lotti Girl in pRO)
Dvrstle replied to Dvrstle's question in Script Requests
hmm got no map server error. . . xD. . . hmm . . . check again the script . . . please check if there are some things that i accidentally edited. prontera,189,181,4 script Lotti Girl 123,{ mes "[Lotti Girl]"; mes "It costs "+.Cost[1]+"x "+getitemname(.Cost[0])+" to play."; if (countitem(.Cost[0]) < .Cost[1]) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; progressbar "",2; delitem .Cost[0], .Cost[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]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } } announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0; specialeffect2 248; close; OnInit: // Format: <%>,<item ID>,<count>{,...}; setarray .P1[0],70,607,25; setarray .P2[0],70,13710,1; setarray .P3[0],40,5471,1; setarray .P4[0],40,5210,1; setarray .P5[0],40,5224,1; setarray .P6[0],50,2357,1,2524,1,2421,1,2115,1; setarray .P7[0],25,2701,1; setarray .P8[0],5,2394,1; setarray .Default[0],12214,1; setarray .Cost[0],7227,300; set .Total,8; end; } -
TCG Drainer - Very useful to most of the servers (just like Lotti Girl in pRO)
Euphy replied to Dvrstle's question in Script Requests
Well, since you didn't supply proper percentages, still, here's the best I could do: <header> { mes "[Lotti Girl]"; mes "It costs "+.Cost[1]+"x "+getitemname(.Cost[0])+" to play."; if (countitem(.Cost[0]) < .Cost[1]) close; next; if(select("Deal me in!:No way...")==2) close; mes "[Lotti Girl]"; mes "Here we go..."; progressbar "",2; delitem .Cost[0], .Cost[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]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } } announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0; specialeffect2 248; close; OnInit: // Format: <%>,<item ID>,<count>{,...}; setarray .P1[0],70,607,25; setarray .P2[0],70,13710,1; setarray .P3[0],40,5471,1; setarray .P4[0],40,5210,1; setarray .P5[0],40,5224,1; setarray .P6[0],50,2357,1,2524,1,2421,1,2115,1; setarray .P7[0],25,2701,1; setarray .P8[0],5,2394,1; setarray .Default[0],12214,1; setarray .Cost[0],7227,300; set .Total,8; end; } -
TCG Drainer - Very useful to most of the servers (just like Lotti Girl in pRO)
Linkin Park replied to Dvrstle's question in Script Requests
maybe get the array value and then divide it by 100? @GM Taku, it kills the point of gambling to an NPC, also with an NPC it's possible to make it announce like 'RaGERO got an apple from Lotti Gurl with a 20% chance' OPB doesn't have it. -
I want to request an npc that is almost the same with the Lotti Girl in Philippine Ragnarok Online. In pRO, this Lotti Girl gives item randomly with the use of a ticket. So this what I want, My Tcg drainer npc goes like this, this needs 300 TCG to play the game. . . The player will choose if he wants to Draw a prize.. . and then a random item will be given... There's more, the prizes should be based on % chance . . . . Here's the prizes **This item will be get by the player if non of the items below was taken. 1 Convex Mirror **Here are the items which the player can get randomly [With Chances] 25 Yggdrasil Berries - 70% Gym Pass Box [10pcs of Gym pass] - 70% Hairband of Reginleif - 40% Flying Angel Wing - 40% Evolved Orc Hero Helm - 40% [Vset] with out the helm - 50% Orleans Glove - 25% Glorious Suit - 5% ** If the player got any one of these items which has % chance. . . they will not get the convex mirror. . . in short. . . convex mirror is just a replacement for not getting any rare items. . and another one, there will be a broadcast on the whole server which says that "Congratulations to [Name of the Char] for getting [Name of the item] !!" I hope that there's a professional scripter here that can make this kind of NPC. . . . and i know that many server will benefit from this because this is also a way of controlling the economy of the server by reducing the items which they use as the medium of exchange. . . Thanks a lot!! please help me =) bump~