Decompiler update:
00000602: class zizizi {
00000602: void init() {
00000602: return;
00000602: }
00000603:
00000603: void main() {
00000603: return;
00000603: }
00000604:
00000604: void script_1() {
00000604: temp5_25 = 0;
00000608: temp5_26 = rand();
0000060B: temp5_26 = temp5_26 % 4;
0000060B: if (temp5_26 == 0) {
00000615: temp5_26 = 1;
00000619: }
00000619: while (temp5_25 < temp5_26) {
0000061F: backgroundOn(temp5_27, 1);
00000623: wait(1);
00000626: backgroundOff(temp5_27, 1);
0000062A: wait(1);
0000062D: backgroundOn(3, 1);
00000631: wait(1);
00000634: backgroundOff(3, 1);
00000638: wait(1);
0000063B: temp5_25++;
00000640: }
00000640: return;
00000640: }
00000640: };
Still a lot to do before the output is usable.
Edit: And now almost valid LUA being generated:
EntityContainer[ "dir" ] = {
dir = nil
init = function( self )
self.dir = entity_manager:get_entity("dir")
BTLMD(32)
MUSIC(0)
setMapName(2)
end,
main = function( self )
repeat
getEntityTriangleId(temp6_0, 1);
until (true)
end,
script_1 = function( self )
end,
}
EntityContainer[ "cl" ] = {
cl = nil
init = function( self )
self.cl = entity_manager:get_entity("cl")
Char(0)
setPlayableChar(0)
end,
main = function( self )
end,
script_1 = function( self )
end,
}
EntityContainer[ "av_b" ] = {
av_b = nil
init = function( self )
self.av_b = entity_manager:get_entity("av_b")
Char(1)
placeObject(0, 0, 3437, 31524, 642)
self.av_b:set_solid(true)
if (2_0 >= 8) {
self.av_b:set_talkable(true)
self.av_b:set_solid(true)
self.av_b:set_visible(false)
}
end,
main = function( self )
if (2_0 < 8) {
self.av_b:set_move_auto_speed(0, 4096)
move(0, 3646, 31219)
2_0 = 8;
playBlockingAnimation(3, 1)
move(0, 4277, 31259)
move(0, 4364, 32052)
move(0, 3381, 32313)
move(0, 3010, 32350)
self.av_b:set_talkable(true)
self.av_b:set_solid(true)
self.av_b:set_visible(false)
}
end,
script_1 = function( self )
end,
}