View Single Post
  #17  
Unread 08-16-2005, 02:32 AM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default

yea, i think i still have the source code on my computer, i have to look thought i lsot some of my programs i wrote when my hard drive died.

Edit: i found the forumla i worked out for this, here it is.
Code:
         (LOC_0x + LOC_x)
MAP_x  = ----------------  +  Map_0x - (IconW / 2)
               wdpp_x
MAP_x = x coordiante on the map for the icon.
LOC_0x = the first x number in the zonerect
Map_0x = 0 (i can explain if you want but just know that this is always 0)
IconW = Icons width
MAP_1x = the width of the map (its 436)
Map_1y = 506
LOC_1x = the second x number in the zonerect
wdpp_x = (LOC_1x - LOC_0x) / MAP_1x

Repeat this forumula for y as well so you have both the x and y coordiantes.
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface

Last edited by taco-man : 08-16-2005 at 02:48 AM.
Reply With Quote