Advertisement
shockwar14

Gacha Machine / Lotti Girl

Aug 21st, 2023
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | Gaming | 0 0
  1. turbo_room,93,132,4 script Card Gacha 562,{
  2.  
  3. setarray .MvpC[0],4236,4147,4168,4142,4134,4137,4123,4324,4263,4318,4276,4146,4132,4131,4143,4135,4144,4148,4121,4342,4302,4305; // MVP Cards
  4.  
  5. mes "[^FFA500Card Gacha^000000]";
  6. mes "I'm Lotti! I'll exchange";
  7. mes "Random Prizes for every";
  8. mes "^ff00003,000,000 zeny^000000.";
  9. next;
  10. mes "[^FFA500Card Gacha^000000]";
  11. mes "Jackpot Prize:";
  12. mes "^ff0000 1x Basic MVP Cards!^000000";
  13. mes "Consolations are:";
  14. mes "^ff0000 x1 Finale Token^000000";
  15. mes "^ff0000 x1 MVP Particle^000000";
  16. mes "^ff0000 x1 YGG Berry 10 Box^000000";
  17. mes "And many more!!";
  18. if (Zeny < 3000000)
  19. close;
  20. next;
  21. if(select("Let's Do This!!:No thanks...")==2) close;
  22. mes "[^FFA500Card Gacha^000000]";
  23. mes "Here we go...";
  24. set Zeny, Zeny - 3000000;
  25. set .@Total,5;
  26. //<%>,<ItemID>,<Amount>
  27. setarray .@P1[0],1,.MvpC[rand(0, 21)],1; // MVP Cards
  28. setarray .@P2[0],3,22783,1; // Finale Token
  29. setarray .@P3[0],3,22781,1; // MVP Particle
  30. setarray .@P4[0],5,14232,1; // YGG Berry Box
  31. setarray .@Default[0],512,1;
  32. set .@i, rand(1,.@Total);
  33. if (rand(1,100) > getd(".@P"+.@i+"[0]"))
  34. {
  35. for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2)
  36. {
  37. getitem .@Default[.@j], .@Default[.@j+1];
  38. if(!.@k[0])
  39. setarray .@k[0], .@Default[.@j], .@Default[.@j+1];
  40. }
  41. }
  42. else{
  43. for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)
  44. {
  45. getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
  46. if (!.@k[0])
  47. {
  48. set .@gz,.@i;
  49. setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
  50. break;
  51. }
  52. }
  53. }
  54. if(1<=.@gz&&.@gz<=3)
  55. announce "Alright! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Card Gacha!",bc_all,0xCBC3E3;
  56. specialeffect2 10;
  57. close;
  58.  
  59. OnInit:
  60. initnpctimer;
  61. end;
  62.  
  63. OnTimer1000:
  64. showscript("Rare Cards");
  65. setnpctimer 0;
  66. end;
  67.  
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement