17.05.2013, 15:12
- Download the attached file and move it to twlan/htdocs/lib/.
- 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() } } - 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} - Have fun.
Regards
Molt
