Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

function onPlayerChanges(other#1, otherid#0)
{
    fn_call#6 = lowercase#5(other.chat);
    lit#7 = "warpto";
    builtin_fn_call#8 = fn_call#6.starts(lit#7);
    // RegionId(0)
    // RegionId(1)
    if (builtin_fn_call#8) 
    {
        lit#9 = "";
        temp.other.chat = lit#9;
    }
    lit#11 = "774";
    builtin_fn_call#12 = other.nick.pos(lit#11);
    lit#13 = 0;
    // RegionId(2)
    // RegionId(3)
    if (builtin_fn_call#12 >= lit#13) 
    {
        // RegionId(3)
        // RegionId(4)
        if (!clientr.isStaff) 
        {
            lit#16 = "Player";
            temp.other.nick = lit#16;
        }
    }
    lit#18 = "warspectator_";
    builtin_fn_call#19 = other.ani.starts(lit#18);
    // RegionId(6)
    if (builtin_fn_call#19) 
    {
        lit#21 = false;
        temp.other.isblocking = lit#21;
        lit#22 = 0;
        return lit#22;
    }
    // RegionId(7)
    else
    {
        // RegionId(7)
        // RegionId(8)
        if (this.oldapnicks) 
        {
            lit#26 = 5;
            lit#27 = true;
            // RegionId(9)
            if (temp.other.attr[lit#26] != lit#27) 
            {
                lit#29 = 100;
                // RegionId(9)
                // RegionId(10)
                if (temp.other.ap < lit#29) 
                {
                    // RegionId(11)
                    if (temp.other) 
                    {
                        lit#31 = "";
                        // RegionId(11)
                        // RegionId(12)
                        if (temp.other.guild != lit#31) 
                        {
                            // RegionId(13)
                            if (temp.other.guild == player.guild) 
                            {
                                lit#32 = 30;
                                temp.other.ap = lit#32;
                                goto RegionId(20);
                            }
                        }
                        lit#33 = "";
                        // RegionId(14)
                        // RegionId(15)
                        if (temp.other.guild != lit#33) 
                        {
                            // RegionId(16)
                            if (temp.other.guild in clientr.alliedguilds) 
                            {
                                lit#35 = 42;
                                temp.other.ap = lit#35;
                                goto RegionId(20);
                            }
                        }
                        // RegionId(17)
                        // RegionId(18)
                        if (temp.other.account in player.client.friends) 
                        {
                            lit#39 = 85;
                            temp.other.ap = lit#39;
                        }
                        // RegionId(19)
                        else
                        {
                            lit#40 = 65;
                            temp.other.ap = lit#40;
                        }
                        goto RegionId(20);
                    }
                }
                lit#43 = "2011_graalcastle.gmap";
                // RegionId(20)
                // RegionId(21)
                if (player.gmap.name == lit#43) 
                {
                    lit#45 = 219;
                    // RegionId(21)
                    // RegionId(22)
                    if (player.x > lit#45) 
                    {
                        lit#46 = 219;
                        // RegionId(23)
                        if (temp.other.x > lit#46) 
                        {
                            lit#49 = 0;
                            temp.other.zoom = lit#49;
                            temp.other.alpha = temp.other.zoom;
                            lit#51 = true;
                            temp.other.isinvisible = lit#51;
                            goto RegionId(27);
                        }
                    }
                }
                lit#52 = 26;
                lit#53 = "bow_walk.gani";
                // RegionId(24)
                // RegionId(25)
                if (temp.other.attr[lit#52] != lit#53) 
                {
                    // RegionId(25)
                    // RegionId(26)
                    if (temp.other.isinvisible) 
                    {
                        lit#54 = 1;
                        temp.other.alpha = lit#54;
                        temp.other.zoom = temp.other.alpha;
                    }
                }
                goto RegionId(27);
            }
        }
        temp.testers = {};
        // RegionId(27)
        // RegionId(28)
        if (player.account in temp.testers) 
        {
            lit#57 = "head0.png";
            temp.other.head = lit#57;
            lit#59 = "body.png";
            temp.other.body = lit#59;
            lit#61 = "no-shield.png";
            temp.other.shield = lit#61;
            lit#63 = "sword1.png";
            temp.other.sword = lit#63;
        }
        // RegionId(29)
        // RegionId(30)
        if (!(temp.other.account in serverr.CurrentStaff_Online)) 
        {
            lit#66 = "no-head.gif";
            lit#67 = "no-head.png";
            // RegionId(30)
            // RegionId(31)
            if (temp.other.head in {lit#67, lit#66}) 
            {
                lit#68 = "head0.png";
                temp.other.head = lit#68;
            }
            lit#69 = "no-body.gif";
            lit#70 = "no-body.png";
            // RegionId(32)
            // RegionId(33)
            if (temp.other.body in {lit#70, lit#69}) 
            {
                lit#71 = "body.png";
                temp.other.body = lit#71;
            }
        }
        lit#73 = false;
        temp.disablegifs = lit#73;
        // RegionId(34)
        // RegionId(35)
        if (temp.disablegifs) 
        {
            // RegionId(35)
            // RegionId(36)
            if (temp.other.account != player.account) 
            {
                lit#74 = "classic_";
                builtin_fn_call#75 = other.head.starts(lit#74);
                // RegionId(36)
                // RegionId(37)
                if (builtin_fn_call#75) 
                {
                    lit#76 = ".gif";
                    builtin_fn_call#77 = other.head.ends(lit#76);
                    // RegionId(37)
                    // RegionId(38)
                    if (builtin_fn_call#77) 
                    {
                        lit#78 = "head0.png";
                        temp.other.head = lit#78;
                    }
                }
                lit#79 = "classic_";
                builtin_fn_call#80 = other.body.starts(lit#79);
                // RegionId(39)
                // RegionId(40)
                if (builtin_fn_call#80) 
                {
                    lit#81 = ".gif";
                    builtin_fn_call#82 = other.body.ends(lit#81);
                    // RegionId(40)
                    // RegionId(41)
                    if (builtin_fn_call#82) 
                    {
                        lit#83 = "body.png";
                        temp.other.body = lit#83;
                    }
                }
                lit#84 = "classic_";
                builtin_fn_call#85 = other.shield.starts(lit#84);
                // RegionId(42)
                // RegionId(43)
                if (builtin_fn_call#85) 
                {
                    lit#86 = ".gif";
                    builtin_fn_call#87 = other.shield.ends(lit#86);
                    // RegionId(43)
                    // RegionId(44)
                    if (builtin_fn_call#87) 
                    {
                        lit#88 = "no-shield.png";
                        temp.other.shield = lit#88;
                    }
                }
                lit#89 = "classic_";
                builtin_fn_call#90 = other.sword.starts(lit#89);
                // RegionId(45)
                // RegionId(46)
                if (builtin_fn_call#90) 
                {
                    lit#91 = ".gif";
                    builtin_fn_call#92 = other.sword.ends(lit#91);
                    // RegionId(46)
                    // RegionId(47)
                    if (builtin_fn_call#92) 
                    {
                        lit#93 = "sword1.png";
                        temp.other.sword = lit#93;
                    }
                }
            }
        }
        lit#95 = null;
        // RegionId(48)
        // RegionId(49)
        if (player.EventParticipants != lit#95) 
        {
            // RegionId(49)
            // RegionId(50)
            if (temp.other in player.EventParticipants) 
            {
                lit#96 = 26;
                lit#97 = "bow_walk.gani";
                // RegionId(50)
                // RegionId(51)
                if (temp.other.attr[lit#96] != lit#97) 
                {
                    lit#98 = 1;
                    player.alpha = lit#98;
                    builtin_fn_call#99 = player.EventParticipants.remove(other#1);
                }
            }
        }
        lit#100 = 13;
        lit#101 = "unhide";
        // RegionId(52)
        // RegionId(53)
        if (temp.other.attr[lit#100] == lit#101) 
        {
        }
        // RegionId(54)
        // RegionId(55)
        if (phi<idx=0, regions=()>) 
        {
            lit#103 = 26;
            lit#104 = "bow_walk.gani";
            // RegionId(55)
            // RegionId(56)
            if (temp.other.attr[lit#103] != lit#104) 
            {
                builtin_fn_call#105 = player.hiddenplayers.remove(other.account);
                lit#106 = 1;
                temp.other.alpha = lit#106;
                lit#107 = 13;
                lit#108 = "";
                temp.other.attr[lit#107] = lit#108;
            }
        }
        // RegionId(57)
        // RegionId(58)
        if (!clientr.isStaff) 
        {
            // RegionId(58)
            // RegionId(59)
            if (!clientr.isStaffDevice) 
            {
                lit#110 = "dustyporviva";
                // RegionId(59)
                // RegionId(60)
                if (temp.other.account == lit#110) 
                {
                    lit#111 = 26;
                    lit#112 = "bow_walk.gani";
                    // RegionId(60)
                    // RegionId(61)
                    if (temp.other.attr[lit#111] == lit#112) 
                    {
                        lit#113 = 27;
                        lit#114 = "";
                        // RegionId(61)
                        // RegionId(62)
                        if (temp.other.attr[lit#113] != lit#114) 
                        {
                            lit#115 = 0;
                            temp.other.alpha = lit#115;
                            lit#116 = -99;
                            temp.other.zoom = lit#116;
                        }
                    }
                }
            }
        }
        lit#118 = 0;
        // RegionId(63)
        // RegionId(64)
        if (temp.other.rotation != lit#118) 
        {
            lit#119 = "dcfurniture_bouncyhorse_player";
            // RegionId(64)
            // RegionId(65)
            if (temp.other.ani.name != lit#119) 
            {
                lit#120 = 0;
                temp.other.rotation = lit#120;
            }
        }
        lit#121 = 100;
        temp.other.isblocking = temp.other.ap != lit#121;
        // RegionId(67)
        if (temp.other.setap) 
        {
            temp.other.ap = temp.other.setap;
            goto RegionId(74);
        }
        // RegionId(68)
        else
        {
            lit#123 = "";
            // RegionId(68)
            // RegionId(69)
            if (temp.other.guild != lit#123) 
            {
                lit#124 = "FreezeTag Red";
                lit#125 = "Team Red";
                // RegionId(70)
                if (temp.other.guild in {lit#125, lit#124}) 
                {
                    lit#126 = 40;
                    temp.other.ap = lit#126;
                    goto RegionId(74);
                }
            }
            lit#127 = "";
            // RegionId(71)
            // RegionId(72)
            if (temp.other.guild != lit#127) 
            {
                lit#128 = "FreezeTag Blue";
                lit#129 = "Team Blue";
                // RegionId(72)
                // RegionId(73)
                if (temp.other.guild in {lit#129, lit#128}) 
                {
                    lit#130 = 75;
                    temp.other.ap = lit#130;
                }
            }
            // RegionId(74)
            // RegionId(75)
            if (player.swimming) 
            {
                lit#132 = false;
                temp.other.isblocking = lit#132;
            }
            lit#133 = 26;
            lit#134 = "bow_walk.gani";
            // RegionId(76)
            // RegionId(77)
            if (temp.other.attr[lit#133] == lit#134) 
            {
                lit#135 = false;
                temp.other.isblocking = lit#135;
            }
            lit#137 = "club_nexus_retro-game2";
            builtin_fn_call#138 = player.level.name.starts(lit#137);
            // RegionId(78)
            // RegionId(79)
            if (builtin_fn_call#138) 
            {
                lit#139 = false;
                temp.other.isblocking = lit#139;
            }
            lit#140 = 11;
            lit#141 = "dc_zeffect_undo.gani";
            // RegionId(80)
            // RegionId(81)
            if (temp.other.attr[lit#140] == lit#141) 
            {
                lit#143 = 0;
                // RegionId(81)
                // RegionId(82)
                if (temp.other.z > lit#143) 
                {
                    lit#144 = 0;
                    temp.other.z = lit#144;
                }
            }
            lit#146 = "airasia_balloon";
            lit#147 = "glitch_balloon_idle";
            lit#148 = "glitch_balloon";
            lit#149 = "dc_zeffect_undo";
            lit#150 = "dc_zeffect";
            lit#151 = "classiciphone_bigball";
            lit#152 = "dc_duststorm";
            lit#153 = "classic_cat_sleeping";
            lit#154 = "ci_balloongroup";
            lit#155 = "itrain_npc_idle";
            lit#156 = "itrain_npc_walk";
            lit#157 = "classic_bug_angry";
            lit#158 = "classic_bug_fadeout";
            lit#159 = "classic_bug_fadein";
            lit#160 = "classic_bug_worm";
            lit#161 = "dc_nick_display";
            lit#162 = "dc_bigblock_idle";
            lit#163 = "hristmas2013_furniture_highstriker-hit9";
            lit#164 = "christmas2013_furniture_highstriker";
            lit#165 = "dc_cliffclimber_boulder";
            lit#166 = "classic_shopmannequin";
            lit#167 = "ieffect-fire";
            lit#168 = "ci_mechbull";
            lit#169 = "dc_churchbell-ring";
            lit#170 = "dc_churchbell-idle";
            lit#171 = "churchbelloff";
            lit#172 = "churchbell";
            lit#173 = "carrypeople";
            lit#174 = "guigames_wait";
            lit#175 = "halloween_color";
            lit#176 = "dchallow_hanging";
            lit#177 = "trampoline_npcjump";
            lit#178 = "tutorial_touch";
            lit#179 = "dc_baddy_nickdisplay";
            lit#180 = "classic_bar_closed";
            lit#181 = "dc_zombie";
            lit#182 = "nexus_space_shuttle";
            temp.blacklist = {lit#182, lit#181, lit#180, lit#179, lit#178, lit#177, lit#176, lit#175, lit#174, lit#173, lit#172, lit#171, lit#170, lit#169, lit#168, lit#167, lit#166, lit#165, lit#164, lit#163, lit#162, lit#161, lit#160, lit#159, lit#158, lit#157, lit#156, lit#155, lit#154, lit#153, lit#152, lit#151, lit#150, lit#149, lit#148, lit#147, lit#146};
            lit#183 = 3;
            // RegionId(83)
            // RegionId(84)
            if (temp.other.zoom >= lit#183) 
            {
                lit#184 = 1;
                temp.other.zoom = lit#184;
            }
            // RegionId(85)
            // RegionId(86)
            if (temp.other.ani.name in temp.blacklist) 
            {
                temp.detected = player.ani.name;
                lit#186 = "iidle";
                player.ani = lit#186;
                lit#187 = "reportani";
                lit#188 = "gui";
                lit#189 = "-Games";
                fn_call#191 = lit.sendToServer2(lit#188, this.name, lit#187, player.account, temp.detected);
            }
            // RegionId(87)
            // RegionId(88)
            if (temp.other.ani.name in temp.blacklist) 
            {
                temp.detected = temp.other.ani.name;
                lit#192 = "iidle";
                temp.other.ani = lit#192;
                lit#193 = "reportani";
                lit#194 = "gui";
                lit#195 = "-Games";
                fn_call#196 = lit.sendToServer2(lit#194, this.name, lit#193, temp.other.account, temp.detected);
            }
            lit#197 = 0;
            return lit#197;
        }
    }
}