• 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!

Advanced signature?

Hellrage

Worr
Joined
Oct 30, 2007
Messages
2,477
Reaction score
5
Location
Sweden
As you can see \/ ive put my tibia chars level in signature, is there any possibility to automatically change that number as i raise in level or do i have to change it manually..

What i had in mind was like if someone knows the address where my level is stored and i put it in signature instead of the number...
 
There is lvl signatures for rl tibia i belive :/
 
well what i was thinking was maybe like the number change everytime i grew in level but i dont like to have a pic in my sic it just messes things up :S
 
well what i was thinking was maybe like the number change everytime i grew in level but i dont like to have a pic in my sic it just messes things up :S

create a script that updates it for ya
 
Just made a quick script (even copied the GD code from some other site and quickly modified it):
PHP:
<?PHP

    // Set your character name.
    $character  = $_GET['name'];
    
    
    // Do not edit the variables below.
    $link        = "http://www.tibia.com/community/?subtopic=characters&name=";
    $character    = str_replace ( " " , "%20" , $character );
    $content    = file_get_contents ( $link . $character );
    $check1        = explode ( "Level:" , $content );
    $check2        = explode ( "World:" , $check1[1] );
    $check3        = explode ( "<TD>"   , $check2[0] );
    $check4        = explode ( "</TD>"   , $check3[1] );
        
        
    // Some basic setup
    $imageWidth = 50;
    $imageHeight = 20;
    $textFont = "tahoma.ttf";
    $textSize = 18;
    $textString = $check4[0];
    
    // Set the headers content type
    header("Content-type: image/png");
    
    // Create the image
    $image = imagecreatetruecolor($imageWidth, $imageHeight);
    
    // Create some colors
    $white = imagecolorallocate($image, 0, 0, 0);
    $black = imagecolorallocate($image, 255, 255, 255);
    
    // Fill the background of our image
    imagefilledrectangle($image, 0, 0, $imageWidth, $imageHeight, $black);
    
    // Get box info
    $box = imagettfbbox($textSize, 0, $textFont, $textString);
    
    //Find out the width and height of the text box
    $textW = $box[2] - $box[0];
    $textH = $box[5] - $box[3];
    
    // Calculate the positions
    $positionLeft = ($imageWidth - $textW)/2;
    $positionTop = (($imageHeight - $textH)/2);
    
    // Add some text
    imagettftext($image, $textSize, 0, $positionLeft, $positionTop+2, $white, $textFont, $textString);
    
    // Output the image to the browser
    imagepng($image);
    
    // Destroy the image
    imagedestroy($image);
    
?>
Upload that script somewhere and do a [img ]http://www.yourdomain.com/index.php?name=YourName[ /img].
Also take your tahoma.ttf from your C:/WINDOWS/Fonts folder and put it in the same folder as the php file (remember it is supposed to be tahoma.ttf with small letters)


It's basically only the level showing, no annoying background or so.
 
Thanks alot, any tip on where i can upload it? Maybe tala can host it here on otland so users here can easily use the function
 
i tried to get a domain and i got
Nameserver 1: ns1.awardspace.com
Nameserver 2: ns2.awardspace.com
Nameserver 3: ns3.awardspace.com
Nameserver 4: ns4.awardspace.com

at awardspace.com as you can see...
problem : cant add those ttf files to with the file manager....

i also dont really know how to change all those red fields, or am i suppose to do that at all?
 
Back
Top