• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Gesior Tibia items image generator

beliar34

Member
Joined
Feb 28, 2012
Messages
307
Solutions
7
Reaction score
11
Code:
/* READ OTB */
$otb = fopen('./data860/items.otb', 'rb' );
$init = false;
while(false !== ($char = fgetc($otb)))
{
    $byte = HEX_PREFIX.bin2hex($char);
    if($byte == 0xFE)
        $init = true;
    elseif($byte == 0x10 and $init)
    {
        extract(unpack('x2/Ssid', fread($otb, 4)));
        if($item_ots_id == $sid)
        {
            if(HEX_PREFIX.bin2hex(fread($otb, 1)) == 0x11)
            {
                extract(unpack('x2/Sitem_id_in_dat_file', fread($otb, 4)));
                break;
            }
        }
        $init = false;
    }
}
fclose( $otb );
/* CLOSE OTB */

if(!isset($item_id_in_dat_file))
{
    file_put_contents('otb_error.txt', $item_ots_id . ', ', FILE_APPEND);
    echo '<script>window.location = "getsingle860.php?id=' . ($item_ots_id+1) . '";</script>';
    exit;
    //die('item with ID ' . $item_ots_id . ' not found in .otb');
}


gesior/Gesior2012_Additional_Scripts


^ repo


spr unpacked properly but when i try doing "getsingle860.php?id=125" this is going to infinity (like 91919191 numbers) and generate only error in txt file, otb file exist and its fine tested by removing it then i get error thats its missing

what can be wrong ? i got php 7.2 and php7.2-gd

@Gesior.pl
 
Last edited:
What is the full php error you are getting, since that'd really help us figure out which part of the code fucks up.
Code:
Unknown .DAT byte 0x62 (previous byte: 0x01; address 60)

and this is code generating error whole repistory in first post GITHUB

Code:
            $errorByte = ftell($dat);
            die(sprintf( 'Unknown .DAT byte %s (previous byte: %s; address %x)', $byte, $prev, $errorByte));
            break;
 
Back
Top