Автор: dexter: Дата: 07.04.2010
подправьте пожалсто кому не сложно этого НПЦ при загрузке скрипта пишит еррор
prontera,124,201,1 script Universal Rental Npc 726,{
mes "[Universal Rental Npc]";
mes "Hi, here you can rent Carts, Falcons, Pecopecos, Magic Gear, Gyrphon or Dragons.";
next;
switch(select("Cart:Falcon:Peco/Gyrphon:Dragon:Magic Gear")) {
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 && (!Job == Job_Rune_Knight || !Job == Job_Rune_Knight_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 (BaseJob != Job_Swordman && BaseClass == Job_Swordman && checkriding() == 0 && getskilllv("RK_DRAGONTRAINING")>0) {
setridingdragon;
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 5:
if (BaseJob != Job_Merchant && BaseClass == Job_Merchant && checkriding() == 0 && getskilllv("NC_MADOLICENCE")>0) {
setgear;
close;
}else{
mes "[Universal Rental Npc]";
mes "Sorry " + strcharinfo(0) + ", Please make sure you are the required job and have the required skill.";
close;
}
}
}
Автор: dexter: Дата: 07.04.2010
Cart:Falconeco/Gyrphon/Dragon:Magic Gear
смотри внимательно
этот арендатор не только для 2-1 2-2, а и 3-1 3-2 професий =\
Автор: Kilaruna: Дата: 07.04.2010
какую ошибку пишет?
Автор: dexter: Дата: 07.04.2010
в 55 линии))
чтото типа того
expect command, missing function name or calling undeclared function
ну и там дальше погнал)
вот
Автор: Jake: Дата: 07.04.2010
Цитата dexter;26657:
Cart:Falconeco/Gyrphon/Dragon:Magic Gear
смотри внимательно
этот арендатор не только для 2-1 2-2, а и 3-1 3-2 професий =\
Автор: Kilaruna: Дата: 07.04.2010
Цитата dexter;26660:
в 55 линии))
чтото типа того
expect command, missing function name or calling undeclared function
ну и там дальше погнал)
вот
Автор: dexter: Дата: 07.04.2010
у меня эти скрипты вместе с эмулем был
Автор: Kilaruna: Дата: 07.04.2010
Обращайся к тому, кто тебе его продал. Пусть даст эти функции.
Автор: San: Дата: 07.04.2010
вот рабочий арендатор для 3-их проф.;)
//===== 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,128,214,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;
}
}
}