Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Globals
- c1_atbm = 0
- c2_atbm = 0
- c3_atbm = 0
- c4_atbm = 0
- c5_atbm = 0
- e1_atbm = 0
- e2_atbm = 0
- e3_atbm = 0
- e4_atbm = 0
- e5_atbm = 0
- e6_atbm = 0
- e7_atbm = 0
- e8_atbm = 0
- -- Change this to the amount of groups you want displayed at a time
- groupmax = 5
- local function retrievegroup(e)
- local group = ""
- if e == 0x00 then
- group = "Imp x3"
- elseif e == 0x001 then
- group = "FloatEye x2"
- elseif e == 0x002 then
- group = "Eagle x2, FloatEye x1"
- elseif e == 0x003 then
- group = "Eagle x3"
- elseif e == 0x004 then
- group = "Imp x3, Sword Rat x1"
- elseif e == 0x005 then
- group = "SwordRat x2, Imp x2"
- elseif e == 0x006 then
- group = "Imp x4"
- elseif e == 0x007 then
- group = "Larva x3"
- elseif e == 0x008 then
- group = "SandMoth x2, Larva x2"
- elseif e == 0x009 then
- group = "Sand Man x4"
- elseif e == 0x00A then
- group = "SandPede x1, Sand Man x2"
- elseif e == 0x00B then
- group = "SandWorm x1"
- elseif e == 0x00C then
- group = "Evilshell x3 WaterBug x1"
- elseif e == 0x00D then
- group = "Pike x3"
- elseif e == 0x00E then
- group = "CaveToad x3"
- elseif e == 0x00F then
- group = "Pike x2, Evilshell x2"
- elseif e == 0x010 then
- group = "Zombie x4"
- elseif e == 0x011 then
- group = "Pike x2, Evilshell x2, WaterBug x2"
- elseif e == 0x012 then
- group = "Jelly x4"
- elseif e == 0x013 then
- group = "TinyMage x2, WaterHag x4"
- elseif e == 0x014 then
- group = "CaveToad x4"
- elseif e == 0x015 then
- group = "CaveToad x2, Mad Toad x2"
- elseif e == 0x016 then
- group = "Aligator x1, Pike x2"
- elseif e == 0x017 then
- group = "Aligator x2"
- elseif e == 0x018 then
- group = "Zombie x6"
- elseif e == 0x019 then
- group = "Aligator x1, WaterBug x2"
- elseif e == 0x01A then
- group = "Mad Toad x4"
- elseif e == 0x01B then
- group = "TinyMage x4"
- elseif e == 0x01C then
- group = "Imp x8"
- elseif e == 0x01D then
- group = "SwordRat x2, Imp x2, TinyMage x2"
- elseif e == 0x01E then
- group = "SandWorm x1, Sandpede x1"
- elseif e == 0x01F then
- group = "SandWorm x2"
- elseif e == 0x020 then
- group = "Imp x3, Imp Captain x1"
- elseif e == 0x021 then
- group = "Turtle x1, Imp x2"
- elseif e == 0x022 then
- group = "Cream x4"
- elseif e == 0x023 then
- group = "Basilisk x1, Imp x3"
- elseif e == 0x024 then
- group = "Turtle x2"
- elseif e == 0x025 then
- group = "Weeper x1, Turtle x1, Basilisk x1"
- elseif e == 0x026 then
- group = "Basilisk x1, Turtle x1"
- elseif e == 0x027 then
- group = "Weeper x2"
- elseif e == 0x028 then
- group = "Skelton x4"
- elseif e == 0x029 then
- group = "Spirit x2"
- elseif e == 0x02A then
- group = "Gargoyle x1, Cocktrice x1"
- elseif e == 0x02B then
- group = "Bomb x3"
- elseif e == 0x02C then
- group = "Cocktrice x3"
- elseif e == 0x02D then
- group = "Gargoyle x2"
- elseif e == 0x02E then
- group = "GrayBomb x2, Bomb x2"
- elseif e == 0x02F then
- group = "Spirit x2, Skelton x2"
- elseif e == 0x031 then
- group = "Red Bone x1, Skelton x3"
- elseif e == 0x032 then
- group = "GrayBomb x2, Bomb x4"
- elseif e == 0x033 then
- group = "Spirit x3, Skelton x2, Red Bone x1"
- elseif e == 0x034 then
- group = "Imp Captain x3, Needler x1"
- elseif e == 0x035 then
- group = "Imp Captain x3, Needler x3"
- elseif e == 0x036 then
- group = "Imp Captain x4, Imp x2"
- elseif e == 0x037 then
- group = "SwordRat x3, Needler x3"
- elseif e == 0x038 then
- group = "Raven x1"
- elseif e == 0x03A then
- group = "Needler x2, SwordRat x2"
- elseif e == 0x039 then
- group = "Raven x1 Cockatrice x3"
- elseif e == 0x03C then
- group = "Spirit x3, Soul x1"
- elseif e == 0x03D then
- group = "Soul x2, Red Bone x2"
- elseif e == 0x03E then
- group = "Skelton x3, Red Bone x2"
- elseif e == 0x03F then
- group = "Lilith x1, Red Bone x2"
- elseif e == 0x040 then
- group = "Ghoul x1, Red Bone x2, Skelton x2"
- elseif e == 0x041 then
- group = "Spirit x2, Soul x2, Red Bone x2"
- elseif e == 0x042 then
- group = "Zombie x2, Ghoul x2"
- elseif e == 0x043 then
- group = "Ghoul x2, Soul x2"
- elseif e == 0x044 then
- group = "Revenant x1, Ghoul x3"
- elseif e == 0x045 then
- group = "Zombie x3, Ghoul x2, Revenant x2"
- elseif e == 0x046 then
- group = "Lilith x1"
- elseif e == 0x047 then
- group = "Soul x2, Ghoul x2, Revenant x2"
- elseif e == 0x048 then
- group = "Soul x3, Ghoul x1, Revenant x1"
- elseif e == 0x049 then
- group = "Lilith x2"
- elseif e == 0x04A then
- group = "Piranha x2, FangShel x1, Evilshell x1"
- elseif e == 0x04B then
- group = "Pike x3, Piranha x3"
- elseif e == 0x04C then
- group = "Crocdile x1, Piranha x2"
- elseif e == 0x04D then
- group = "FangShel x3, Aligator x1, Crocdile x1"
- elseif e == 0x04E then
- group = "Piranha x2, ElecFish x2"
- elseif e == 0x04F then
- group = "Crocdile x1, ElecFish x3"
- elseif e == 0x050 then
- group = "AquaWorm x1, Piranha x3"
- elseif e == 0x051 then
- group = "Hydra x2"
- elseif e == 0x052 then
- group = "Crocdile x2"
- elseif e == 0x053 then
- group = "AquaWorm x1, ElecFish x3"
- elseif e == 0x054 then
- group = "AquaWorm x1, Hydra x1, Crocdile x1"
- elseif e == 0x055 then
- group = "Guard x2"
- elseif e == 0x056 then
- group = "Guard x1, Hydra x2"
- elseif e == 0x057 then
- group = "AquaWorm x2"
- elseif e == 0x058 then
- group = "StingRat x3, Treant x2"
- elseif e == 0x059 then
- group = "Panther x1, StingRat x3"
- elseif e == 0x05A then
- group = "Cannibal x1, Treant x2"
- elseif e == 0x05B then
- group = "Python x1, StingRat x2"
- elseif e == 0x05C then
- group = "Ogre x1, Panther x2"
- elseif e == 0x05D then
- group = "Ogre x2"
- elseif e == 0x05E then
- group = "Cave Bat x3"
- elseif e == 0x05F then
- group = "Panther x2"
- elseif e == 0x060 then
- group = "Mage x2"
- elseif e == 0x061 then
- group = "CaveNaga x1, Ogre x1"
- elseif e == 0x062 then
- group = "CaveNaga x1, Python x2"
- elseif e == 0x062 then
- group = "CaveNaga x1, Python x2"
- elseif e == 0x063 then
- group = "Ogre x3"
- elseif e == 0x064 then
- group = "VampGirl x1, Cave Bat x3"
- elseif e == 0x065 then
- group = "Mage x1, Panther x1, Ogre x1"
- elseif e == 0x066 then
- group = "Panther x2, Ogre x2"
- elseif e == 0x067 then
- group = "CaveNaga x2, Python x2"
- elseif e == 0x068 then
- group = "VampGirl x2, Cave Bat x3"
- elseif e == 0x069 then
- group = "Panther x2, Ogre x1, CaveNaga x1"
- elseif e == 0x06A then
- group = "VampGirl x1, Cave Bat x6"
- elseif e == 0x06B then
- group = "Marion x1, (Summon Puppet x1), Puppet x2"
- elseif e == 0x06C then
- group = "Marion x1, (Summon Puppet x1), Puppet x3"
- elseif e == 0x06C then
- group = "Marion x1,(Summon Puppet x1), Puppet x3"
- elseif e == 0x06D then
- group = "Centaur x1, IceBeast x2"
- elseif e == 0x06E then
- group = "Centaur x2, IceBeast x2"
- elseif e == 0x06F then
- group = "Centaur x3"
- elseif e == 0x070 then
- group = "Centaur x1, Gremlin x2"
- elseif e == 0x071 then
- group = "Slime x4"
- elseif e == 0x072 then
- group = "Ice Lizard x1, Slime x3"
- elseif e == 0x073 then
- group = "Jelly x1, Slime x2, Cream x1"
- elseif e == 0x074 then
- group = "Gremlin x2, Ice Lizard x2"
- elseif e == 0x075 then
- group = "Carapace x2, Ice Lizard x2"
- elseif e == 0x076 then
- group = "SwordMan x2"
- elseif e == 0x077 then
- group = "SwordMan x1, Ice Lizard x2"
- elseif e == 0x078 then
- group = "Swordman x2, Ice Lizard x 2"
- elseif e == 0x079 then
- group = "SwordMan x1, IceBeast x2"
- elseif e == 0x07A then
- group = "EpeeGirl x2, SwordMan x2"
- elseif e == 0x07B then
- group = "EpeeGirl x3"
- elseif e == 0x07C then
- group = "Witch x1, EpeeGirl x1, Swordman x1"
- elseif e == 0x07D then
- group = "EpeeGirl x1, Ice Lizard x1, IceBeast x1"
- elseif e == 0x07E then
- group = "Witch x1, EpeeGirl, x1, Centaur x1"
- elseif e == 0x07F then
- group = "Witch x1, IceBeast x2, EpeeGirl x1"
- elseif e == 0x080 then
- group = "Witch x1, SwordMan x2, EpeeGirl x1"
- elseif e == 0x081 then
- group = "Witch x1, EpeeGirl x2"
- elseif e == 0x082 then
- group = "Imp x1"
- elseif e == 0x083 then
- group = "Imp x1"
- elseif e == 0x084 then
- group = "Imp x1"
- elseif e == 0x085 then
- group = "Imp x1"
- elseif e == 0x086 then
- group = "Imp x1"
- elseif e == 0x088 then
- group = "Roc x1, Roc Baby x2"
- elseif e == 0x089 then
- group = "Roc x1, Roc Baby x3"
- elseif e == 0x08A then
- group = "HugeCell x4"
- elseif e == 0x08B then
- group = "HugeCell x3"
- elseif e == 0x08C then
- group = "GiantBat x3"
- elseif e == 0x08D then
- group = "GiantBat x4"
- elseif e == 0x08E then
- group = "GiantBat x3, Cave Bat x3"
- elseif e == 0x08F then
- group = "Ironback x2"
- elseif e == 0x090 then
- group = "Ironback x1, Armadilo x1, BlackLiz x1"
- elseif e == 0x091 then
- group = "Ironback x2, BlackLiz x2"
- elseif e == 0x092 then
- group = "Skull x3"
- elseif e == 0x093 then
- group = "Skull x4"
- elseif e == 0x094 then
- group = "Red Bone x3, Skull x2"
- elseif e == 0x095 then
- group = "Staleman x1"
- elseif e == 0x096 then
- group = "Staleman x1, Skull x2"
- elseif e == 0x097 then
- group = "Staleman x1, Skull x2, Red Bone x2"
- elseif e == 0x098 then
- group = "Mad Ogre x2"
- elseif e == 0x099 then
- group = "Mad Ogre x3"
- elseif e == 0x09A then
- group = "Mad Ogre x4"
- elseif e == 0x09B then
- group = "BlackCat x2"
- elseif e == 0x09C then
- group = "BlackCat x3"
- elseif e == 0x09D then
- group = "Lamia x1, BlackCat x1, Mad Ogre x1"
- elseif e == 0x09E then
- group = "Mad Ogre x1, BlackCat x2"
- elseif e == 0x09F then
- group = "Mad Ogre x2, BlackCat x2"
- elseif e == 0x0A0 then
- group = "Egg(Lamia x1)"
- elseif e == 0x0A1 then
- group = "Lamia x2"
- elseif e == 0x0A2 then
- group = "Lamia x3"
- elseif e == 0x0A3 then
- group = "Lamia x1, Mad Ogre x1"
- elseif e == 0x0A4 then
- group = "BlackCat x2, Lamia x1"
- elseif e == 0x0A5 then
- group = "BlackCat x2, Lamia x2"
- elseif e == 0x0A6 then
- group = "Balloon x3"
- elseif e == 0x0A7 then
- group = "Balloon x4"
- elseif e == 0x0A8 then
- group = "Mad Ogre x1, BlackCat x1, Balloon x2"
- elseif e == 0x0A9 then
- group = "Grudger x1, Mad Ogre x1, Balloon x2"
- elseif e == 0x0AA then
- group = "Grudger x2"
- elseif e == 0x0AB then
- group = "Grudger x3"
- elseif e == 0x0AC then
- group = "Balloon x3, Grudger x1"
- elseif e == 0x0AD then
- group = "Grudger x2, Lamia x1"
- elseif e == 0x0AE then
- group = "BladeMan x3"
- elseif e == 0x0AF then
- group = "BlackCat x1, BladeMan x1, Mad Ogre x1"
- elseif e == 0x0B0 then
- group = "Blademan x1, Balloon x3, BlackCat x1"
- elseif e == 0x0B1 then
- group = "Mad Ogre x1, BladeMan x1, BlackCat x1"
- elseif e == 0x0B2 then
- group = "Egg(Green Dragon x1)"
- elseif e == 0x0B3 then
- group = "Sorcerer x1, (Summon Mad Ogre x1), BladeMan x2"
- elseif e == 0x0B4 then
- group = "Sorcerer x1, (Summon BlackCat x1), BladeMan x2"
- elseif e == 0x0B5 then
- group = "Sorcerer x1, (Summon BladeMan x1), BladeMan x2"
- elseif e == 0x0B6 then
- group = "Sorcerer x1, (Summon Green Dragon x1), BladeMan x2"
- elseif e == 0x0B7 then
- group = "Imp x1"
- elseif e == 0x0B8 then
- group = "Searcher x1, (Summon Machine x1)"
- elseif e == 0x0B9 then
- group = "Searcher x1, (Summon Machine x1), Machine x2"
- elseif e == 0x0BA then
- group = "Machine x2, Beamer x1"
- elseif e == 0x0BB then
- group = "Machine x2, Beamer x2"
- elseif e == 0x0BC then
- group = "Searcher x1, (Summon Horseman x1), Machine x2"
- elseif e == 0x0BD then
- group = "Horseman x1, Machine x2"
- elseif e == 0x0BE then
- group = "MacGiant x1"
- elseif e == 0x0BF then
- group = "MacGiant x1"
- elseif e == 0x0C0 then
- group = "Horseman x1, Beamer x2"
- elseif e == 0x0C1 then
- group = "Horseman x1, Beamer x1, Machine x1"
- elseif e == 0x0C2 then
- group = "Searcher x1, (Summon MacGiant x1)"
- elseif e == 0x0C3 then
- group = "MacGiant x1, Horseman x1"
- elseif e == 0x0C4 then
- group = "Searcher x1, (Summon Horseman x1), Beamer x2"
- elseif e == 0x0C5 then
- group = "Machine x2, Beamer x3"
- elseif e == 0x0C6 then
- group = "Horseman x2"
- elseif e == 0x0C7 then
- group = "D.Machin x1"
- elseif e == 0x0C8 then
- group = "Searcher x1, (Summon D.Machin x1), Beamer x2"
- elseif e == 0x0C9 then
- group = "MacGiant x1, Machine x1, Beamer x1"
- elseif e == 0x0CA then
- group = "MacGiant x1, Horseman x1, Beamer x1"
- elseif e == 0x0CB then
- group = "Imp x1"
- elseif e == 0x0CC then
- group = "Machine x3, Beamer x2"
- elseif e == 0x0CD then
- group = "Beamer x1, Machine x2, Horseman x1"
- elseif e == 0x0CE then
- group = "MacGiant x2"
- elseif e == 0x0CF then
- group = "Imp x1"
- elseif e == 0x0D0 then
- group = "Imp x6"
- elseif e == 0x0D1 then
- group = "SwordRat x6"
- elseif e == 0x0D2 then
- group = "FlameDog x2, BlackLiz x2"
- elseif e == 0x0D3 then
- group = "Horseman x1, Machine x2"
- elseif e == 0x0D4 then
- group = "Horseman x1, Juclyote x2"
- elseif e == 0x0D5 then
- group = "Horseman x2"
- elseif e == 0x0D6 then
- group = "EvilMask"
- elseif e == 0x0D7 then
- group = "Imp x1"
- elseif e == 0x101 then
- group = "Armadillo x2"
- elseif e == 0x102 then
- group = "Dark Imp x3, Armadillo x1, BlackLiz x1"
- elseif e == 0x103 then
- group = "Armadillo x1, Tortise x2"
- elseif e == 0x104 then
- group = "Dark Imp x4"
- elseif e == 0x105 then
- group = "Tortise x1, Dark Imp x2"
- elseif e == 0x106 then
- group = "Tortise x2, Armadillo x1, Black Liz x1"
- elseif e == 0x107 then
- group = "BlackLiz x3"
- elseif e == 0x108 then
- group = "Marion x1, (Summon EvilDoll x1), EvilDoll x2"
- elseif e == 0x109 then
- group = "Marion x1, (Summon EvilDoll x1), EvilDoll x3"
- elseif e == 0x10A then
- group = "FlameDog x2"
- elseif e == 0x10B then
- group = "FlameDog x3"
- elseif e == 0x10C then
- group = "FlameDog x4"
- elseif e == 0x10D then
- group = "FlameMan x1, FlameDog x2"
- elseif e == 0x10E then
- group = "FlameMan x2, FlameDog x2"
- elseif e == 0x10F then
- group = "BlackLiz x2"
- elseif e == 0x110 then
- group = "BlackLiz x3"
- elseif e == 0x111 then
- group = "Egg(BlackLiz x1)"
- elseif e == 0x112 then
- group = "Tortoise x2, BlackLiz x1"
- elseif e == 0x113 then
- group = "Tortoise x2, BlackLiz x2"
- elseif e == 0x114 then
- group = "Tofu x4"
- elseif e == 0x115 then
- group = "Tofu x6"
- elseif e == 0x116 then
- group = "Chimera x1, Tofu x3"
- elseif e == 0x117 then
- group = "Chimera x1"
- elseif e == 0x118 then
- group = "Chimera x2"
- elseif e == 0x119 then
- group = "Chimera x1, FlameMan x1"
- elseif e == 0x11A then
- group = "Chimera x1, FlameMan x2"
- elseif e == 0x11B then
- group = "Chimera x1, FlameDog x2"
- elseif e == 0x11C then
- group = "Stoneman x1, Medusa x1"
- elseif e == 0x11D then
- group = "Medusa x2"
- elseif e == 0x11E then
- group = "Stoneman x2"
- elseif e == 0x11F then
- group = "Alert x1, (Summon Chimera x1)"
- elseif e == 0x120 then
- group = "Alert x1, (Summon Stoneman x1)"
- elseif e == 0x121 then
- group = "Alert x1, (Summon Naga x1)"
- elseif e == 0x122 then
- group = "Alert x1, (Summon FlameDog x1)"
- elseif e == 0x121 then
- group = "Alert x1, (Summon Naga x1)"
- elseif e == 0x128 then
- group = "Egg(Lamia x1), Q. Lamia x1"
- elseif e == 0x129 then
- group = "Egg(Lamia x3), Q. Lamia x1"
- elseif e == 0x12A then
- group = "Q. Lamia x1, Egg(Lamia x1), BlackCat x1"
- elseif e == 0x12B then
- group = "Q. Lamia x1, Egg(Lamia x1), Lamia x2"
- elseif e == 0x12C then
- group = "Ironman x1"
- elseif e == 0x12D then
- group = "Ironman x2"
- elseif e == 0x12E then
- group = "Ironman x1, BladeMan x2"
- elseif e == 0x12F then
- group = "Green Dragon x1"
- elseif e == 0x130 then
- group = "BladeMan x1, BlackCat x1, Q. Lamia x1"
- elseif e == 0x131 then
- group = "Ironman x1, Blackcat x2"
- elseif e == 0x132 then
- group = "Sorcerer x1, (Summon Q. Lamia x1), BlackCat x2"
- elseif e == 0x133 then
- group = "Sorcerer x1, (Summon Ironman x1), BlackCat x2"
- elseif e == 0x134 then
- group = "Sorcerer x1, (Summon Q. Lamia x1), BlackCat x2"
- elseif e == 0x135 then
- group = "Grudger x2, BladeMan x2"
- elseif e == 0x135 then
- group = "Grudger x2, BladeMan x2"
- elseif e == 0x136 then
- group = "Grudger x1, BladeMan x2"
- elseif e == 0x137 then
- group = "Grudger x1, BlackCat x2, BladeMan x1"
- elseif e == 0x138 then
- group = "Centpede x1"
- elseif e == 0x139 then
- group = "TrapRose x1, Centpede x2"
- elseif e == 0x13A then
- group = "TrapRose x2"
- elseif e == 0x13B then
- group = "RocLarva x4"
- elseif e == 0x13C then
- group = "RockMoth x2"
- elseif e == 0x13D then
- group = "RockMoth x2, RocLarva x2"
- elseif e == 0x13E then
- group = "TrapRose x1, RockMoth x2"
- elseif e == 0x13F then
- group = "TrapRose x1, RockMoth x2, RocLarva x2"
- elseif e == 0x140 then
- group = "ToadLady x1, TinyToad x3"
- elseif e == 0x141 then
- group = "ToadLady x1, TinyToad x6"
- elseif e == 0x142 then
- group = "Marlboro x2"
- elseif e == 0x143 then
- group = "Marlboro x3"
- elseif e == 0x144 then
- group = "Marlboro x1, Ghost x2"
- elseif e == 0x145 then
- group = "Ghost x3"
- elseif e == 0x146 then
- group = "Ghost x4"
- elseif e == 0x147 then
- group = "Marlboro x1, Ghost x1, DarkTree x1"
- elseif e == 0x148 then
- group = "Ghost x3, DarkTree x2"
- elseif e == 0x149 then
- group = "DarkTree x2, Marlboro x1, Ghost x1"
- elseif e == 0x14A then
- group = "Centpede x1, Marlboro x2"
- elseif e == 0x14B then
- group = "DarkTree x2, Marlboro x2"
- elseif e == 0x14C then
- group = "Red Eye x2"
- elseif e == 0x14D then
- group = "Red Eye x3"
- elseif e == 0x14E then
- group = "Hooligan x1, Red Eye x1"
- elseif e == 0x14F then
- group = "Hooligan x1"
- elseif e == 0x150 then
- group = "Hooligan x2"
- elseif e == 0x151 then
- group = "Warrior x2, Fiend x2"
- elseif e == 0x152 then
- group = "Warrior x2, Fiend x4"
- elseif e == 0x153 then
- group = "Conjurer x1, (Summon Imp x1)"
- elseif e == 0x154 then
- group = "Conjurer x1, (Summon RockMoth x1)"
- elseif e == 0x155 then
- group = "Conjurer x1, (Summon Arachne x1)"
- elseif e == 0x156 then
- group = "Conjurer x1, (Summon HugeNaga x1)"
- elseif e == 0x157 then
- group = "Conjurer x1, (Summon Clapper x1)"
- elseif e == 0x158 then
- group = "Arachne x1"
- elseif e == 0x159 then
- group = "Arachne x2"
- elseif e == 0x15A then
- group = "Clapper x1"
- elseif e == 0x15B then
- group = "Clapper x2"
- elseif e == 0x160 then
- group = "Were Bat x4"
- elseif e == 0x161 then
- group = "Were Bat x3"
- elseif e == 0x162 then
- group = "VampLady x1, Were Bat x3"
- elseif e == 0x163 then
- group = "VampLady x1, Were Bat x6"
- elseif e == 0x164 then
- group = "VampLady x2, Were Bat x3"
- elseif e == 0x165 then
- group = "Yellow Dragonragon x1"
- elseif e == 0x166 then
- group = "Screamer x2"
- elseif e == 0x167 then
- group = "Mantcore x1, Screamer x1"
- elseif e == 0x168 then
- group = "HugeNaga x2"
- elseif e == 0x169 then
- group = "Screamer x1, HugeNaga x1"
- elseif e == 0x16A then
- group = "HugeNaga x1, Screamer x2"
- elseif e == 0x170 then
- group = "MoonCell x2, Pudding x2"
- elseif e == 0x172 then
- group = "Juclyote x2, MoonCell x2, Grenade x1"
- elseif e == 0x173 then
- group = "Procyote x1, Juclyote x2"
- elseif e == 0x174 then
- group = "Procyote x1, Pudding x2"
- elseif e == 0x175 then
- group = "Juclyote x1, Procyote x2"
- elseif e == 0x176 then
- group = "Red Worm x1, Procyote x1, Juclyote x1"
- elseif e == 0x177 then
- group = "Red Worm x2"
- elseif e == 0x178 then
- group = "H.Ito"
- elseif e == 0x179 then
- group = "K.Higuchi"
- elseif e == 0x17A then
- group = "K.Aoki"
- elseif e == 0x17B then
- group = "A.Matsui"
- elseif e == 0x17C then
- group = "K.Yoshii"
- elseif e == 0x17D then
- group = "H.Nakada"
- elseif e == 0x17E then
- group = "Takahashi"
- elseif e == 0x180 then
- group = "Warlock x1"
- elseif e == 0x181 then
- group = "Warlock x1, Kary x1"
- elseif e == 0x182 then
- group = "Warlock x1, Kary x2"
- elseif e == 0x183 then
- group = "RedGiant x1"
- elseif e == 0x184 then
- group = "Warlock x1, Kary x1, RedGiant x1"
- elseif e == 0x185 then
- group = "RedGiant x2"
- elseif e == 0x186 then
- group = "Warlock x2, RedGiant x1"
- elseif e == 0x187 then
- group = "Dragon Bone x1"
- elseif e == 0x188 then
- group = "Ging-Ryu x1"
- elseif e == 0x189 then
- group = "Dragon Bone x1, Warlock x1"
- elseif e == 0x18A then
- group = "King-Ryu x2"
- elseif e == 0x18B then
- group = "Warlock x3"
- elseif e == 0x18C then
- group = "Blue Dragon x1"
- elseif e == 0x18D then
- group = "FatalEye x1"
- elseif e == 0x18E then
- group = "Blue Dragon x2"
- elseif e == 0x18F then
- group = "Ging-Ryu x1, RedGiant x1"
- elseif e == 0x190 then
- group = "FatalEye x2"
- elseif e == 0x191 then
- group = "D.Fossil x1"
- elseif e == 0x192 then
- group = "King-Ryu x1"
- elseif e == 0x193 then
- group = "King-Ryu x1, Ging-Ryu x1"
- elseif e == 0x194 then
- group = "Tricker x1"
- elseif e == 0x195 then
- group = "Tricker x1"
- elseif e == 0x196 then
- group = "PinkPuff x5"
- elseif e == 0x197 then
- group = "EvilMask x1"
- elseif e == 0x199 then
- group = "Red D. x1"
- elseif e == 0x19A then
- group = "Red D. x2"
- elseif e == 0x19B then
- group = "Red D. x1, Behemoth x1"
- elseif e == 0x19C then
- group = "EvilMask x1"
- elseif e == 0x19D then
- group = "Behemoth x2"
- elseif e == 0x19E then
- group = "EvilMask x2"
- elseif e == 0x19F then
- group = "Red D. x3"
- elseif e == 0x1A1 then
- group = "Breath x1"
- elseif e == 0x1A2 then
- group = "Mind x1"
- elseif e == 0x1A3 then
- group = "Behemoth x1"
- elseif e == 0x1BB then
- group = "Pudding x4"
- elseif e == 0x1BC then
- group = "Pudding x2, Grenade x2"
- elseif e == 0x1BD then
- group = "Balloon x2, Grenade x2"
- elseif e == 0x1BE then
- group = "Slime x1, Tofu x1, Pudding x1"
- elseif e == 0x1BF then
- group = "Red Worm x1, Grenade x3"
- elseif e == 0x1D8 then
- group = "TrapRose x1, GlomWing x2, Crawler x2"
- elseif e == 0x1D9 then
- group = "Medusa x1, Gorgon x1, Stoneman x1"
- elseif e == 0x1DA then
- group = "Talantla x1, BlackCat x2"
- elseif e == 0x1DB then
- group = "Egg(BlackLiz x1)"
- elseif e == 0x1DC then
- group = "Egg(Lamia x1)"
- elseif e == 0x1DD then
- group = "Egg(HugeNaga x1)"
- elseif e == 0x1DE then
- group = "Egg(Green Dragon x1)"
- elseif e == 0x1DF then
- group = "Egg(Yellow Dragon x1)"
- else
- group = "Unknown"
- end
- return group
- end
- local function ecords_y(x)
- local ex = bit.lshift(bit.band(x,0x0F),3) +0x0C - 0x16
- return ex
- end
- local function ecords_x(y)
- local ey = bit.rshift(bit.band(y,0xF0),1) + 8 + 0x10
- return ey
- end
- local function rndbattle()
- local steps = 0
- local encounter = false
- local val1 = 0
- local val2 = 0
- local val3 = 0
- local val4 = 0
- local val5 = 0
- local rollover = false
- local area = memory.readbyte(0x7E1700)
- if area == 0 then
- -- Earth world map
- while encounter == false do
- steps = steps +1
- val1 = bit.band(bit.rshift(memory.readbyte (0x7E1707),2),0xF8)
- val2 = bit.rshift(memory.readbyte(0x7E1706),5) + val1
- val3 = memory.readbyte(0x0EC300 + val2)
- val4 = memory.readbyte(0x14EE00+((memory.readbyte(0x7E0686)+steps)) % 0x100)
- if (memory.readbyte(0x7E0686) + steps) % 0x100 == 0
- then rollover = true
- end
- if rollover == true then
- val5 = (val4 + (memory.readbyte(0x7E17EF)) + 0x11) % 0x100
- else
- val5 = (val4 + memory.readbyte(0x7E17EF)) % 0x100
- end
- if val5 < val3 then
- gui.text(145,3,"(Earth world map)",0x0000FFFF)
- encounter = true
- end
- if steps > 500 then
- encounter = true
- steps = 0
- gui.text(145,3,"(No Encounters)",0x0000FFFF)
- end
- end
- elseif area == 1 then
- -- Underground
- while encounter == false do
- steps = steps +1
- val1 = (memory.readbyte(0x7E0686) + steps) % 0x100
- val2 = memory.readbyte(0x14EE00 + val1)
- if val1 == 0 then
- rollover = true
- end
- if rollover == true then
- val3 = val2 + ((memory.readbyte (0x7E17EF)+0x11) % 0x100)
- else
- val3 = val2 + memory.readbyte (0x7E17EF)
- end
- val3 = val3 % 0x100
- val4 = memory.readbyte(0x0EC340)
- if val3 < val4 then
- gui.text(145,3,"(Underworld world map)",0x0000FFFF)
- encounter = true
- end
- if steps > 500 then
- encounter = true
- gui.text(145,3,"(No Encounters)",0x0000FFFF)
- steps = 0
- end
- end
- elseif area == 2 then
- -- Moon
- while encounter == false do
- steps = steps +1
- val1 = (memory.readbyte(0x7E0686) + steps) % 0x100
- val2 = memory.readbyte(0x14EE00 + val1)
- if val1 == 0 then
- rollover = true
- end
- if rollover == true then
- val3 = val2 + ((memory.readbyte(0x7E17EF) + 0x11)%0x100)
- else
- val3 = val2 + memory.readbyte (0x7E17EF)
- end
- val3 = val3 % 0x100
- val4 = memory.readbyte(0x0EC341)
- if val3 < val4 then
- gui.text(145,3,"(Moon world map)",0x0000FFFF)
- encounter = true
- end
- if steps > 500 then
- encounter = true
- gui.text(145,3,"(No Encounters)",0x0000FFFF)
- steps = 0
- end
- end
- elseif area > 2 then
- -- Dungeon
- while encounter == false do
- steps = steps +1
- val1 = memory.readbyte(0x7E1702)
- if memory.readbyte(0x7E1701) > 0 then
- val1 = val1 + 0x100
- end
- val2 = memory.readbyte(0x0EC342+ val1)
- val3 = memory.readbyte(0x7E0686) + steps
- val3 = val3 % 0x100
- val4 = memory.readbyte(0x14EE00 + val3)
- if val3 == 0 then
- rollover = true
- end
- if rollover == true then
- val5 = val4 + ((memory.readbyte(0x7E17EF) + 0x11) % 0x100)
- else
- val5 = val4 + memory.readbyte(0x7E17EF)
- end
- val5 = val5 % 0x100
- if val5 < val2 then
- gui.text(145,3,"(Dungeon)",0x0000FFFF)
- encounter = true
- end
- if steps > 500 then
- encounter = true
- gui.text(145,3,"(No Encounters)",0x0000FFFF)
- steps = 0
- end
- end
- end
- return steps
- end
- local function enemygroup(num)
- local area = memory.readbyte(0x7E1700)
- local group = nil
- local x = 0
- local x2 = 0
- local val1 = 0
- local val2 = 0
- local val3 = 0
- local rollover = false
- local rollover2 = false
- local i = 0
- if area == 0 then
- -- Earth world map
- for i=0, num do
- val1 = bit.band(bit.rshift(memory.readbyte(0x7E1707),2), 0xF8)
- x = (bit.rshift(memory.readbyte(0x7E1706),5) + val1) % 0x100
- val2 = bit.lshift(memory.readbyte(0x0ec542+x),3)
- x2 = (memory.readbyte(0x7E0687) + i) % 0x100
- if (memory.readbyte(0x7E0687) + i) % 0x100 == 0xFF then
- rollover = true
- end
- if rollover == true and ((memory.readbyte(0x7E0687)+i)%0x100) == 0xFF then
- val3 = memory.readbyte(0x7E17EE) +0x11
- elseif rollover == true and ((memory.readbyte(0x7E0687)+i)%0x100) ~= 0xFF then
- val3 = memory.readbyte(0x14EE00 + x2) + ((memory.readbyte(0x7E17EE) + 0x11) % 0x100)
- elseif rollover == false then
- val3 = memory.readbyte(0x14EE00 + x2) + memory.readbyte(0x7E17EE)
- end
- val3 = val3 % 0x100
- --val3 = (memory.readbyte(0x14ee00+x2) + memory.readbyte(0x7E17EE)) % 0x100
- if val3 > 0xFC then
- val2 = val2 + 7
- elseif val3 > 0xEC then
- val2 = val2 + 6
- elseif val3 > 0xCC then
- val2 = val2 + 5
- elseif val3 > 0xAC then
- val2 = val2 + 4
- elseif val3 > 0x81 then
- val2 = val2 + 3
- elseif val3 > 0x56 then
- val2 = val2 + 2
- elseif val3 > 0x2B then
- val2 = val2 + 1
- end
- val2 = memory.readbyte(0xEC796+val2)
- if memory.readbyte(0x7E1701) > 0 then
- val2 = val2 + 0x100
- end
- group = val2
- end
- elseif area == 1 then
- -- Underground world map
- for i=0, num do
- val1 = bit.band(bit.rshift(memory.readbyte(0x7E1707),3),0xFC)
- x = bit.rshift(memory.readbyte(0x7E1706),5)
- x = (x + val1) % 0x100
- val2 = bit.lshift(memory.readbyte(0x0ec582+x),3)
- x2 = (memory.readbyte(0x7E0687) + i) % 0x100
- if memory.readbyte(0x7E0687) == 0xFF then
- rollover = true
- end
- if rollover == true and ((memory.readbyte(0x7E0687)+i)%0x100) == 0xFF then
- val3 = memory.readbyte(0x7E17EE) +0x11
- elseif rollover == true and ((memory.readbyte(0x7E0687)+i)%0x100) ~= 0xFF then
- val3 = memory.readbyte(0x14EE00 + x2) + ((memory.readbyte(0x7E17EE) + 0x11) % 0x100)
- elseif rollover == false then
- val3 = memory.readbyte(0x14EE00 + x2) + memory.readbyte(0x7E17EE)
- end
- val3 = val3 % 0x100
- if val3 > 0xFC then
- val2 = val2 + 7
- elseif val3 > 0xEC then
- val2 = val2 + 6
- elseif val3 > 0xCC then
- val2 = val2 + 5
- elseif val3 > 0xAC then
- val2 = val2 + 4
- elseif val3 > 0x81 then
- val2 = val2 + 3
- elseif val3 > 0x56 then
- val2 = val2 + 2
- elseif val3 > 0x2B then
- val2 = val2 + 1
- end
- val2 = memory.readbyte(0xEC796+val2)
- if memory.readbyte(0x7E1701) > 0 then
- val2 = val2 + 0x100
- end
- group = val2
- end
- elseif area == 2 then
- --Moon world map
- for i = 0, num do
- if memory.readbyte(0x7E1707) > 0x20 then
- x = 2
- end
- if memory.readbyte(0x7E1706) > 0x20 then
- x = x + 1
- end
- if (memory.readbyte(0x7E0687) + i) %0x100 == 0xFF then
- rollover = true
- end
- val2 = memory.readbyte(0x0EC592 + x)
- val2 = bit.lshift(val2,3)
- x2 = (memory.readbyte(0x7E0687) + i) % 0x100
- if rollover == true and ((memory.readbyte(0x7E0687)+i)%0x100) == 0xFF then
- val3 = memory.readbyte(0x7E17EE) +0x11
- elseif rollover == true and ((memory.readbyte(0x7E0687)+i)%0x100) ~= 0xFF then
- val3 = memory.readbyte(0x14EE00 + x2) + ((memory.readbyte(0x7E17EE) + 0x11) % 0x100)
- elseif rollover == false then
- val3 = memory.readbyte(0x14EE00 + x2)+ memory.readbyte(0x7E17EE)
- end
- val3 = val3 % 0x100
- if val3 > 0xFC then
- val2 = val2 + 7
- elseif val3 > 0xEC then
- val2 = val2 + 6
- elseif val3 > 0xCC then
- val2 = val2 + 5
- elseif val3 > 0xAC then
- val2 = val2 + 4
- elseif val3 > 0x81 then
- val2 = val2 + 3
- elseif val3 > 0x56 then
- val2 = val2 + 2
- elseif val3 > 0x2B then
- val2 = val2 + 1
- end
- val2 = memory.readbyte(0x0EC796+val2)
- if memory.readbyte(0x7E1701) > 0 then
- val2 = val2 + 0x100
- end
- group = val2
- end
- elseif area > 2 then
- for i=0, num do
- --Dungeon
- val1 = memory.readbyte(0x7E1702)
- if memory.readbyte(0x7E1701) > 0 then
- val1 = val1 + 0x100
- end
- val2 = bit.lshift(memory.readbyte(0x0EC596+val1),3)
- val3 = memory.readbyte(0x14EE00 + ((memory.readbyte(0x7E0687)+i)%0x100))
- if memory.readbyte(0x7E0687) == 0xFF then
- rollover = true
- end
- if rollover == true and ((memory.readbyte(0x7E0687)+i)%0x100) == 0xFF then
- val3 = (memory.readbyte(0x7E17EE)+0x11) % 0x100
- elseif rollover == true and ((memory.readbyte(0x7E0687)+i)%0x100) ~= 0xFF then
- val3 = val3 + ((memory.readbyte(0x7E17EE) + 0x11) % 0x100)
- elseif rollover == false then
- val3 = val3 + memory.readbyte(0x7E17EE)
- end
- val3 = val3 % 0x100
- if val3 > 0xFC then
- val2 = val2 + 7
- elseif val3 > 0xEC then
- val2 = val2 + 6
- elseif val3 > 0xCC then
- val2 = val2 + 5
- elseif val3 > 0xAC then
- val2 = val2 + 4
- elseif val3 > 0x81 then
- val2 = val2 + 3
- elseif val3 > 0x56 then
- val2 = val2 + 2
- elseif val3 > 0x2B then
- val2 = val2 + 1
- end
- val4 = memory.readbyte(0x0EC816 + val2)
- if memory.readbyte(0x7E1701) > 0 then
- val4 = val4 + 0x100
- end
- group = val4
- end
- end
- return group
- end
- local function predictgroup()
- gui.text(3,13,"Encounter Groups:",0xABFF93FF)
- for i = 0, groupmax-1 do
- if i == 0 then
- gui.text(3,23,"1: " .. retrievegroup(enemygroup(i)) .. " (0x" .. string.format("%X",enemygroup(i)) .. ")",0xABFF93FF)
- else
- gui.text(3,23+(10 * i),i+1 .. ": " .. retrievegroup(enemygroup(i)) .. " (0x" .. string.format("%X",enemygroup(i)) .. ")",0xFFFFFF7F)
- end
- end
- end
- local function findenemy(e,x)
- local c = 0
- local i = 0
- local result = ": "
- while c ~= x do
- if enemygroup(i) == e then
- c = c +1
- if c ~= x then
- result = result .. i .. ","
- else
- result = result .. i
- end
- end
- i = i + 1
- if i >= 500 and c == 0 then
- result = "(Enemy not present)"
- c = x
- end
- end
- result = retrievegroup(e) .. " (" .. string.format("%X",e) .. ")" .. result
- return result
- end
- local function drawatb_e(x,y,z,c)
- gui.box(x-3,y-4,x+17,y-1,0x00000000,0x000000FF)
- if z == 0 then
- if c == 1 then
- e1_atbm = 0
- elseif c == 2 then
- e2_atbm = 0
- elseif c == 3 then
- e3_atbm = 0
- elseif c == 4 then
- e4_atbm = 0
- elseif c == 5 then
- e5_atbm = 0
- elseif c == 6 then
- e6_atbm = 0
- elseif c == 7 then
- e7_atbm = 0
- elseif c == 8 then
- e8_atbm = 0
- end
- gui.box(x-3,y-4,x+17,y-1,0xFF0000C0,0000000000)
- else
- if c == 1 then
- if e1_atbm == 0 then
- e1_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/e1_atbm)*z),y-1,0xFF0000C0,0000000000)
- --gui.text(x,y, e1_atb .. "/" .. e1_atbm)
- elseif c == 2 then
- if e2_atbm == 0 then
- e2_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/e2_atbm)*z),y-1,0xFF0000C0,0000000000)
- --gui.text(x,y, e2_atb .. "/" .. e2_atbm)
- elseif c == 3 then
- if e3_atbm == 0 then
- e3_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/e3_atbm)*z),y-1,0xFF0000C0,0000000000)
- --gui.text(x,y, e3_atb .. "/" .. e3_atbm)
- elseif c == 4 then
- if e4_atbm == 0 then
- e4_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/e4_atbm)*z),y-1,0xFF0000C0,0000000000)
- --gui.text(x,y, e4_atb .. "/" .. e4_atbm)
- elseif c == 5 then
- if e5_atbm == 0 then
- e5_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/e5_atbm)*z),y-1,0xFF0000C0,0000000000)
- --gui.text(x,y, e5_atb .. "/" .. e5_atbm)
- elseif c == 6 then
- if e6_atbm == 0 then
- e6_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/e6_atbm)*z),y-1,0xFF0000C0,0000000000)
- --gui.text(x,y, e6_atb .. "/" .. e6_atbm)
- elseif c == 7 then
- if e7_atbm == 0 then
- e7_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/e7_atbm)*z),y-1,0xFF0000C0,0000000000)
- --gui.text(x,y, e7_atb .. "/" .. e7_atbm)
- elseif c == 8 then
- if e8_atbm == 0 then
- e8_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/e8_atbm)*z),y-1,0xFF0000C0,0000000000)
- --gui.text(x,y, e8_atb .. "/" .. e8_atbm)
- end
- end
- end
- local function drawatb_c(x,y,z,c)
- gui.box(x-3,y-4,x+17,y-1,0x00000000,0x000000FF)
- if z == 0 then
- if c == 1 then
- c1_atbm = 0
- elseif c == 2 then
- c2_atbm = 0
- elseif c == 3 then
- c3_atbm = 0
- elseif c == 4 then
- c4_atbm = 0
- elseif c == 5 then
- c5_atbm = 0
- end
- gui.box(x-3,y-4,x+17,y-1,0xFFFF00C0,0000000000)
- else
- if c == 1 then
- if c1_atbm == 0 then
- c1_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/c1_atbm)*z),y-1,0xFFFF00C0,0000000000)
- --gui.text(x,y, c1_atb .. "/" .. c1_atbm)
- elseif c == 2 then
- if c2_atbm == 0 then
- c2_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/c2_atbm)*z),y-1,0xFFFF00C0,0000000000)
- --gui.text(x,y, c2_atb .. "/" .. c2_atbm)
- elseif c == 3 then
- if c3_atbm == 0 then
- c3_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/c3_atbm)*z),y-1,0xFFFF00C0,0000000000)
- --gui.text(x,y, c3_atb .. "/" .. c3_atbm)
- elseif c == 4 then
- if c4_atbm == 0 then
- c4_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/c4_atbm)*z),y-1,0xFFFF00C0,0000000000)
- --gui.text(x,y, c4_atb .. "/" .. c4_atbm)
- elseif c == 5 then
- if c5_atbm == 0 then
- c5_atbm = z
- end
- gui.box(x-3,y-4,(x-3)+20-((20/c5_atbm)*z),y-1,0xFFFF00C0,0000000000)
- --gui.text(x,y, c5_atb .. "/" .. c5_atbm)
- end
- end
- end
- while true do
- c1_atb = memory.readbyte(0x7E2A1C)
- c2_atb = memory.readbyte(0x7E2A46)
- c3_atb = memory.readbyte(0x7E2A07)
- c4_atb = memory.readbyte(0x7E2A5B)
- c5_atb = memory.readbyte(0x7E2A31)
- e1_atb = memory.readbyte(0x7E2A70)
- e2_atb = memory.readbyte(0x7E2A85)
- e3_atb = memory.readbyte(0x7E2A9A)
- e4_atb = memory.readbyte(0x7E2AAF)
- e5_atb = memory.readbyte(0x7E2AC4)
- e6_atb = memory.readbyte(0x7E2AD9)
- e7_atb = memory.readbyte(0x7E2AEE)
- e8_atb = memory.readbyte(0x7E2B03)
- c1_x = memory.readbyte(0x7EEFD5)
- c1_y = memory.readbyte(0x7EEFD6)
- c2_x = memory.readbyte(0x7EEFF5)
- c2_y = memory.readbyte(0x7EEFF6)
- c3_x = memory.readbyte(0x7EEFC5)
- c3_y = memory.readbyte(0x7EEFC6)
- c4_x = memory.readbyte(0x7EF005)
- c4_y = memory.readbyte(0x7EF006)
- c5_x = memory.readbyte(0x7EEFE5)
- c5_y = memory.readbyte(0x7EEFE6)
- e1_xy = memory.readbyte(0x7E29A5)
- e2_xy = memory.readbyte(0x7E29A6)
- e3_xy = memory.readbyte(0x7E29A7)
- e4_xy = memory.readbyte(0x7E29A8)
- e5_xy = memory.readbyte(0x7E29A9)
- e6_xy = memory.readbyte(0x7E29AA)
- e7_xy = memory.readbyte(0x7E29AB)
- e8_xy = memory.readbyte(0x7E29AC)
- e1_life = memory.readword(0x7E2287)
- e1_lifem = memory.readword(0x7E2287+2)
- e2_life = memory.readword(0x7E2307)
- e2_lifem = memory.readword(0x7E2307+2)
- e3_life = memory.readword(0x7E2387)
- e3_lifem = memory.readword(0x7E2387+2)
- e4_life = memory.readword(0x7E2407)
- e4_lifem = memory.readword(0x7E2407+2)
- e5_life = memory.readword(0x7E2487)
- e5_lifem = memory.readword(0x7E2487+2)
- e6_life = memory.readword(0x7E2507)
- e6_lifem = memory.readword(0x7E2507+2)
- e7_life = memory.readword(0x7E2587)
- e7_lifem = memory.readword(0x7E2587+2)
- e8_life = memory.readword(0x7E2607)
- e8_lifem = memory.readword(0x7E2607+2)
- battle = memory.readbyte(0x7E0201)
- attack = memory.readbyte(0x7E3581) -- nromal 00, back 08
- if battle ~= 0x85 then
- drawatb_c(c1_x,c1_y,c1_atb,1)
- drawatb_c(c2_x,c2_y,c2_atb,2)
- drawatb_c(c3_x,c3_y,c3_atb,3)
- drawatb_c(c4_x,c4_y,c4_atb,4)
- drawatb_c(c5_x,c5_y,c5_atb,5)
- if e1_life > 0 then
- gui.text(ecords_x(e1_xy),ecords_y(e1_xy),"1 " .. e1_life .. "/" .. e1_lifem )
- drawatb_e(ecords_x(e1_xy),ecords_y(e1_xy),e1_atb,1)
- end
- if e2_life > 0 then
- gui.text(ecords_x(e2_xy),ecords_y(e2_xy),"2 " .. e2_life .. "/" .. e2_lifem)
- drawatb_e(ecords_x(e2_xy),ecords_y(e2_xy),e2_atb,2)
- end
- if e3_life > 0 then
- gui.text(ecords_x(e3_xy),ecords_y(e3_xy),"3 " .. e3_life .. "/" .. e3_lifem)
- drawatb_e(ecords_x(e3_xy),ecords_y(e3_xy),e3_atb,3)
- end
- if e4_life > 0 then
- gui.text(ecords_x(e4_xy),ecords_y(e4_xy),"4 " .. e4_life .. "/" .. e4_lifem)
- drawatb_e(ecords_x(e4_xy),ecords_y(e4_xy),e4_atb,4)
- end
- if e5_life > 0 then
- gui.text(ecords_x(e5_xy),ecords_y(e5_xy),"5 " .. e5_life .. "/" .. e5_lifem)
- drawatb_e(ecords_x(e5_xy),ecords_y(e5_xy),e5_atb,5)
- end
- if e6_life > 0 then
- gui.text(ecords_x(e6_xy),ecords_y(e6_xy),"6 " .. e6_life .. "/" .. e6_lifem)
- drawatb_e(ecords_x(e6_xy),ecords_y(e6_xy),e6_atb,6)
- end
- if e7_life > 0 then
- gui.text(ecords_x(e7_xy),ecords_y(e7_xy),"7 " .. e7_life .. "/" .. e7_lifem)
- drawatb_e(ecords_x(e7_xy),ecords_y(e7_xy),e7_atb,7)
- end
- if e8_life > 0 then
- gui.text(ecords_x(e8_xy),ecords_y(e8_xy),"8 " .. e8_life .. "/" .. e8_lifem)
- drawatb_e(ecords_x(e8_xy),ecords_y(e8_xy),e8_atb,8)
- end
- else
- c1_atbm = 0
- c2_atbm = 0
- c3_atbm = 0
- c4_atbm = 0
- c5_atbm = 0
- e1_atbm = 0
- e2_atbm = 0
- e3_atbm = 0
- e4_atbm = 0
- e5_atbm = 0
- e6_atbm = 0
- e7_atbm = 0
- e8_atbm = 0
- gui.text(3,3,"Steps until random battle: ")
- gui.text(111,3,rndbattle(),0xFFFF00FF)
- gui.text(125,3,"("..string.format("%X",memory.readbyte(0x7E0686)) .. ")")
- if rndbattle() ~= 0 then
- predictgroup()
- end
- -- Uncomment to find a specific enemy group, the way its implemented slows the emulator down tremendously if its a rare spawn or a high amount is desired
- -- format is findenemy(ENEMY VALUE,NEXT NUMBER OF ENCOUNTERS)
- -- I.E. findenemy(0x196,5) will look for the next 5 pink puff encounters
- --gui.text(5,100,findenemy(0x196,2))
- end
- snes9x.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement