SkulkrinBait
Morkin Admin
Haxx0rs == Suxx0rs! v4
Posts: 6,680
|
Post by SkulkrinBait on Sept 2, 2005 19:52:59 GMT
Someone asked for this, I think it was Inyati but I can't find the post. www.speedworx.org/ik/distance.phpIt needs some work to make it more useful, but if people will use it I'll try to make time. I'd like to incorporate it with the spying database ideally.
|
|
SkulkrinBait
Morkin Admin
Haxx0rs == Suxx0rs! v4
Posts: 6,680
|
Post by SkulkrinBait on Sept 2, 2005 22:14:20 GMT
I'm trying to add the extra bit of code to work out distances from exact isles to isles, rather than just ocean sectors etc. It kind of works, the bit which translates the island coordinates from 1-25 to an x and y coord is OK but there is a problem. If the island locations make the distance smaller than if they were both say islands xx:yy:11 and xx:yy:11 it doesn't work, I think it is adding the distance on regardless of whether or not it should be taking it off it. Any idea how I would get round this? Here's the code: I suppose you need to know if the journey is north or south/east or west and then see if the island locations are going to make it shorter or longer but it's late and I've got a headache! Anyone got any ideas?
|
|