Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ALL] Draggable map
#9

  1. Download the attached file and move it to twlan/htdocs/lib/.
  2. Open twlan/htdocs/lib/con_map.php with a text editor, delete everything and replace it by this:
    PHP Code:
    <?php
    require_once dirname(__FILE__).'/hack_01.php';
    class 
    con_map extends hack_01
    {
        function 
    con_map()
        {
            
    $this->hack_01();
        }
        
        function 
    draw($village$userid$ally)
        {
            
    parent::draw($village$userid$ally);
            
    // Here you can apply your changes.
            // The image variable is called $this->image and was created using imagecreatefrompng()
        
    }

  3. Open twlan/htdocs/templates/game_map.tpl with a text editor and insert this at the very beginning of the file:
    Code:
    {php}
    if(!file_exists('graphic/continent/'.$this->_tpl_vars['user']['id'].'-'.$this->_tpl_vars['conmap'].'-'.$this->_tpl_vars['contime'].'.png'))
    {
        $this->_tpl_vars['contime'] = reload_map($this->_tpl_vars['user']['id'], $this->_tpl_vars['continent'], $this->_tpl_vars['map']['x'], $this->_tpl_vars['map']['y'], FALSE);
    }
    {/php}
  4. Have fun.

Regards
Molt
Attached Files .php   hack_01.php (Size: 2.34 KB / Downloads: 285)
Reply


Messages In This Thread
[ALL] Draggable map - by The Gamer - 14.05.2013, 22:38
RE: [ALL] Draggable map - by SlimShady95 - 14.05.2013, 22:39
RE: [ALL] Draggable map - by The Gamer - 14.05.2013, 22:40
RE: [ALL] Draggable map - by SlimShady95 - 14.05.2013, 22:45
RE: [ALL] Draggable map - by The Gamer - 14.05.2013, 22:55
RE: [ALL] Draggable map - by Molt - 15.05.2013, 15:50
RE: [ALL] Draggable map - by The Gamer - 15.05.2013, 17:25
RE: [ALL] Draggable map - by parat26 - 17.05.2013, 08:07
RE: [ALL] Draggable map - by Molt - 17.05.2013, 15:12
RE: [ALL] Draggable map - by Molt - 17.05.2013, 19:34
RE: [ALL] Draggable map - by The Gamer - 17.05.2013, 15:13
RE: [ALL] Draggable map - by The Gamer - 17.05.2013, 21:43
RE: [ALL] Draggable map - by Milu2K - 18.05.2013, 08:33
RE: [ALL] Draggable map - by The Gamer - 18.05.2013, 10:31
RE: [ALL] Draggable map - by parat26 - 21.05.2013, 14:37
RE: [ALL] Draggable map - by Molt - 21.05.2013, 16:43



Users browsing this thread: 1 Guest(s)