se7enet purgatorio

Page 1 of 1 1
Topic Options
Rate This Topic
#18402 - 10/04/08 10:10 AM How do I add a custom marker on the flash map?
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
The following script adds that purple dot for quests:

 Code:
// Then do quests.
if ($userrow["story"] != "0" && $userrow["story"] != "9999") {
    
    $lat = $userrow["storylat"];
    $lon = $userrow["storylon"];
    if ($lat >= 0) { $y = ceil(($worldrow["size"] - $lat) * $perpix); } else { $y = 250 + ceil(($lat * -1) * $perpix); }
    if ($lon >= 0) { $x = 250 + ceil($lon * $perpix); } else { $x = ceil(($worldrow["size"] + $lon) * $perpix); }
    
    $text .= "story=1&";
    $text .= "story_x=".$x."&";
    $text .= "story_y=".$y."&";
    $text .= "story_name=Quest&";
    
} else { $text .= "story=0&"; }


But what kind of code do I have to add to make a custom marker? Like a yellow marker with the text "Dungeon"?
Like this:
if world=1 and longitude=0 and latitude=1 { display marker }

Top
#18403 - 10/04/08 12:12 PM Re: How do I add a custom marker on the flash map? [Re: gamefreak888]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
I don't see images on that code, unless $perpix is the variable for the image.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18406 - 10/04/08 12:41 PM Re: How do I add a custom marker on the flash map? [Re: Fayt]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
Hm well but when I delete that code the purple dot is gone.
Top
#18407 - 10/04/08 02:45 PM Re: How do I add a custom marker on the flash map? [Re: gamefreak888]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Yeah because it's linked to the dot. You need to find out where $perpix is defined.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18412 - 10/05/08 08:59 AM Re: How do I add a custom marker on the flash map? [Re: Fayt]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
I found this piece of code in the beginning of map.php:

 Code:
perpix = 500 / ($worldrow["size"] * 2);
$text = "&";


Oh and this stands at the end of the script:

 Code:
echo($text);

Top
#18413 - 10/05/08 09:23 AM Re: How do I add a custom marker on the flash map? [Re: gamefreak888]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Nope thats not a dot
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18426 - 10/05/08 07:14 PM Re: How do I add a custom marker on the flash map? [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
Theres already threads on this. Or at least one, when I looked into it.

The only way to make your own markers is with flash.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#18429 - 10/05/08 08:59 PM Re: How do I add a custom marker on the flash map? [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Which is better, and the php version would be horrible.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
Page 1 of 1 1


Hop to:

se7enet

Barack Obama Logo