breeder.txt 2.7 KB

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