berzebub.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //===== rAthena Script =======================================
  2. //= Berzebub Card Quest
  3. //===== By: ==================================================
  4. //= jabs
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Quest to get the Berzebub Card
  11. //===== Additional Comments: =================================
  12. //= 1.1 Fixed ingredients. Was too exploitable [Lupus]
  13. //= 1.2 Optimized. [Euphy]
  14. //============================================================
  15. prontera,165,178,8 script Old Woman 103,{
  16. setarray .@Items[0],714,25,1061,100,1095,200,618,10,1551,2,1614,1,727,20;
  17. set .@n$,"[Old Woman]";
  18. mes .@n$;
  19. if(BerzQuest == 1) {
  20. mes "Hey, I remember you! I already told you that you may only complete this quest once.";
  21. close; }
  22. mes "Greeting, lad. I found a really nifty item while I was picking mushrooms near Glast Heim.";
  23. next;
  24. if(select("Keep Talking:Leave")==2) goto M_Leave;
  25. mes .@n$;
  26. mes "I have never seen an item like this before. I am told it can be placed inside any accessory with a slot available.";
  27. next;
  28. mes .@n$;
  29. mes "If you're interested in this item, I'll tell you what you need for me to make you one of your own. I can only give one of these to each player, so once you finish this quest, you may not do it again.";
  30. next;
  31. if(select("Tell me more about it:Nah, I don't care about it")==2) goto M_Leave;
  32. mes .@n$;
  33. mes "I believe the item is called a ^FF0000Berzebub Card^000000. It makes you cast spells really fast!";
  34. next;
  35. mes .@n$;
  36. mes "I need all of the following items:";
  37. for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) {
  38. mes " ~ "+.@Items[.@i+1]+"x "+getitemname(.@Items[.@i]);
  39. if (countitem(.@Items[.@i]) < .@Items[.@i+1]) set .@nr,1; }
  40. next;
  41. if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave;
  42. mes .@n$;
  43. if (.@nr) {
  44. mes "You lie! Get out of here and get those items, you sorry excuse for a rock star.";
  45. close; }
  46. for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2)
  47. delitem .@Items[.@i], .@Items[.@i+1];
  48. getitem 4145,1;
  49. set BerzQuest, 1;
  50. mes "Congratulations! You have all the items. Here is your ^FF0000Berzebub Card^000000, as promised.";
  51. emotion e_grat;
  52. close;
  53. M_Leave:
  54. mes .@n$;
  55. mes "Such a great item I have right here...";
  56. close;
  57. }