Jump to content
  • 0

Breeder / Universal Rental NPC in Swordman Type


Question

Posted

//===== eAthena Script =======================================
//= Custom Free Breeder aka Universal Renter (not reccomended)
//===== By: ==================================================
//= eAthena Team
//===== Current Version: =====================================
//= 1.5
//===== Compatible With: =====================================
//= eAthena 1.0 Final +
//===== Description: =========================================
//= A Free PecoPeco and Falcon Breeder
//===== Additional Comments: =================================
//= 1.1 FIXED checkriding/cart/falcon funcs [Lupus]
//= 1.2 Added Rebirth/Advanced Class support [Mass Zero]
//= 1.3 Simplified the checks of job [silentdragon]
//= 1.3a Fixed a Typo Error. [samuray22]
// -Thanks to ~AnnieRuru~.
//= 1.4 Optimized Script. No need for 50 million Labels. [spre]
//= 1.5 Adapted to 3CeAM and 3rd jobs. [pakpil]
//============================================================

prontera,124,201,5 script Universal Rental Npc#3rd 105,{
mes "[universal Rental Npc]";
mes "Hi, here you can rent Carts, Falcons, Pecopecos, Dragons, Mados or Gryphons.";
next;
switch(select("Cart:Falcon:Peco/Dragon/Gryphon:Mado"))
{
 case 1:
  if( (BaseClass == Job_Merchant || BaseJob == Job_SuperNovice) && checkcart() == 0 && getskilllv("MC_PUSHCART") > 0 )
  {
   setcart;
   close;
  }
  else
  {
   mes "[universal Rental Npc]";
   mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
   close;
  }
 case 2:
  if( (Class == Job_Ranger || Class == Job_Ranger_T) && checkriding() )
  {
   mes "Sorry " + strcharinfo(0) + ", you can't rent a Falcon if you have a Warg rented.";
   close;
  }
  if( BaseJob != Job_Archer && BaseClass == Job_Archer && checkfalcon() == 0 && getskilllv("HT_FALCON") > 0 )
  {
   setfalcon;
   close;
  }
  else
  {
   mes "[universal Rental Npc]";
   mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
   close;
  }	
 case 3:
  if( BaseJob != Job_Swordman && BaseClass == Job_Swordman && checkriding() == 0 && getskilllv("KN_RIDING") > 0 )
  {
   set @flag, 0;
   if( Class == Job_Rune_Knight || Class == Job_Rune_Knight_T )
   {
 mes "Please select the color of your dragon.";
 next;
 set @flag, select("Green:Black:White:Blue:Red");

   }
   setriding @flag;
   close;
  }
  else
  {
   mes "[universal Rental Npc]";
   mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
   close;
  }
 case 4:
  if( (Class == Job_Mechanic || Class == Job_Mechanic_T) && checkriding() == 0 )
  {
   setriding;
   close;
  }
  else
  {
   mes "[universal Retal Npc]";
   mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job.";
   close;
  }
}
}

and

//===== rAthena Script =======================================
//= Universal Rental NPC
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.3a
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= A Free PecoPeco and Falcon Breeder
//===== Additional Comments: =================================
//= 1.1 FIXED checkriding/cart/falcon funcs [Lupus]
//= 1.2 Added Rebirth/Advanced Class support [Mass Zero]
//= 1.3 Simplified the checks of job [silentdragon]
//= 1.3a Fixed a Typo Error. [samuray22]
//=	  Thanks to ~AnnieRuru~.
//= 1.4 Optimized Script. No need for 50 million Labels. [spre]
//============================================================
prontera,124,201,1 script Universal Rental Npc 726,{
mes "[universal Rental Npc]";
mes "Hi, here you can rent Carts, Falcons or Pecopecos.";
next;
switch(select("Cart:Falcon:Peco")) {
case 1:
 if((BaseClass == Job_Merchant || BaseJob == Job_SuperNovice) && checkcart() == 0 && getskilllv("MC_PUSHCART")>0) {
  setcart;
  close;
 } else {
  mes "[universal Rental Npc]";
  mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
  close;
 }
case 2:
 if(BaseJob != Job_Archer && BaseClass == Job_Archer && checkfalcon() == 0 && getskilllv("HT_FALCON")>0) {
  setfalcon;
  close;
 } else {
  mes "[universal Rental Npc]";
  mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
  close;
 }
case 3:
 if (BaseJob != Job_Swordman && BaseClass == Job_Swordman && checkriding() == 0 && getskilllv("KN_RIDING")>0) {
  setriding;
  close;
 } else {
  mes "[universal Rental Npc]";
  mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
  close;
 }
}
}

those scripts dont let me rent peco's but other like merchant types works like a charm but why in swordman type it wont work xD

3 answers to this question

Recommended Posts

Posted

I was just using this default NPC attach below and it seems to not working... whenever i click it, it doesn't detect u as a royal guard.

And when I @changejob to Rune Knight it will work but the Dragon will not show.

prontera,155,181,5 script Sample 757,{
mes "[universal Rental Npc]";
mes "Hi, here you can rent Carts, Falcons, Pecopecos, Dragons, Mados or Gryphons.";
next;
switch(select("Cart:Falcon:Peco/Dragon")){
Case 1:
if( checkcart() || !getskilllv("MC_PUSHCART") ){
 mes "Sorry you didnt meet the requirements.";
}else
 setcart;
break;
Case 2:
if( checkfalcon() || !getskilllv("HT_FALCON") ){
 mes "Sorry you didnt meet the requirements.";
}else
 setfalcon;
break;
Case 3:
if( checkriding() || !getskilllv("KN_RIDING") ){
 mes "Sorry you didnt meet the requirements.";
}else
 setriding;
break;
}
mes "Thank you.";
close;
}

And this script seems to not letting you get a MADO?

switch(select("Cart:Falcon:Peco/Dragon")){

post-2978-0-36967700-1334058007_thumb.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...