Author Topic: Trying to use pathfind  (Read 3086 times)

0 Members and 1 Guest are viewing this topic.

Offline KetchupTopic starter

  • Full Member
  • ***
  • Posts: 138
  • Activity:
    0%
  • Reputation Power: 3
  • Ketchup has no influence.
  • Respect: +18
  • Referrals: 0
    • View Profile
Trying to use pathfind
« on: July 25, 2017, 12:12:13 PM »
0
I currently have a sub for movement along the lines of this

sub move
move 6232 422
move 6220 422
move 6220 418
move 6180 418
return

I'm trying to turn it into a pathfind sub to make it more efficient but I'm having issues where if I change the "move" to event pathfind it seems to want to spam pathfinding and unlike the move sub it seems to work terribly.

this is an example of what I changed it to

sub move
event pathfind 6232 422
event pathfind 6220 422
event pathfind 6220 418
event pathfind 6180 418
return

what am I doing wrong to make it spam so much?

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Trying to use pathfind
« Reply #1 on: July 25, 2017, 01:42:38 PM »
0
no need to create a new forum for the same issue, it hard to help and follow. 

TM can you merge this plx
http://www.scriptuo.com/index.php?topic=14462.msg117655#msg117655


Offline BobOzarius

  • Full Member
  • ***
  • Posts: 103
  • Activity:
    0%
  • Reputation Power: 2
  • BobOzarius has no influence.
  • Respect: +26
  • Referrals: 0
    • View Profile
Re: Trying to use pathfind
« Reply #2 on: August 03, 2017, 10:37:03 PM »
0
"move" executes the move command, and tries to get to your location before it continues. event pathfind executes immediately with no wait between them.

Offline Biza

  • Jr. Member
  • **
  • Posts: 71
  • Activity:
    0%
  • Reputation Power: 1
  • Biza has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: Trying to use pathfind
« Reply #3 on: August 03, 2017, 11:04:48 PM »
0
Not sure if you don't know this or not but there is an easyuo wiki that lists each command and what it does.

http://wiki.easyuo.com/index.php?title=Move

http://wiki.easyuo.com/index.php?title=Event_PathFind

Bob was sorta right, it does try to get to your location but unspecified like in the case of the code you posted, it will timeout after 3 seconds and get you within a few tiles. Path finding is a tad more complicated than move but obviously the results are: You wont get stuck on a twig.
Quote from: TrailMyx
These are the things we look for in new users and perspective Elite members:

Quoting Elites/GMods/Admins in your siggys.

Offline BobOzarius

  • Full Member
  • ***
  • Posts: 103
  • Activity:
    0%
  • Reputation Power: 2
  • BobOzarius has no influence.
  • Respect: +26
  • Referrals: 0
    • View Profile
Re: Trying to use pathfind
« Reply #4 on: August 04, 2017, 02:06:05 AM »
0
"Sorta" right?  ;)

Tags: