Jump to content
  • 0

about warg npc


Question

Posted

hello

can someone help me fix this?

i take this script from eathena

and my ranger cant rent a warg

//===== 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]

//============================================================

celestian,61,73,3 script Universal Rental Npc#3rd 670,{

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:For Baby Class"))

{

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");

}

if( Class == Job_Royal_Guard || Class == Job_Royal_Guard_T )

{

mes "Please select the color of your Gryphon.";

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;

}

case 5:

mes "[universal Rental Npc]";

mes "Rent Dragons, Mados or Gryphons for Baby 3rd Job Class.";

next;

switch(select("Dragon/Gryphon:Mado")){

//------------

case 1:

if( BaseJob != Job_Swordman && BaseClass == Job_Swordman && checkriding() == 0 && getskilllv("KN_RIDING") > 0 )

{

set @flag, 0;

if( Class == Job_Baby_Rune || Class == Job_Baby_Rune2 )

{

mes "Please select the color of your dragon.";

next;

set @flag, select("Green:Black:White:Blue:Red");

}

if( Class == Job_Baby_Guard || Class == Job_Baby_Guard2 )

{

mes "Please select the color of your Gryphon.";

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 2:

if( (Class == Job_Baby_Mechanic || Class == Job_Baby_Mechanic2) && checkriding() == 0 )

{

setriding;

close;

}

else

{

mes "[universal Retal Npc]";

mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job.";

close;

}

}

}

}

8 answers to this question

Recommended Posts

Posted (edited)

Your client must not support the dragon colors or your server files...so try doing this;

//===== 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]
//============================================================
celestian,61,73,3 script Universal Rental Npc#3rd 670,{
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:For Baby Class"))
{
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 )
{
if( Class == Job_Rune_Knight || Class == Job_Rune_Knight_T|| Class == Job_Royal_Guard || Class == Job_Royal_Guard_T )
{
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;
}
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;
}
case 5:
mes "[universal Rental Npc]";
mes "Rent Dragons, Mados or Gryphons for Baby 3rd Job Class.";
next;
switch(select("Dragon/Gryphon:Mado")){
//------------
case 1:
if( BaseJob != Job_Swordman && BaseClass == Job_Swordman && checkriding() == 0 && getskilllv("KN_RIDING") > 0 )
{
if( Class == Job_Baby_Rune || Class == Job_Baby_Rune2 ||  Class == Job_Baby_Guard || Class == Job_Baby_Guard2)
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;
}
case 2:
if( (Class == Job_Baby_Mechanic || Class == Job_Baby_Mechanic2) && checkriding() == 0 )
{
setriding;
close;
}
else
{
mes "[universal Retal Npc]";
mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job.";
close;
}
}
}
}

Not tested but it should work

Edited by Skyrim
Posted

You don't need the colored dragons, you can easily change the colors of the mount with different palettes.

I would delet the part with the colored dragons in the script.

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...