Jump to content
  • 0

Paladin pecopeco


Question

Posted (edited)

I'm using this script. But there's no rental for Paladin. Can someone fix this. thanks!

//===== eAthena Script =======================================
//= Breeder
//===== By: ==================================================
//= Ace
//===== Current Version: =====================================
//= 1.2
//===== Compatible With: =====================================
//= rAthena SVN 15400 and up.
//= Client that supports new mounts.
//===== Description: =========================================
//= Known as "Universal Rental NPC"
//= Let's a player rent a pecopeco, falcon, cart, warg
//= or ride a dragon, gryphon, and mado.
//===== Changelog: ===========================================
//= 1.1	Added Peco peco option, forgot to.
//=		Changed KN_RIDING to RK_DRAGONTRAINING
//=		for renting dragons.
//= 1.2	Added restrictions for renting falcons and wargs.
//=		Added Warg Mastery skill requirement.
//===== Additional Comments: =================================
//= No bugs found so far.
//= Please report bugs to me([email protected])
//============================================================

-	script	gbreeder	448,{

mes	"^FF0000Universal Rental NPC^000000";
mes	"Greetings " + strcharinfo(0) + "!";
mes	"How may I help you today?";
next;

switch(select("Rental Services:Cancel"))
{
	case 1:
		mes	"^FF0000Universal Rental NPC^000000";
		mes	"Please select from the items below:";

		switch(select("PecoPeco:Cart:Falcon:Wolf Flute:Dragon:Gryphon:Mado"))
		{
			case 1: // Pecopeco
				if(BaseClass == Job_Swordman && checkriding() == 0 && getskilllv("KN_RIDING") > 0 && Class == 7 || Class == 14)
				{
					setriding;
					mes	"There you go, enjoy your Peco Peco!";
					close;
				} else {
					mes	"Sorry, please make sure that you have the required job and skill, also not riding one.";
					close;
				}
			case 2: // Cart
				if((BaseClass == Job_Merchant || Base_Job == Job_SuperNovice) && checkcart() == 0 && getskilllv("MC_PUSHCART") > 0)
				{
					setcart;
					mes	"There you go, enjoy your cart!";
					close;
				} else {
					mes	"Sorry, please make sure that you have the required job and skill, also not having a cart.";
					close;
				}
			case 3: // Falcon
				if(BaseJob != Job_Archer && BaseClass == Job_Archer && checkfalcon() == 0 && getskilllv("HT_FALCON") > 0)
				{
					if((Class == Job_Ranger || Class == Job_Ranger_T) && checkriding())
					{
						mes	"Sorry, You can't rent a falcon while having a warg with you.";
						close;
					} else {
						setfalcon;
						mes	"There you go, have fun with your falcon!";
						close;
					}
				} else {
					mes	"Sorry, please make sure that you have the required job and skill, also not having a falcon.";
					close;
				}
			case 4: // Warg
				if(BaseClass == Job_Archer && countitem(6124) == 0 && getskilllv("RA_WUGMASTERY") > 0 && Class == Job_Ranger || Class == Job_Ranger_T)
				{
					if(checkfalcon())
					{
						mes	"Sorry, You can't rent a warg while having a falcon with you.";
						close;
					} else {
						getitem 6124, 1;
						mes	"There you go, have fun calling your Warg!";
						close;
					}
				} else {
					mes	"Sorry, please make sure that you have the required job and skill.";
					close;
				}
			case 5: // Dragon
				if(checkriding() == 0 && getskilllv("KN_RIDING") > 0 && getskilllv("RK_DRAGONTRAINING") > 0 && Class == 4060 || Class == 4054)
				{
					atcommand "@mount";
					setriding;
					mes	"There you go, don't let your dragon bite you!";
					close;
				} else {
					mes	"Sorry, please make sure that you have the required job and skill, and not riding one.";
					close;
				}
			case 6: // Gryphon
				if(checkriding() == 0 && getskilllv("KN_RIDING") > 0 && Class == 4066 || Class == 4073)
				{
					atcommand "@mount";
					setriding;
					mes	"There you go, fly away with your gryphon... if you can.";
					mes	"*Laughing*";
					close;
				} else {
					mes	"Sorry, please make sure that you have the required job and skill, and not riding one.";
					close;
				}
			case 7: // Mado
				if(BaseJob != Job_Merchant && BaseClass == Job_Merchant && checkriding() == 0 && getskilllv("NC_MADOLICENCE") > 0 && Class == 4064 || Class == 4058)
				{
					atcommand "@mount";
					setriding;
					mes	"There you go, be proud of your Mado!";
					close;
				} else {
					mes	"Sorry, please make sure that you have the required job and skill, and not riding one.";
					close;
				}
		}
	case 2:
		mes	"^FF0000Universal Rental NPC^000000";
		mes	"Alright, come again!";
		close;
}
}

//===== Duplicates: ==========================================
prontera, 158, 185, 4	duplicate(gbreeder)	Rental#1	448
//============================================================

Edited by patr3k

3 answers to this question

Recommended Posts

Posted (edited)

No error in console. I mean when i'm about to rent a pecopeco for "Paladin" using that script. It says,

"Sorry, please make sure that you have the required job and skill, also not riding one."

But i already learned the skills "Riding lvl 1 (Passive), Cavalry Mastery lvl 5 (Passive)".

Edited by patr3k
Posted

Theres this very simple Renter already: https://rathena.svn....tom/breeder.txt (Universal)

Or this one that would work: https://rathena.svn....nts/renters.txt (Just for the paladin coding)

Or you could specifically look at this specific coding:



// Grand PecoPeco Breeder (for Crusaders)-------------------------------------------
prontera,232,318,3	script	Peco Peco Breeder#cru	105,{
if(Upper==0) set .@price,3500; //Normal Peco - default price
if(Upper==1) set .@price,3500; //Armored Peco
if(Upper==2) set .@price,3500; //Baby Peco

mes "[PecoPeco Breeder]";
if (BaseJob == Job_Crusader && Class < Job_Rune_Knight) {
	if(Upper != 1 ) mes "Welcome, Crusader.";
	else mes "Welcome, Paladin.";
	mes "We have a special";
	mes "Peco Peco prepared";
	mes "for you. To rent one";
	mes "will cost "+.@price+" zeny.";
	next;
	switch(select("Rent a PecoPeco:Quit")) {
	case 1:
		if (zeny < .@price) {
			mes "[Peco Peco Breeder]";
			mes "You do not";
			mes "have enough zeny.";
			mes "If you would like";
			mes "a Peco Peco please";
			mes "bring "+.@price+" zeny...";
			close;
		}
		else if(getskilllv("KN_RIDING") == 0) {
			mes "[Peco Peco Breeder]";
			mes "You must first learn";
			mes "to ride a PecoPeco before";
			mes "I can rent one to you.";
			close;
		}
		else if(checkriding()) {
			mes "[Peco Peco Breeder]";
			mes "You are already";
			mes "mounted on a Peco Peco.";
			close;
		}
		else if(ismounting()) {
			mes "[Peco Peco Breeder]";
			mes "Please remove your cash mount.";
			close;
		}
		set zeny,zeny-.@price;
		setriding;
		close;
	case 2:
		mes "[PecoPeco Breeder]";
		mes "See you around.";
		close;
	}
} else {
	mes "What can I do for you?";
	mes "Please be aware that";
	mes "this Peco Peco rental";
	mes "service is strictly for";
	mes "Crusaders and Paladins.";
	close;
}
}

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