Advertisement
johnlol

Lotti Gurl

Jul 23rd, 2023
902
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 4.01 KB | Gaming | 0 0
  1. // ------------------------------------
  2. // Lotti Gurl
  3. // [ Modified Version ] NubDes
  4. // SSRO TEAM
  5. // ------------------------------------
  6.  
  7. prontera,147,175,5  script  Bebang's Lotti  408,{
  8.  
  9. set .@urnpcs$,"[ Aling Bebang ]";
  10.  
  11. if(Weight >= MaxWeight/2) goto Low;
  12. menu "Deal me in!",L_Deal,"Explanation",L_Explan,"Nothing.",L_Cancel;
  13.  
  14. L_NoZeny:
  15.     mes .@urnpcs$;
  16.     mes "Are you kidding me?";
  17.     close;
  18.  
  19. L_Deal:
  20.     if(Weight >= MaxWeight/2) goto Low;
  21.     if (Zeny < 20000) goto L_NoZeny;
  22.     //mes " ";
  23.     set Zeny,Zeny-20000;
  24.     //delitem 7227,1;
  25.     set .@Total,26;     //Total de setarray
  26.     //<%>,<ItemID>,<Amount>
  27.     setarray .@P1[0],1,18760,1;         // Improved Mage Hat [1] - 1%
  28.     setarray .@P2[0],1,18766,1;     // Enhanced Helm of Angel [1] - 1%
  29.     setarray .@P3[0],1,5374,1;      // Gigantic Baphomet Horn - 1%
  30.     setarray .@P4[0],1,5518,1;      // Large Baphomet Horn - 1%
  31.     setarray .@P5[0],1,5013,1;      // Lord Kaho's Horn - 1%
  32.     setarray .@P6[0],1,18767,1;     // Enhanced Hat of the Sun God [1] 1%
  33.     setarray .@P7[0],1,18771,1;     // Improved Opera Phantom Mask 1%
  34.     setarray .@P8[0],1,18773,1;     // Advanced Fin Helm 1%
  35.     setarray .@P9[0],5,7619,rand(1,5);      // Enriched Elu 5%
  36.     setarray .@P10[0],5,7620,rand(1,5);         // Enriched Ori 5%
  37.     setarray .@P11[0],5,12210,1;    // Bubble Gum 5%
  38.     setarray .@P12[0],5,14545,1;    // 300% Manual 5%
  39.     setarray .@P13[0],40,7227,rand(2,5);    // TCG Card 40%
  40.     setarray .@P14[0],60,12043,3;   // Str + 3 60%
  41.     setarray .@P15[0],60,12048,3;   // Int + 3 60%
  42.     setarray .@P16[0],60,12053,3;   // Vit + 3 60%
  43.     setarray .@P17[0],60,12058,3;   // Agi + 3 60%
  44.     setarray .@P18[0],60,12063,3;   // Dex + 3 60%
  45.     setarray .@P19[0],80,678,10;    // Poison Bottle 90%
  46.     setarray .@P20[0],90,664,1;     // Red Gift Box 90%
  47.     setarray .@P21[0],90,665,1;     // Yellow Gift Box 90%
  48.     setarray .@P22[0],90,667,1;     // Green Gift Box 90%
  49.     setarray .@P23[0],90,rand(656,657),5;   // Awakening Potion/Berserk Potion 90%
  50.     setarray .@P24[0],95,617,rand(1,5);     // Old Purple Box 95%
  51.     setarray .@P25[0],95,11548,rand(20,80);     // Siege White Potion 95%
  52.     setarray .@P26[0],95,11549,rand(20,80);     // Siege Blue Potion 95%
  53.     setarray .@Default[0],644,1;    // if no Reward given (Bebang's Ticket will be the default) at 100%
  54.     set .@i, rand(1,.@Total);
  55.     if (rand(1,100) > getd(".@P"+.@i+"[0]"))
  56.     {
  57.         for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2)
  58.         {
  59.             getitem .@Default[.@j], .@Default[.@j+1];
  60.             if(!.@k[0])
  61.                 setarray .@k[0], .@Default[.@j], .@Default[.@j+1];
  62.         }
  63.     }
  64.     else{
  65.         for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)
  66.         {
  67.             getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
  68.             if (!.@k[0])
  69.             {
  70.                 set .@gz,.@i;
  71.                 setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");
  72.                 break;
  73.             }
  74.         }
  75.     }
  76.     if(1<=.@gz&&.@gz<=4)
  77.         announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 147 175)!",0;
  78.         specialeffect2 18;
  79.     end;
  80.  
  81. //L_Whatodo:
  82. //switch(select("Continue:Stop")) {
  83. //  case 1:
  84. //      goto L_Deal;
  85. //  case 2:
  86. //      mes .@urnpcs$;
  87. //      mes "Are you that kind of poor?!";
  88. //      mes "Ok, Goodbye..";
  89. //      close;
  90. //  }
  91.  
  92. L_Explan:
  93.     mes .@urnpcs$;
  94.     mes "Hello ^FFC0CB"+strcharinfo(0)+"^000000! Are you out";
  95.     mes "shopping in the city?!";
  96.     next;
  97.     mes .@urnpcs$;
  98.     mes "I'm Lotti! I'll exchange cool";
  99.     mes "random prizes for every";
  100.     mes "^ff000020^000000,^ff0000000^000000.";
  101.     next;
  102.     mes .@urnpcs$;
  103.     mes "Our Grand prize is:";
  104.     mes "^DAA520Enhanced Hat of the Sun God ^000000[^ff00001^000000]";
  105.     mes "Special prizes are:";
  106.     mes "^8B4513Gigantic Baphomet Horns^000000";
  107.     mes "^A0522DLarge Baphomet Horns^000000";
  108.     mes "and ^FFD700Lord Kaho's Horn^000000";
  109.     next;
  110.     mes .@urnpcs$;
  111.     mes "You can still get random item";
  112.     mes "if you failed to get the grand";
  113.     mes "prize and special prizes.";
  114.     close;
  115.    
  116. L_Cancel:
  117.     mes .@urnpcs$;
  118.     mes "Ok, come back when you got enough ^ff0000money^000000..";
  119.     close;
  120.  
  121. Low:
  122.     mes .@urnpcs$;
  123.     mes "You are ^ff0000Overweight^000000!";
  124.     close;
  125. OnInit:
  126.     waitingroom "Lotti 20k",0;
  127.     end;
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement