summaryrefslogtreecommitdiff
path: root/npc/024-16/generals.txt
blob: d7d6c83bae34d686280f61579a4a0a3517dafb74 (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
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Generals

// FrostiaGeneralQuest( Skillname )
function	script	FrostiaGeneralQuest	{
	.@at$=getarg(0);
	mesn;
	mesq l("Hey. You there. Time to do @@ and show what you're made of.", .@at$);
	next;
	mesn;
	mesq l("If you conclude the training, you'll be suitable for the difficult mission our King have to you.");
	next;
    mesc b(l(".:: Main Quest 4-3 ::.")), 3;
    msObjective(BaseLevel >= 52, l("* @@/@@ Base Level", BaseLevel, 52));
    msObjective(JobLevel >= 24, l("* @@/@@ Job Level", JobLevel, 24));
	next;
	if (BaseLevel >= 52 && JobLevel >= 24) {
		mesn;
		mesq l("Congrats, you did it.");
		next;
		inventoryplace ElixirOfLife, 1, MercCard_Saulc, 1;
		mesn;
		mesq l("Take this @@. It might save your life on the secret mission you're about to be assigned to.", getitemlink(MercCard_Saulc));
		next;
		mesn;
		mesq l("Now go talk to the King.");
		setq General_Narrator, 15;
		getitem MercCard_Saulc, 1;
		getitem ElixirOfLife, 1;
		getexp 0, 400; // Get 10% JEXP. Reference: 3988~5564
		close;
	}
	mesn;
	mesq l("Now, a simple @@ quest to make you stronger...", .@at$);
	next;
	mesn;
	mesq l("Can't think on anything. Go away.");
	close;
}

024-16,29,21,0	script	Wizard General	NPC_BLUESABER,{
	.@q=getq(General_Narrator);
	if (.@q == 14)
		FrostiaGeneralQuest("Magic");
    hello;
    end;

OnInit:
    .distance=5;
    end;
}

024-16,31,21,0	script	Warrior General	NPC_REDSABER,{
	.@q=getq(General_Narrator);
	if (.@q == 14)
		FrostiaGeneralQuest("Fight");
    hello;
    end;

OnInit:
    .distance=5;
    end;
}