summaryrefslogtreecommitdiff
path: root/npc/quests/Another_Garrison.txt
blob: 1cf1a3a1840fd3425fd2e54184adfce13a022103 (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
que_ng.gat,182,85,2	script	Garrison	109,{

if (garrisonq == 1) {
	mes "[Garrison]";
	mes "Hey, you've comeback, let's see if you brought your items:";
	if (Zeny < 30000) {
		mes "You're going to need at least 30,000z. Get some please";
		close;
	} else if (countitem(999) < 50) {
		mes "You need "+(50 - countitem(999))+" steels. Get more please";
		close;
	} else if (countitem(985) < 3) {
		mes "You need "+(3 - countitem(985))+" eluniums. Get more please";
		close;
	} else if (countitem(1003) < 50) {
		mes "You need "+(50 - countitem(1003))+" coals. Get more please";
		close;
	} else if (countitem(7317) < 20) {
		mes "You need "+(20 - countitem(7317))+" Rusty screws. Get more please";
		close;
	} else
	mes "Awesome! You've got them all!";
	next;
	mes "[Garrison]";
	mes "Here's your ^800000Garrison^000000!";
	delitem 999,50;
	delitem 985,3;
	delitem 1003,50;
	delitem 7317,20;
	set Zeny,Zeny-30000;
	getitem 13104,1;
	set garrisonq,0;
	next;
	mes "[Garrison]";
	mes "Enjoy it and use it wise~~";
	close;
}
mes "[Garrison]";
mes "Hiya there!~~ Have you ever heard about ''The Garrison''?";
switch(select("The handgun?:Err, besides you, no")) {
	case 1:
		next;
		mes "[Garrison]";
		mes "YES YES! That one!. The garrison is a nice overall handgun which combines gunpowder's power and accuracy.";
		next;
		mes "[Garrison]";
		mes "However, it's not publicly made nowadays, but I do know how to make one. It will cost you a few things though... Interested?";
		switch(select("Yes I am:Nah, guns are not my type")) {
			case 1:
				next;
				mes "[Garrison]";
				mes "Ok, here's what you need:";
				mes "^80808050 Steels^000000";
				mes "^4747473 Eluniums^000000";
				mes "50 Coals";
				mes "^80000020 Rusted Screws^000000";
				mes "^FFAA0030,000 Zeny^000000";
				next;
				mes "[Garrison]";
				mes "Still interested?";
				if (select("Yes I am:No thanks...") == 1) {
					next;
					mes "[Garrison]";
					mes "Good stuff. Come back with the items then";
					set garrisonq,1;
					close;
				}
			case 2:
				next;
				mes "[Garrison]";
				mes "Come back anytime then!";
				close;
		}
	case 2:
		next;
		mes "[Garrison]";
		mes "Bad thing then...";
		close;
	}
}