-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBrother4.cpp
84 lines (64 loc) · 2.43 KB
/
Brother4.cpp
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
#pragma hdrstop
#include "Brother4.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Brother4::Brother4()
{}
Brother4::~Brother4()
{}
extern NPCstructure::NPC DeadBrotherNPC;
void Brother4::Create(){
npc = DeadBrotherNPC;
SET_NPC_NAME( "[2927]A frail creature" );
npc.InitialPos.X = 514; //Cave of Specters
npc.InitialPos.Y = 2330; //Cave of Specters
npc.InitialPos.world = 1;
}
void Brother4::OnTalk( UNIT_FUNC_PROTOTYPE )
/*
__QUEST_DEAD_BROTHERS
0: Has not begun talking to the dead brothers...
1-12: Has successfully talked to Brother #X.
*/
{
InitTalk
Begin
INTL( 4328, "Who disturbs the dead?")
Command(INTL( 4269, "KING OF GOLDMOON"))
""
IF ((CheckFlag(__QUEST_DEAD_BROTHERS) == 3) OR (CheckFlag(__QUEST_DEAD_BROTHERS) == 4))
Conversation
INTL( 4329, "We died fighting each other. I killed my brothers, they "
"killed me. All save \"Theodore\".")
GiveFlag(__QUEST_DEAD_BROTHERS,4)
ELSE
Conversation
INTL( 4282, "I cannot answer that. Speak to us in the right order.")
GiveFlag(__QUEST_DEAD_BROTHERS,0)
ENDIF
Command5(INTL( 4266, "TORMENT"),INTL( 4268, "TOURNAMENT OF PRINCE"),INTL( 754, "THEODORE"),INTL( 1609, "DEATH"),INTL( 11417, "POISONED"))
INTL( 4270, "You are asking the wrong corpse. You must start all over again.")
GiveFlag(__QUEST_DEAD_BROTHERS,0)
Command5(INTL( 543, "CURSE"),INTL( 4271, "CUTHANA"),INTL( 569, "HEAL"),INTL( 4272, "ROYAL DOOR"),INTL( 4273, "LOWER DUNGEON"))
INTL( 4270, "You are asking the wrong corpse. You must start all over again.")
GiveFlag(__QUEST_DEAD_BROTHERS,0)
Command2(INTL( 3629, " NAME "),INTL( 485, "WHO ARE YOU"))
INTL( 4325, "Why even ask? I am dead.")
Command2(INTL( 489, "WORK"),INTL( 3696, "WHAT DO YOU DO"))
INTL( 4326, "I do not work, I moan...")
Command2(INTL( 4275, "HINT"),INTL( 554, "HELP"))
INTL( 4330, "The corpse tells you what you need before the one who speaks before me.")
Command4(INTL( 695, "FUCK"),INTL( 696, "SUCK"),INTL( 697, "ASSHOLE"),INTL( 698, " ASS "))
INTL( 4278, "Such foul language can only mean you have life force to spare.")
IF (USER_HP >= 2)
target->SetHP(USER_HP / 2, true)
ENDIF
BREAK
Command5(INTL( 518, "BYE"),INTL( 519, "LEAVE"),INTL( 517, "FAREWELL"),INTL( 521, "EXIT"),INTL( 520, "QUIT"))
INTL( 1075, "Farewell.")
BREAK
Default
INTL( 4279, "You cannot bore me to death, I am already dead.")
EndTalk
}