• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Task by The_Hide && HouseMapGenerator && Characters

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
@Task by The_Hide

Using this script:
>>1711319

# The bugs:
- Madness codes:
22:41 Vankk [108]: report
22:41 Grizzly Adams: You can report this tasks:
22:41 Vankk [108]: cancel
22:41 Grizzly Adams: You can cancel this tasks:
- And when I say task, "Sorry, but in table there is no lvl on which u are (308) <-- this lvl isn't in task table."

@HouseMapGenerator
I want the houses.php show the house like tibia rl, I got this:

PHP:
<?
header("Content-type: image/png");
function drawBorder(&$img, &$color, $thickness = 1)
{
    $x1 = 0;
    $y1 = 0;
    $x2 = ImageSX($img) - 1;
    $y2 = ImageSY($img) - 1;
    for($i = 0; $i < $thickness; $i++)
    {
        ImageRectangle($img, $x1++, $y1++, $x2--, $y2--, $color_black);
    }
}
        $x = $_GET['x'];
        $y = $_GET['y'];
        $z = $_GET['z'];
        $image = imagecreatefrompng("./maps/".$z.".png");
        list($width, $height) = getimagesize("./maps/".$z.".png");
        $new_width = 200;
        $new_height= 200;
        $color_white = ImageColorAllocate($image, 255, 255, 255);
        $color_black = ImageColorAllocate($image, 0, 0, 0); 
        ImageFilledRectangle($image, $x-30, $y-25, $x-28, $y-23, $color_black);
        ImageArc($image, $x-29, $y-24, 5, 5, 0, 0, $color_white);
        $image_new = imagecreatetruecolor($new_width, $new_height); 
        imagecopyresized($image_new, $image, 0, 0, $x-60, $y-60, $new_width, $new_height,70, 70); 
        drawBorder($image_new, $color_black, 3); 
        imagepng($image_new);
        imagedestroy($image_new);
?>

PHP:
<td><table border=0 cellspacing=1 cellpadding=4 width=100%><tr><td width="20%"><img src="housemapgenerate.php?x='.$pos['x'].'&y='.$pos['y'].'&z='.$pos['z'].'"</td>

But isn't working, why?

@character.php
PHP:
$r = in_array(strtolower($config['server']['houseRentPeriod']), array('yearly','monthly','weekly','daily')); 
            $h = $SQL->query('SELECT '.($r ? 'paid,' : '').'name,town FROM houses WHERE owner='.$p['id'].' AND world_id='.$p['world_id'].' LIMIT 1')->fetch(); 
            if($h) { 
                $b = $config['site'][is_int($rn / 2) ? 'darkborder' : 'lightborder']; $rn++; 
                $main_content .= '<tr bgcolor="'.$b.'"><td>House:</td><td>'.$h['name'].' ('.$towns_list[$p['world_id']][$h['town']].')'.($r ? ' is paid until '.str_replace(' ', '*', date('M d Y', $p['paid'])) : '').'</td></tr>'; 
            }

Getting this: http://4.imgland.net/GWOtSy.png
Problem: The time is really really bugged.

Thanks to all that can help.
 
Last edited:
you are using a movement with the param target < what is not defined
and all what you want is already created, take a look at the forum...
 
Last edited:
Back
Top