Advertisement
johnlol

Zodiac

Jul 23rd, 2023
1,126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 3.45 KB | Gaming | 0 0
  1. //===== Hercules Script ======================================================
  2. //= Quest for Zodiac Headgeards
  3. //===== By: ==================================================================
  4. //= Ridley, Stolao
  5. //===== Current Version: =====================================================
  6. //= 1.0
  7. //= 1.1 Converted to rA [Stolao]
  8. //= 1.2 Added Itemlink Support
  9. //===== Description: =========================================================
  10. //= Rotates each month. January (Capricorn) to December (Sagittarius)
  11. //= Counts and displays required items and how much you miss
  12. //= Player can choose to make diadem or crown
  13. //============================================================================
  14. prontera.gat,189,181,2  script  Zodiac#hats 4_F_PINKWOMAN,{
  15.     function Zodiac;
  16.     mes "[Zodiac of the Month]";
  17.     mes "Hello there, I am in charge of the Zodiac items. Please select which Zodiac item you are interested in.";
  18.     .@Z = select("Zodiac Diadem:Zodiac Crown");
  19.     if(.@Z == 1)    setarray .Zodiac, 5745, 5512, 5514, 5545, 5549, 5569, 5581, 5589, 5599, 5663, 5677, 5740;
  20.         else    setarray .Zodiac, 5744, 5513, 5515, 5546, 5550, 5570, 5582, 5588, 5598, 5662, 5676, 5739;
  21.     next;
  22.     mes "[Zodiac of the Month]";
  23.         mes "Would you like to make the Zodiac "+((.@Z==1)?"Diadem":"Crown")+" for the "+gettime(6)+"th Month of this year ?",
  24.             ((.Link)?"<ITEM>"+getitemname(.Zodiac[gettime(6)-1])+"<INFO>"+.Zodiac[gettime(6) -1]+"</INFO></ITEM>":"^FF0000"+getitemname (.Zodiac[gettime(6)-1])+"^000000");
  25.     next;
  26.     if(select("Yes:No") == 2) close;
  27.     switch(gettime(6)){
  28.         case 1:     Zodiac(7511,300, 2256,1, 4150,1, 7107,100, 7106,100);   break;
  29.         case 2:     Zodiac(7511,300, 4443,1, 6075,100, 12020,20, 24164,50); break;
  30.         case 3:     Zodiac(7511,300, 1054,100, 1249,1, 4089,1, 12020,50);   break;
  31.         case 4:     Zodiac(7511,300, 2256,1, 1570,1, 7107,100, 7106,100);   break;
  32.         case 5:     Zodiac(7511,300, 941,100, 1005,10, 4201,1, 4126,1); break;
  33.         case 6:     Zodiac(7511,300, 6323,100, 1571,1, 996,15, 1307,1); break;
  34.         case 7:     Zodiac(7511,300, 960,100, 991,50, 943,100, 4049,1); break;
  35.         case 8:     Zodiac(7511,300, 1030,1, 6032,100, 4453,1, 1825,1); break;
  36.         case 9:     Zodiac(7511,300, 1049,1, 5125,1, 2420,1, 2521,1, 2116,1, 2355,1, 2254,1);   break;
  37.         case 10:    Zodiac(7511,300, 1980,1, 660,1, 7440,50, 4268,1);   break;
  38.         case 11:    Zodiac(7511,300, 4068,1, 904,100, 7125,100);        break;
  39.         case 12:    Zodiac(7511,300, 6089,50, 1384,1, 1730,1, 7097,100);    break;
  40.     }
  41.     mes "[Zodiac of the Month]";
  42.     mes "Awesome! Here you go. You gained ^FF0000"+getitemname(.Zodiac[gettime(6)-1])+"^000000 for this month!";
  43.     getitem .Zodiac[gettime(6) -1], 1;
  44.     close;
  45.  
  46.     function Zodiac {
  47.         mes "[ ^0000FF Required Items ^000000 ]",
  48.             "^FFFFFF________________________________^000000";
  49.         for (@i = 0; getarg(.@i, 0); .@i+=2) {
  50.             mes ((countitem(getarg(.@i)) < getarg(.@i + 1))?"^FF0000":"^0000FF")+"[ "+countitem(getarg(.@i))+" / "+getarg(.@i + 1)+" ] "+
  51.                 ((.Link)?"<ITEM>"+getitemname(getarg(.@i))+"<INFO>"+getarg(.@i)+"</INFO></ITEM>":"^0000FF"+getitemname(getarg(.@i))+"^000000");
  52.             if(countitem(getarg(.@i)) < getarg(.@i + 1)) .@j++;
  53.         }
  54.         mes "^FFFFFF________________________________^000000";
  55.         if (.@j){
  56.             mes "[ ^FF0000 "+.@j+" More Items For Completion ^000000 ]";
  57.             close;
  58.         }
  59.         next;
  60.         if (select("^FF0000Continue^000000", "Cancel") == 2) close;
  61.         for(.@i = 0; getarg(.@i,0); .@i+=2)
  62.             delitem getarg(.@i), getarg(.@i + 1);
  63.         return;
  64.     }
  65. OnInit:
  66.     // Use Item Links?
  67.     // Toggle
  68.     //   1 = On
  69.     //   0 = Off
  70.     .Link = 0;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement