breeder.txt 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //===== eAthena Script =======================================
  2. //= Custom Free Breeder aka Universal Renter (not reccomended)
  3. //===== By: ==================================================
  4. //= eAthena Team
  5. //===== Current Version: =====================================
  6. //= 1.3a
  7. //===== Compatible With: =====================================
  8. //= eAthena 1.0 Final +
  9. //===== Description: =========================================
  10. //= A Free PecoPeco and Falcon Breeder
  11. //===== Additional Comments: =================================
  12. //= 1.1 FIXED checkriding/cart/falcon funcs [Lupus]
  13. //= 1.2 Added Rebirth/Advanced Class support [Mass Zero]
  14. //= 1.3 Simplified the checks of job [Silentdragon]
  15. //= 1.3a Fixed a Typo Error. [Samuray22]
  16. // -Thanks to ~AnnieRuru~.
  17. //============================================================
  18. prontera,122,200,1 script Universal Rental Npc 726,{
  19. mes "[Universal Rental Npc]";
  20. mes "Hi, here you can rent Carts, Falcons or Pecopecos.";
  21. next;
  22. L_Menu:
  23. menu "Rent a Cart",L_Cart,"Rent a Falcon",L_Falcon,"Rent a Pecopeco",L_Peco,"Quit",L_Quit;
  24. close;
  25. L_Cart:
  26. if((BaseClass == Job_Merchant || BaseJob == Job_SuperNovice) && checkcart() == 0) goto L_Cart_Ok;
  27. mes "[Universal Rental Npc]";
  28. mes "Sorry " + strcharinfo(0) + ", but I only rent carts to people with the Merchant job root, who have enough skills to handle a cart.";
  29. close;
  30. L_Cart_Ok:
  31. if(getskilllv(39)<1) goto L_Need_Skill;
  32. setcart;
  33. goto L_Quit2;
  34. L_Need_Skill:
  35. mes "[Universal Rental Npc]";
  36. mes "Sorry you don't have the required skill to rent a cart.";
  37. close;
  38. L_Falcon:
  39. if(BaseJob != Job_Archer && BaseClass == Job_Archer && checkfalcon() == 0) goto L_Falc;
  40. if(getskilllv(127)<1) goto L_Need_Skill2;
  41. mes "[Universal Rental Npc]";
  42. mes "Sorry " + strcharinfo(0) + ", but I only rent falcons to Hunters and Snipers who the ability to handle 'em.";
  43. close;
  44. L_Falc:
  45. setfalcon;
  46. goto L_Quit2;
  47. L_Need_Skill2:
  48. mes "[Universal Rental Npc]";
  49. mes "Sorry you don't have the required skill to own a Falcon.";
  50. close;
  51. L_Peco:
  52. if (BaseJob != Job_Swordman && BaseClass == Job_Swordman && checkriding() == 0) goto L_Peco_Ok;
  53. if(getskilllv(63)<1) goto L_Need_Skill3;
  54. mes "[Universal Rental Npc]";
  55. mes "Sorry " + strcharinfo(0) + ", but I only rent Pecopecos to Knights and Crusaders who have the ability to handle 'em.";
  56. close;
  57. L_Peco_Ok:
  58. setriding;
  59. goto L_Quit2;
  60. L_Need_Skill3:
  61. mes "[Universal Rental Npc]";
  62. mes "Sorry you don't have the required skill to ride a Peco Peco.";
  63. close;
  64. L_Quit:
  65. mes "[Universal Rental Npc]";
  66. mes strcharinfo(0) + ", please come back when you are ready to rent something.";
  67. close;
  68. L_Quit2:
  69. mes "[Universal Rental Npc]";
  70. mes strcharinfo(0) + ", please come again when you want another...";
  71. close;
  72. }