Jump to content

Question

1 answer to this question

Recommended Posts

  • 0
Posted
//===== 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	726,{
	mes	"^FF0000Universal Rental NPC^000000";
	mes	"Greetings " + strcharinfo(0) + "!";
	mes "I provide you with the service to ";
	mes "rent a cart or animal companion.";
	mes "The price for this service is " + .service_fee + "z.";
	mes	"How may I help you today?";
	next;

	if(select("Rental Services:Cancel") == 2) {
		mes	"^FF0000Universal Rental NPC^000000";
		mes	"Alright, come again!";
		close;
	}

	if(.service_fee > Zeny) {
		mes	"^FF0000Universal Rental NPC^000000";
		mes	"Sadly you don't have enoug money.";
		mes "Please come back when you have it.";
		close;
	}

	mes	"^FF0000Universal Rental NPC^000000";
	mes	"Please select from the items below:";
	switch(select("PecoPeco:Cart:Falcon")) {
		case 1: // Pecopeco
			if(checkriding() || getskilllv("KN_RIDING")) {
				mes	"Sorry, please make sure that you have the required job and skill, also not riding one.";
				close;
			}

			setriding();
			mes	"There you go, enjoy your Peco Peco!";
			close;
		case 2: // Cart
			if(checkcart() || getskilllv("MC_PUSHCART")) {
				mes	"Sorry, please make sure that you have the required job and skill, also not having a cart.";
				close;
			}

			setcart();
			mes	"There you go, enjoy your cart!";
			close;
		case 3: // Falcon
			if(BaseClass != Job_Archer || checkfalcon() && getskilllv("HT_FALCON")) {
				mes	"Sorry, please make sure that you have the required job and skill, also not having a falcon.";
				close;
			}

			if((Class == Job_Ranger || Class == Job_Ranger_T) && checkriding()) {
				mes	"Sorry, You can't rent a falcon while having a warg with you.";
				close;
			}

			setfalcon();
			mes	"There you go, have fun with your falcon!";
			close;
	}

	OnTimer0050:
			showscript("Universal Rental", getnpcid(0));
			initnpctimer();
			end;

	OnInit:
			.service_fee = 500;
			initnpctimer();
			end;
}


//===== Duplicates: ==========================================
//payon,140,222,5	duplicate(gbreeder)	Universal Rental NPC#1	726
payon,151,167,5	duplicate(gbreeder)	Universal Rental NPC#1	726
//============================================================
eclage,116,37,5	duplicate(gbreeder)	Universal Rental NPC#100	726
bg_lobby,60,42,4	duplicate(gbreeder)	Universal Rental NPC#1123	726

 

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