summaryrefslogtreecommitdiff
path: root/npc/custom/quests/dead_branch.txt
blob: 7ae12a60c59072c6479019387bc7676285e95ab1 (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
//===== Hercules Script ======================================
//= Dead Branch (+Bloody Branch) Quest
//===== By: ==================================================
//= GM-Yevon
//===== Current Version: =====================================
//= 1.1
//===== Description: =========================================
// Simple item trade-in quest, a person can get a Dead Branch
// by simply providing the items: Log x3 (7201), Wooden Heart x1 (7189),
// Trunk x5 (1019), and Wooden Gnarl x1 (7222).
//===== Additional Comments: =================================
//= 1.1 Optimized, added Bloody Branch with 0.01% chance [Lupus]
//============================================================

niflheim,204,179,3	script	Mister Mobry	2_M_MOLGENSTEIN,{

	mes "[Mister Mobry]";
	mes "Trees possess spirits you know...";
	next;

	mes "[Mister Mobry]";
	mes "In fact I know a secret about these spirits that can in some way... perhaps aid you...";
	next;

	mes "[Mister Mobry]";
	mes "I can create a spirited branch... That is, if you can provide me with the correct materials...";
	next;
	while (true) {
		switch (select("What Do I Need?", "Where Can I find this Crap?", "Make me a Dead Branch!", "Forget it...")) {
		case 1:
			mes "[Mister Mobry]";
			mes "Mwehehe... I see you want to control tree spirits am I right? Ok... I need:";
			mes "^1354453 Logs^000000";
			mes "^1354451 Wooden Heart^000000";
			mes "^1354455 Trunk^000000";
			mes "^1354451 Wooden Gnarl^000000";
			next;
			continue;
		case 2:
			mes "[Mister Mobry]";
			mes "You can find the following items from certain monsters heheh...";
			mes "^135445Logs can be found off of Tree Golems.^000000";
			mes "^135445Wooden Hearts the essence of Tree Golems.^000000";
			mes "^135445Trunks? Seriously, think wood...^000000";
			mes "^135445Wooden Gnarl... Gibbet...^000000";
			next;
			continue;
		case 3:
			mes "[Mister Mobry]";
			mes "Well...let us see what you brought me...";
			next;
			if (countitem(Log)<3) {
				mes "[Mister Mobry]";
				mes "^135445Logs^000000 are the body... I need more of them.";
				mes "Get me three logs and I'll make you the spirit...";
				close;
			}
			if (countitem(Heart_Of_Tree)<1) {
				mes "[Mister Mobry]";
				mes "The ^135445Wooden Heart^000000 is the essence of the spirit.";
				mes "Get me one wooden heart and I'll make you the spirit...";
				close;
			}
			if (countitem(Wooden_Block)<5) {
				mes "[Mister Mobry]";
				mes "What? You couldn't even find ^1354455 Trunks^000000?";
				mes "Kill Elder Willows or something... Geez... no trunks heh... pathetic.";
				close;
			}
			if (countitem(Tree_Knot)<1) {
				mes "[Mister Mobry]";
				mes "How can I make one without a ^135445Wooden Gnarl^000000?";
				mes "I said Gibbet... they are all around this place...";
				close;
			}
			delitem 7201,3;
			delitem 7189,1;
			delitem 1019,5;
			delitem 7222,1;
			mes "[Mister Mobry]";
			mes "Heh... Hope you have fun with the tree spirits... Careful now...";
			mes "Heh... careful now? What do I care if you di..... Never mind.";
			if (rand(1000)==0) {
				getitem Bloody_Dead_Branch,1; //Bloody Branch
				close;
			}
			getitem Branch_Of_Dead_Tree,1; //Dead Branch
			close;
		case 4:
			mes "[Mister Mobry]";
			mes "No spirit for you... then go!";
			close;
		}
	}
}