summaryrefslogtreecommitdiff
path: root/npc/custom/breeder.txt
blob: 580042b452fde31c4528e601668bac1c8215f766 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//===== 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;
		}
	}
}