View Single Post
  #22  
Unread 02-10-2005, 09:34 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

Quote:
Originally Posted by Eloa
Hmm this is gonna get tough. What I mean is pulling the info out of XML. Or actually, automating the whole thing period. I'm at that point where you know exactly WHAT YOU WANT to say, just not how to say it exactly. Ill give it my best shot.


I tried, it wasnt working. Taco, IM me when you can, I'm on from like 4pm MST - 10pm, and just whenever overnight, usually between 2 and 6 am.


On a good note, I'm working on the webpage version of the ingame maps with locations, I just have to find out the php functions needed to do the string manipulation I need to do, such as take a 3 coordinate loc (that is in the form of 123,-142,-382; no spaces, just - or no -, commas, and integers) and break it down so I have an x and a y, how to return whether an interger is positive or negative, and how to reverse the negative or positive integers. If anyone knows, pass it on to me please.

I've got it working so long as I keep all of my integers positive.
to split up a string:
Code:
list($LOC_x, $LOC_z, $LOC_y) = split(",", $PathfindLocation , 3);
that will split $pathfindlocation into the 3 different strings, $LOC_x, $LOC_z, $LOC_y.

Oh and for the positive negative thing, just write a small function that returns true if its >= 0 or flase if its less than 0
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface

Last edited by taco-man : 02-10-2005 at 09:38 AM.