![Smile :)](./images/smilies/icon_e_smile.gif)
I'll keep my stuff running and rape the game for all npc info.
I din't envision having a database of npcs. I thought maybe we would incorporate the npcs and other points of interest in the map data.lisa wrote:Basically we are working on code that will make character move from current position to destination without having to create a WP to do it.
So you could literally call the function and tell it to go to a NPC and it will, hence the need for zone/id/coords in the NPC database.
Hmm I hadn't thought of finding nearest merchant.rock5 wrote: would allow you to look fot the nearest merchant or mailbox or housemaid
I think you are making too many assumptions. The closest merchant might be via a teleport and might not be the closest in distance.lisa wrote: You could assume distance in straight line would also end up closest by following the points. then returns the ID of that merchant and then does travel(ID), wouldn't be hard to do.
Code: Select all
if current point number is the number we are looking for then
we've reached our destination
Code: Select all
elseif current point poi.Type == the type we are looking for eg. "merchant" then
we've reached our destination
Code: Select all
travel2(110591,true)
player:target_NPC("Snoop the Stubborn")
ChoiceOptionByName("Varanas")
yrest(1000)
sendMacro('StaticPopup_OnClick(StaticPopup1, 1);')
waitForLoadingScreen()
Code: Select all
Command> travel2(110584,true) player:target_NPC(GetIdName(110584))
Destination found
25: points left to go before destination.
24: points left to go before destination.
23: points left to go before destination.
22: points left to go before destination.
21: points left to go before destination.
20: points left to go before destination.
19: points left to go before destination.
18: points left to go before destination.
17: points left to go before destination.
16: points left to go before destination.
15: points left to go before destination.
14: points left to go before destination.
13: points left to go before destination.
12: points left to go before destination.
11: points left to go before destination.
10: points left to go before destination.
9: points left to go before destination.
8: points left to go before destination.
7: points left to go before destination.
6: points left to go before destination.
5: points left to go before destination.
4: points left to go before destination.
3: points left to go before destination.
2: points left to go before destination.
1: points left to go before destination.
Arrived at destination.
We try to find NPC Logar Bulletin Board:
We successfully target NPC Logar Bulletin Board and try to open the dialog window.
LoL. I never thought to do it that way. I always went to the Class Hall. That's definetely better, especially if you intend to go back to the frontline.BillDoorNZ wrote:Frontline -> Jinners -> Ruins Research -> Varanas -> Heffner -> Housemaid
heh..I didn't actually come up with it myself....my pathing algorithm decided it was the quickest routerock5 wrote:LoL. I never thought to do it that way. I always went to the Class Hall. That's definetely better, especially if you intend to go back to the frontline.BillDoorNZ wrote:Frontline -> Jinners -> Ruins Research -> Varanas -> Heffner -> Housemaid
Sounds interresting. What do you mean by that?BillDoorNZ wrote:my pathing algorithm decided it was the quickest route
Users browsing this forum: No registered users and 0 guests