-
Notifications
You must be signed in to change notification settings - Fork 156
/
temp2.txt
302 lines (290 loc) · 9.35 KB
/
temp2.txt
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
# -*- coding: utf-8 -*-
def t300001_1():
"""State 0,1"""
t300001_x4()
Quit()
def t300001_x0():
"""State 0,1"""
if not CheckSpecificPersonTalkHasEnded(0):
"""State 7"""
ClearTalkProgressData()
StopEventAnimWithoutForcingConversationEnd(0)
"""State 6"""
ReportConversationEndToHavokBehavior()
else:
pass
"""State 2"""
if CheckSpecificPersonGenericDialogIsOpen(0) == true:
"""State 3"""
ForceCloseGenericDialog()
else:
pass
"""State 4"""
if CheckSpecificPersonMenuIsOpen(-1, 0) == true and not CheckSpecificPersonGenericDialogIsOpen(0):
"""State 5"""
ForceCloseMenu()
else:
pass
"""State 8"""
return 0
def t300001_x1(gesture1=17, z1=9019, flag3=6067):
"""State 0,1"""
if GetEventStatus(flag3) == FlagState.On:
"""State 2"""
pass
else:
"""State 3,4"""
AcquireGesture(gesture1)
OpenItemAcquisitionMenu(ItemType.Goods, z1, 1)
SetEventState(flag3, FlagState.On)
assert not IsMenuOpen(MenuType.Bonfire) and GetCurrentStateElapsedFrames() > 1
"""State 5"""
return 0
def t300001_x2(actionbutton1=_, flag1=6001, flag2=6000):
"""State 0"""
while True:
"""State 1"""
assert (not GetOneLineHelpStatus() and not IsTalkingToSomeoneElse() and not IsClientPlayer()
and not IsPlayerDead() and not IsCharacterDisabled())
"""State 2"""
assert CompareBonfireState(1)
"""State 4"""
assert GetEventStatus(flag1) == FlagState.On and not GetEventStatus(flag2)
"""State 3"""
if CompareBonfireState(0):
pass
elif CheckActionButtonArea(actionbutton1):
break
elif (not (not GetOneLineHelpStatus() and not IsTalkingToSomeoneElse() and not IsClientPlayer()
and not IsPlayerDead() and not IsCharacterDisabled())):
pass
elif not GetEventStatus(flag1) or GetEventStatus(flag2) == FlagState.On:
pass
"""State 5"""
return 0
def t300001_x3(action1=10010713):
"""State 0,1"""
# action:10010713:"Game installation incomplete.\nCannot travel between bonfires."
OpenGenericDialog(DialogBoxType.CenterMiddleDimScreen1, action1, DialogResult.Left, DialogBoxStyle.OrnateNoOptions, 1)
assert not CheckSpecificPersonGenericDialogIsOpen(0)
"""State 2"""
return 0
def t300001_x4():
"""State 0"""
while True:
"""State 1"""
call = t300001_x5()
assert IsMultiplayerInProgress() == true
"""State 2"""
call = t300001_x8()
assert not IsMultiplayerInProgress()
def t300001_x5():
"""State 0,1"""
if CompareBonfireLevel(5, 0) == true:
"""State 2"""
Label('L0')
else:
"""State 3,15"""
call = t300001_x2(actionbutton1=6100, flag1=6001, flag2=6000)
if call.Done():
"""State 7"""
TurnCharacterToFaceEntity(-1, 10000, -1)
assert GetCurrentStateElapsedFrames() > 1 and GetWhetherChrEventAnimHasEnded(10000) == true
"""State 4"""
OfferHumanity()
assert CompareBonfireLevel(5, 0) == true
"""State 11"""
RequestUnlockTrophy(Trophy.Enkindle)
"""State 9"""
UpdatePlayerRespawnPoint()
Goto('L0')
elif CompareBonfireLevel(5, 0) == true:
pass
"""State 14"""
assert t300001_x2(actionbutton1=6101, flag1=6001, flag2=6000)
"""State 5"""
ClearPlayerDamageInfo()
"""State 6"""
SetTalkTime(1)
"""State 8"""
TurnCharacterToFaceEntity(-1, 10000, -1)
assert GetCurrentStateElapsedFrames() > 1 and GetWhetherChrEventAnimHasEnded(10000) == true
"""State 10"""
UpdatePlayerRespawnPoint()
"""State 12"""
StartBonfireAnimLoop()
call = t300001_x9()
def ExitPause():
EndBonfireKindleAnimLoop()
if call.Done():
Goto('L0')
elif HasPlayerBeenAttacked() == true or GetDistanceToPlayer() > 3 or CompareBonfireState(0):
"""State 13"""
assert t300001_x10()
Goto('L0')
def t300001_x6():
"""State 0,6"""
call = t300001_x0()
if call.Done() and CompareBonfireLevel(5, 0) == true:
pass
elif call.Done():
"""State 2,7"""
call = t300001_x2(actionbutton1=6100, flag1=6001, flag2=6000)
if call.Done():
"""State 4"""
TurnCharacterToFaceEntity(-1, 10000, -1)
assert GetCurrentStateElapsedFrames() > 1 and GetWhetherChrEventAnimHasEnded(10000) == true
"""State 3"""
OfferHumanity()
"""State 5"""
UpdatePlayerRespawnPoint()
assert CompareBonfireLevel(5, 0) == true
elif CompareBonfireLevel(5, 0) == true:
pass
"""State 1"""
Quit()
def t300001_x7():
"""State 0,1"""
assert t300001_x0()
"""State 2"""
return 0
def t300001_x8():
"""State 0"""
while True:
"""State 1"""
call = t300001_x6()
assert IsClientPlayer() == true
"""State 2"""
call = t300001_x7()
assert not IsClientPlayer()
def t300001_x9():
"""State 0,10"""
assert GetCurrentStateElapsedTime() > 2
"""State 21"""
assert t300001_x1(gesture1=17, z1=9019, flag3=6067)
"""State 17"""
MainBonfireMenuFlag()
while True:
"""State 1"""
ClearTalkListData()
"""State 2"""
# action:15000150:"Travel"
AddTalkListData(1, 15000150, -1)
# action:15002000:"Level Up"
AddTalkListData(10, 15002000, -1)
# action:15000130:"Attune Spell"
AddTalkListData(2, 15000130, -1)
# action:15010002:"Reinforce Weapon"
AddTalkListDataIf(not GetEventStatus(25000055), 18, 15010002, -1)
# action:15010001:"Infuse Weapon"
AddTalkListData(17, 15010001, -1)
# action:15010003:"Repair Equipment"
AddTalkListData(19, 15010003, -1)
# action:15010005:""
AddTalkListData(20, 15010005, -1)
# action:15010006:""
AddTalkListData(21, 15010006, -1)
# action:15000220:"Organize Storage Box"
AddTalkListData(3, 15000220, -1)
# action:15000005:"Leave"
AddTalkListData(99, 15000005, -1)
"""State 4"""
ShowShopMessage(TalkOptionsType.Regular)
if GetTalkListEntryResult() == 1:
"""State 3"""
if GetEventStatus(2030) == FlagState.On:
"""State 18,8"""
StartWarpMenuInit(-1)
assert GetCurrentStateElapsedFrames() > 1
"""State 12"""
if WasWarpMenuDestinationSelected() == true:
break
elif not (CheckSpecificPersonMenuIsOpen(-1, 0) == true and not CheckSpecificPersonGenericDialogIsOpen(0)):
"""State 13"""
pass
else:
"""State 16,20"""
# action:10010713:"Game installation incomplete.\nCannot travel between bonfires."
assert t300001_x3(action1=10010713)
elif GetTalkListEntryResult() == 2:
"""State 6,7"""
OpenMagicEquip(1000, 1000)
assert not (CheckSpecificPersonMenuIsOpen(11, 0) == true and not CheckSpecificPersonGenericDialogIsOpen(0))
elif GetTalkListEntryResult() == 3:
"""State 14,15"""
OpenRepository()
assert not (CheckSpecificPersonMenuIsOpen(3, 0) == true and not CheckSpecificPersonGenericDialogIsOpen(0))
elif GetTalkListEntryResult() == 10:
"""State 70,71"""
OpenSoul()
assert (not CheckSpecificPersonGenericDialogIsOpen(2) and not (CheckSpecificPersonMenuIsOpen(-1,
2) == true and not CheckSpecificPersonGenericDialogIsOpen(2)))
elif GetTalkListEntryResult() == 22:
"""State 97,98"""
OpenEstusAllotMenu()
assert not (CheckSpecificPersonMenuIsOpen(14, 0) == true and not CheckSpecificPersonGenericDialogIsOpen(0))
elif GetTalkListEntryResult() == 17:
"""State 84,85"""
CombineMenuFlagAndEventFlag(6001, 344)
CombineMenuFlagAndEventFlag(6001, 337)
CombineMenuFlagAndEventFlag(6001, 334)
CombineMenuFlagAndEventFlag(300, 332)
CombineMenuFlagAndEventFlag(300, 333)
CombineMenuFlagAndEventFlag(300, 342)
CombineMenuFlagAndEventFlag(301, 335)
CombineMenuFlagAndEventFlag(301, 345)
CombineMenuFlagAndEventFlag(301, 340)
CombineMenuFlagAndEventFlag(302, 336)
CombineMenuFlagAndEventFlag(302, 338)
CombineMenuFlagAndEventFlag(302, 339)
CombineMenuFlagAndEventFlag(303, 341)
CombineMenuFlagAndEventFlag(303, 343)
CombineMenuFlagAndEventFlag(303, 346)
CombineMenuFlagAndEventFlag(6000, 347)
CombineMenuFlagAndEventFlag(6001, 331)
CombineMenuFlagAndEventFlag(6001, 232)
CombineMenuFlagAndEventFlag(6001, 233)
CombineMenuFlagAndEventFlag(6001, 234)
CombineMenuFlagAndEventFlag(6001, 235)
"""State 86"""
OpenEquipmentChangeOfPurposeShop()
assert (not CheckSpecificPersonGenericDialogIsOpen(2) and not (CheckSpecificPersonMenuIsOpen(-1,
2) == true and not CheckSpecificPersonGenericDialogIsOpen(2)))
elif GetTalkListEntryResult() == 18:
"""State 87,88"""
CombineMenuFlagAndEventFlag(6001, 232)
CombineMenuFlagAndEventFlag(6001, 233)
CombineMenuFlagAndEventFlag(6001, 234)
CombineMenuFlagAndEventFlag(6001, 235)
"""State 89"""
OpenEnhanceShop(EnhanceType.Normal)
assert (not CheckSpecificPersonGenericDialogIsOpen(2) and not (CheckSpecificPersonMenuIsOpen(-1,
2) == true and not CheckSpecificPersonGenericDialogIsOpen(2)))
elif GetTalkListEntryResult() == 19:
"""State 90"""
OpenRepairShop()
assert (not CheckSpecificPersonGenericDialogIsOpen(2) and not (CheckSpecificPersonMenuIsOpen(-1,
2) == true and not CheckSpecificPersonGenericDialogIsOpen(2)))
elif GetTalkListEntryResult() == 20:
"""State 91,92"""
OpenRegularShop(36000, 36999)
assert (not CheckSpecificPersonGenericDialogIsOpen(2) and not (CheckSpecificPersonMenuIsOpen(-1,
2) == true and not CheckSpecificPersonGenericDialogIsOpen(2)))
elif GetTalkListEntryResult() == 21:
"""State 93,94"""
OpenSellShop(-1, -1)
assert (not CheckSpecificPersonGenericDialogIsOpen(2) and not (CheckSpecificPersonMenuIsOpen(-1,
2) == true and not CheckSpecificPersonGenericDialogIsOpen(2)))
elif (GetTalkListEntryResult() == 99 or not (CheckSpecificPersonMenuIsOpen(1, 0) == true and not
CheckSpecificPersonGenericDialogIsOpen(0))):
"""State 5,22"""
return 0
"""State 11,19"""
SetEventState(74000013, FlagState.On)
"""State 9"""
Quit()
def t300001_x10():
"""State 0,1"""
assert t300001_x0()
"""State 2"""
return 0