johnlol

breeder

May 3rd, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //===== rAthena Script =======================================
  2. //= Universal Rental NPC
  3. //===== By: ==================================================
  4. //= Euphy
  5. //===== Current Version: =====================================
  6. //= 1.0a
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= One-click automatic mount rentals.
  11. //============================================================
  12.  
  13. sec_in02.gat,179,173,2  script  Universal Rental NPC    645,{
  14.     if (ismounting()) {
  15.         message strcharinfo(0),"You must first remove your mount.";
  16.         end;
  17.     } else if (((eaclass()&EAJ_THIRDMASK)==EAJ_RANGER) && !countitem(6124)) {
  18.         if (!checkfalcon() && getskilllv("HT_FALCON") && !checkwug()) {
  19.             if(select(" ~ Falcon: ~ Warg")==1) setfalcon;
  20.             else getitem 6124,1; //Wolf's_Flute
  21.         } else getitem 6124,1; //Wolf's_Flute
  22.     } else if (((eaclass()&EAJ_THIRDMASK)==EAJ_MECHANIC) && !checkcart() && getskilllv("MC_PUSHCART")) {
  23.         if (!checkmadogear() && getskilllv("NC_MADOLICENCE")) {
  24.             if(select(" ~ Cart: ~ Mado")==1) setcart;
  25.             else setmadogear;
  26.         } else setcart;
  27.     } else if (!checkcart() && getskilllv("MC_PUSHCART")) setcart;
  28.     else if (!checkfalcon() && getskilllv("HT_FALCON") && !checkwug()) setfalcon;
  29.     else if (!checkriding() && !checkdragon() && getskilllv("KN_RIDING")) {
  30.         if ((eaclass()&EAJ_THIRDMASK)==EAJ_RUNE_KNIGHT) setdragon;
  31.         else setriding;
  32.     } else if (!checkmadogear() && getskilllv("NC_MADOLICENCE")) setmadogear;
  33.     else {
  34.         message strcharinfo(0),"You do not meet requirements to rent.";
  35.         end;
  36.     }
  37.     specialeffect2 EF_TEIHIT3;
  38.     end;
  39. }
Add Comment
Please, Sign In to add comment