Nearest Town

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

setsunaseiei
Human
Human
Posts: 38
Joined: 17 May 2011, 07:09
Noob?: No

Nearest Town

#1 Post by setsunaseiei »

Just curious about "smart" autosell, autobuy, and storage.

For example, my Kore is hunting on a map between alberta and payon.
Then, Kore's weight goes 50% or 70% if you want it heavier.
Kore would search for the nearest town.

For this to happen, there would be a .txt file containing the following:
Kafra coordinates - I think this is readily avialable on tables
Tool, Weapon, and Armor Merchant Coordinates
*some NPCs are server dependent
Questions: How do calculate nearest map?

Thanks.
I'm currently learning Perl using Kore. Is Kore manual for Developers still available?
オペンコレ!
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Nearest Town

#2 Post by EternalHarvest »

NPC table is available already, but it need to be improved to include possible actions on NPCs (storage, sell, buy <item list>) with their conversation sequences.

After that, pathfinding algorithm needs to be slightly modified to look for multiple destinations, internally it can be done for example with linking all of them temporary with the fake location which would be used for real pathfinding.
einbroch
Human
Human
Posts: 21
Joined: 14 May 2011, 10:22
Noob?: Yes

Re: Nearest Town

#3 Post by einbroch »

I like this idea will definitely watch for this..