Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

function public.onEatFortuneCookie(temp.fromweapon)
{
    lit#3 = "Life is like a fort flag. Take control and you can go from 0 to 250 in no time!";
    lit#4 = "Every day is a new beginning. Take 5 minutes and claim your daily reward!";
    lit#5 = "Marriage is a sacred union... of two warp rings.";
    lit#6 = "EVERY man\'s trash is another man\'s treasure... get to the Auction House!";
    lit#7 = "Home is where the heart is. My code shop is there too, don\x19t forget to leave a like!";
    lit#8 = "Consistency is key. \nEspecially with the daily rewards.";
    lit#9 = "A bounty a day keeps the baddies away.";
    lit#10 = "It is unwise to dive without goggles when... #bfacing murky waters.";
    lit#11 = "Once you become fearless, #blife becomes limitless. #bExcept for bombs, you are limited to 99 of those.";
    lit#12 = "When life is looking dark, turn up your brightness.";
    lit#13 = "You have to dive deep to find forgotten treasures.";
    lit#14 = "Go back to your roots. #bRevisit Balamb.";
    lit#15 = "A master archer only needs 1 arrow, but carries 200.";
    lit#16 = "Sometimes winning an auction can hurt more than losing one.";
    lit#17 = "The bush is mightier than #bthe sword.";
    lit#18 = "Winning a spar rewards pride. #bLosing a spar rewards skill.";
    lit#19 = "A small flame of creativity can lead to great treasures.";
    lit#20 = "Marriage can bring friends together. Literally.";
    lit#21 = "No matter the horse, a warp ring always wins the race.";
    lit#22 = "It\'s time to get things back on track. Buy a draisine.";
    lit#23 = "A well placed banana peel can cause more damage... #bthan any bomb.";
    lit#24 = "Not even the greatest hunter can catch a mantis in winter.";
    lit#25 = "It\'s time for a change of heart. Visit the state shop.";
    lit#26 = "Not every door is open today. The key for some, is time.";
    lit#27 = "Behind a minor rat could soon be a major friend.";
    lit#28 = "Large guilds are nothing but a few friends and... #ba lot of ambition.";
    lit#29 = "Don\'t be crabby. #bTake a chance.";
    lit#30 = "When an arrow is shot in your direction, face it head on.";
    lit#31 = "It is unwise to rush #bthrough life... #bwithout a horse #bshoe upgrade.";
    lit#32 = "The Burger Refuge is a source of food, but also friendship.";
    lit#33 = "When your path gets dark, buy a lantern.";
    lit#34 = "One graalian\'s trash is Elster\'s treasure.";
    lit#35 = "Your next visit with the Royal Steward will be bountiful.";
    lit#36 = "When life gives you bombs, make gralats.";
    lit#37 = "One does not climb vines swiftly. Patience is the key.";
    lit#38 = "Be cautious, something bad is on its way. It\'s better to... #bbe the shield than the sword.";
    lit#39 = "Don\'t regret anything and never look back. #bWear Opposite Boots.";
    lit#40 = "The witch at Swamp Town will request some sort of bug.";
    lit#41 = "When life punches you in the face, bounce back like... #ba golden slime.";
    lit#42 = "I have no fortune for you, but at least I\'m better... #bthan an admin cookie, right? ...right?";
    lit#43 = "He who bounces on a #bpogo all day must... #bhave disabled sounds.";
    lit#44 = "If you\'re reading this in a PK zone, the future is bleak.";
    temp.fortune = {lit#44, lit#43, lit#42, lit#41, lit#40, lit#39, lit#38, lit#37, lit#36, lit#35, lit#34, lit#33, lit#32, lit#31, lit#30, lit#29, lit#28, lit#27, lit#26, lit#25, lit#24, lit#23, lit#22, lit#21, lit#20, lit#19, lit#18, lit#17, lit#16, lit#15, lit#14, lit#13, lit#12, lit#11, lit#10, lit#9, lit#8, lit#7, lit#6, lit#5, lit#4, lit#3};
    lit#45 = "icon_fortunecookie0-paper.png";
    lit#46 = "classic_showitem3b";
    fn_call#48 = setani#47(lit#46, lit#45);
    lit#49 = 0.5;
    fn_call#51 = freezeplayer#50(lit#49);
    fn_call#53 = randomstring#52(temp.fortune);
    temp.fortune = fn_call#53;
    lit#54 = "graal2002letters_back-medium.png";
    lit#55 = "-GUI/Chat";
    fn_call#57 = lit.changeSignBackground(lit#54);
    lit#58 = 1;
    lit#59 = "<center><darkred>";
    lit#60 = "-GUI/Chat";
    fn_call#62 = lit.say3(lit#59 @ temp.fortune, lit#58);
    lit#66 = "classic_showitem3b";
    // RegionId(0)
    // RegionId(1)
    if (player.ani.name == lit#66) 
    {
        player.ani = client.idleani;
    }
    // RegionId(2)
    // RegionId(3)
    if (temp.fromweapon) 
    {
        lit#72 = 0;
        // RegionId(3)
        // RegionId(4)
        if (clientr.item.fortunecookie <= lit#72) 
        {
            lit#73 = "You are all out of Fortune Cookies!";
            builtin_fn_call#74 = _(lit#73);
            lit#75 = "-Games";
            fn_call#77 = lit.showMessageBox(builtin_fn_call#74);
        }
    }
    lit#78 = 0;
    return lit#78;
}