-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathroom3.tsct
158 lines (142 loc) · 3.08 KB
/
room3.tsct
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
/*
* This file was auto-generated using 'silver-reversing-sct' tool
* to better understand the scripts presented, one is encouraged to
* view the catalogs at:
* https://github.com/nadavshemesh/silver-reversing-sct/blob/master/docs/index.md
*
* Any further information and support of this project please visit:
* https://github.com/nadavshemesh/silver-reversing-sct
*/
._DATA
VAR_5 -1
init_position { -239, 0, 2564 }
VAR_11 { 85, 6554113, 45, 1, 46, 1, 47, 1, 40, 1, 41, 1, 42, 1, -1 }
fx_position { -285, 160, 2050 }
VAR_13 { -784, 0, 2742 }
._on_load
call func_10e()
var VAR_1 = var &VAR_13
var VAR_2 = int 184
execute SCRIPT_10
var VAR_3 = int 109
execute SCRIPT_11
var VAR_3 = int 34
execute SCRIPT_11
var VAR_3 = int 34
execute SCRIPT_11
gamevar SMACKER_X = int 0
gamevar SMACKER_Y = int 148
call play_2d_anim("rope", int 1, int 1, int 0)
gamevar SMACKER_X = int 92
gamevar SMACKER_Y = int 312
call play_2d_anim("glowfire", int 1, int 1, int 0)
var VAR_9 = call play_3d_fx("FIRE", var &fx_position, int 0, int 0)
if(gamevar room_state == int 1)
{
execute SCRIPT_4
}
if(gamevar room_state == int 2)
{
execute SCRIPT_6
}
if(gamevar room_state == int 3)
{
execute SCRIPT_8
}
/* play the sound 'frog' */
call play_loaded_sound(int 198, int -1, int 0, int 0)
._infinite_loop
execute SCRIPT_9
if(gamevar room_state == int 1)
{
execute SCRIPT_3
}
if(gamevar room_state == int 2)
{
execute SCRIPT_5
}
if(gamevar room_state == int 3)
{
execute SCRIPT_7
}
._on_exit
call func_3d()
if(gamevar room_state == int 1)
{
gamevar room_state ++
}
if(gamevar room_state == int 2)
{
gamevar room_state ++
}
._SCRIPT_3
if(var VAR_8)
{
var VAR_8 --
exit_script
}
._SCRIPT_4
gamevar global_inventory_p = var &VAR_11
call create_char(var &init_position, "btreasure1", int 225, int 14)
var VAR_8 = int 0
var VAR_7 = int 1
._SCRIPT_5
if(var VAR_8)
{
var VAR_8 --
exit_script
}
._SCRIPT_6
var VAR_8 = int 0
var VAR_7 = int 1
._SCRIPT_7
if(var VAR_8)
{
var VAR_8 --
exit_script
}
._SCRIPT_8
var VAR_8 = int 0
var VAR_7 = int 1
._SCRIPT_9
gamevar script_object = var VAR_9
if(gamevar *psys_p+1)
{
if(call ! randomize_int(int 0, int 5))
{
/* play the sound 'frogs' */
call play_loaded_sound(int 197, int 0, int 0, int 0)
}
}
._SCRIPT_10
var is_BTREASURE_exist = call is_char_handle_in_level(int 1507337)
if(var ! is_BTREASURE_exist)
{
var is_BTREASURE_exist = call create_char(var VAR_1, "btreasure9", var VAR_2, int 14)
call func_aa(var is_BTREASURE_exist)
}
else
{
var VAR_4 = int 1
gamevar script_object = var is_BTREASURE_exist
if(gamevar *object_p+7 == int 4194304)
{
call func_aa(var is_BTREASURE_exist)
}
}
._SCRIPT_11
if(var VAR_3 != int -1)
{
if(var ! VAR_4)
{
if(var VAR_5 != int -1)
{
call add_item_to_char(var is_BTREASURE_exist, int 85 /* moneybag */ , var VAR_5, int 0)
}
else
{
call add_item_to_char(var is_BTREASURE_exist, var VAR_3 /* lightning */ , int 1, int 0)
}
}
}
var VAR_5 = int -1