summaryrefslogtreecommitdiff
path: root/npc/merchants/manuk.txt
blob: e08034d4afc3091a7059467bbdd53574f20132fd (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
//===== rAthena Script =======================================
//= Manuk Merchant
//===== By: ==================================================
//= rAthena dev team
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= [Aegis Conversion]
//= Manuk coin redemption NPC.
//===== Additional Comments: =================================
//= 1.0 First version 
//= 1.1 Fixed checkweight. [Gepard]
//============================================================

man_in01,286,16,1	script	Merchant of Manuk	454,{
	if ((isequipped(2782) == 1) && (ep13_2_rhea == 100)) {
		if (checkweight(1201,1) == 0) {
			mes "[Merchant of Manuk]";
			mes "It looks like you're carrying too many things.";
			mes "Why not put some of your items in storage and come back?";
			close;
		}
		mes "[Merchant of Manuk]";
		mes "Hello.";
		mes "What are you looking for?";
		next;
		switch(select("View item description:Manuk's Opportunity:Manuk's Courage:Manuk's Faith:Cancel")) {
		case 1:
			mes "[Merchant of Manuk]";
			mes "Here are the item descriptions.";
			close2;
			ReadBook 11019,1;
			end;
		case 2:
			mes "[Merchant of Manuk]";
			mes "I can sell you 3 Manuk's Opportunity for^3131FF 1 coin^000000";
			next;
			switch(select("Purchase:Do not purchase.")) {
			case 1:
				if (countitem(6080) > 0) {
					mes "[Merchant of Manuk]";
					mes "Thank you for coming.";
					delitem 6080,1; //Manuk_Coin
					getitem 12342,3; //Manuk's_Opportunity
					close;
				}
				else {
					mes "[Merchant of Manuk]";
					mes "You don't have enough coins.";
					close;
				}
			case 2:
				mes "[Merchant of Manuk]";
				mes "Come again if you change your mind.";
				close;
			}
		case 3:
			mes "[Merchant of Manuk]";
			mes "I can sell you 3 Manuk's Courage for^3131FF 1 coin^000000";
			next;
			switch(select("Purchase:Do not purchase.")) {
			case 1:
				if (countitem(6080) > 0) {
					mes "[Merchant of Manuk]";
					mes "Thank you for coming.";
					delitem 6080,1; //Manuk_Coin
					getitem 12343,3; //Manuk's_Courage
					close;
				}
				else {
					mes "[Merchant of Manuk]";
					mes "You don't have enough coins.";
					close;
				}
			case 2:
				mes "[Merchant of Manuk]";
				mes "Come again if you change your mind.";
				close;
			}
		case 4:
			mes "[Merchant of Manuk]";
			mes "I can sell you 3 Manuk's Faith for^3131FF 1 coin^000000";
			next;
			switch(select("Purchase:Do not purchase.")) {
			case 1:
				if (countitem(6080) > 0) {
					mes "[Merchant of Manuk]";
					mes "Thank you for coming.";
					delitem 6080,1; //Manuk_Coin
					getitem 12348,3; //Manuk's_Faith
					close;
				}
				else {
					mes "[Merchant of Manuk]";
					mes "You don't have enough coins.";
					close;
				}
			case 2:
				mes "[Merchant of Manuk]";
				mes "Come again if you change your mind.";
				close;
			}
		case 5:
			mes "[Merchant of Manuk]";
			mes "Come again if you change your mind.";
			close;
		}
	}
	else {
		mes "[Merchant of Manuk]";
		mes "Rtt od d";
		mes "Qwo hd is d irr";
		close;
	}
}