SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | ||
| 3 | // KEY | |
| 4 | // .--------------------.--------------------. | |
| 5 | // | JEL | Jellyfish | BLW | Blowfish | | |
| 6 | - | type = memory.readbyte(0x0014688E+i*0x98) |
| 6 | + | // | PIR | Pirana | SEA | Sea Bream | |
| 7 | // | PUF | Puffer | SBS | Sea Bass | | |
| 8 | // | TRT | Trout | POR | Black Porgy | | |
| 9 | // | RBW | RainbowTrout | OCT | Octopus | | |
| 10 | // | RED | Red Catfish | ANG | Angler | | |
| 11 | // | BAS | Bass | DEV | Devilfish | | |
| 12 | // | MAR | MartianSquid | SPR | Spearfish | | |
| 13 | // | BLK | Black Bass | WHL | Whale | | |
| 14 | // | BAR | Barandy | MCK | Mackerel | | |
| 15 | - | if type == 0 then |
| 15 | + | // | MOW | Man-o'-War | MAN | Manillo | |
| 16 | - | gui.text(278,20+i*8,"JEL") |
| 16 | + | // | FLY | Flying Fish |--------------------' |
| 17 | - | if length >= 30 then |
| 17 | + | // '--------------------' |
| 18 | - | gui.text(292,20+i*8,"*","green") |
| 18 | + | |
| 19 | - | end |
| 19 | + | // The following tables hold the game's 23 fish in the order |
| 20 | - | end |
| 20 | + | // the game indexes them, both abbreviated names and lengths. |
| 21 | ||
| 22 | - | if type == 1 then |
| 22 | + | local name = {"JEL", "PIR", "PUF", "TRT", "RBW", "RED", "BAS",
|
| 23 | - | gui.text(278,20+i*8,"PIR") |
| 23 | + | "MAR", "BLK", "BAR", "MOW", "FLY", "BLW", "SEA", |
| 24 | - | if length >= 40 then |
| 24 | + | "SBS", "POR", "OCT", "ANG", "DEV", "SPR", "WHL", |
| 25 | - | gui.text(292,20+i*8,"*","green") |
| 25 | + | "MCK", "MAN"} |
| 26 | - | end |
| 26 | + | local max = {30, 40, 50, 70, 70, 80, 40, 80, 90, 200, 30, 20,
|
| 27 | - | end |
| 27 | + | 20, 40, 60, 60, 70, 100, 120, 160, 240, 70, 200} |
| 28 | ||
| 29 | - | if type == 2 then |
| 29 | + | |
| 30 | - | gui.text(278,20+i*8,"PUF") |
| 30 | + | |
| 31 | - | if length >= 50 then |
| 31 | + | |
| 32 | - | gui.text(292,20+i*8,"*","green") |
| 32 | + | type = memory.readbyte(0x0014688E+i*0x98) + 1 |
| 33 | - | end |
| 33 | + | |
| 34 | - | end |
| 34 | + | |
| 35 | ypos = memory.readwordsigned(0x001468B8+i*0x98) | |
| 36 | - | if type == 3 then |
| 36 | + | |
| 37 | - | gui.text(278,20+i*8,"TRT") |
| 37 | + | |
| 38 | - | if length >= 70 then |
| 38 | + | |
| 39 | - | gui.text(292,20+i*8,"*","green") |
| 39 | + | |
| 40 | - | end |
| 40 | + | gui.text(278,20+i*8,""..name[type]) |
| 41 | - | end |
| 41 | + | if length >= max[type] then |
| 42 | gui.text(292,20+i*8,"*","green") | |
| 43 | - | if type == 4 then |
| 43 | + | end |
| 44 | - | gui.text(278,20+i*8,"RBW") |
| 44 | + | |
| 45 | - | if length >= 70 then |
| 45 | + | |
| 46 | - | gui.text(292,20+i*8,"*","green") |
| 46 | + | |
| 47 | - | end |
| 47 | + | |
| 48 | - | end |
| 48 | + | |
| 49 | ||
| 50 | - | if type == 5 then |
| 50 | + | |
| 51 | - | gui.text(278,20+i*8,"RED") |
| 51 | + |