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:
Well, the title of the thread is actually wrong, this hasn't anything to do with the draggable map. He wanted to outline continents on the minimap.
If you want a draggable map... you're gonna have to take the JavaScripts from Tribalwars and write a page which gives map data in JSON format and make the map request that using AJAX.