yuhsing

Untitled

Dec 6th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1.  
  2. // Orginal Topic : http://rathena.org/board/topic/65196-tcg-drainer-very-useful-to-most-of-the-servers-just-like-lotti-girl-in-pro/#entry109922
  3. //
  4. // TO-DO :
  5. // == NPC Mes will not close. So, players will try again until they click "Cancel"
  6.  
  7. prontera,104,158,5 script Emma Stone 757,{
  8. do{
  9. mes "[Emma Stone]";
  10. mes " ";
  11. mes "It costs "+.Cost[1]+"x "+getitemname(.Cost[0])+" to play.";
  12. if (countitem(.Cost[0]) < .Cost[1]) close;
  13. next;
  14. if(select("Deal me in!:No way...")==2) close;
  15. mes "[Emma Stone]";
  16. mes "Here we go...";
  17. progressbar "",2;
  18. delitem .Cost[0], .Cost[1];
  19. set .@i, rand(1,.Total);
  20. if (rand(1,100) > getd(".P"+.@i+"[0]")) {
  21. for(set .@j,0; .@j<getarraysize(.Default); set .@j,.@j+2) {
  22. getitem .Default[.@j], .Default[.@j+1];
  23. if (!.@k[0]) setarray .@k[0], .Default[.@j], .Default[.@j+1]; } }
  24. else {
  25. for(set .@j,1; .@j<getarraysize(getd(".P"+.@i)); set .@j,.@j+2) {
  26. getitem getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]");
  27. if (!.@k[0]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } }
  28. if (getd(".P"+.@i+"[0]")<=10 && .@k[0]!=.Default[0]) announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0; // I'm not sure if this is working [ http://rathena.org/board/topic/65196-tcg-drainer-very-useful-to-most-of-the-servers-just-like-lotti-girl-in-pro/#entry109976 ]
  29.  
  30. specialeffect2 248;
  31. next;
  32. }while( select("Play Again:Cancel") == 1 );
  33. close;
  34.  
  35. OnInit:
  36. // Format: <%>,<item ID>,<count>{,...};
  37. setarray .P1[0],70,607,25;
  38. setarray .P2[0],70,13710,1;
  39. setarray .P3[0],40,5471,1;
  40. setarray .P4[0],40,5210,1;
  41. setarray .P5[0],40,5224,1;
  42. setarray .P6[0],50,2357,1,2524,1,2421,1,2115,1;
  43. setarray .P7[0],25,2701,1;
  44. setarray .P8[0],5,2394,1;
  45. setarray .Default[0],7420,50;
  46. setarray .Cost[0],7539,50;
  47. set .Total,8;
  48. end;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment