Log in

View Full Version : Self.MoveTo(x,y,z)



Stusse
02-20-2013, 10:48 AM
Yo!

Just thought of something that could be useful.

Self.MoveTo(x,y,z)

Should work similar to the walker's stand just that it is called from lua file. I know it's possible to click an item and so on, however this could be pretty useful. Think of this as when called it "creates a temporary stand" and goes to it.

It could return false if something is blocking, and true if it succeeded to stand on the xyz entered. In the case it works not like a mapclick, it should be able to walk on furniture/parcels/fields etcetera!

Just an idea~
/Stusse

fenol
02-20-2013, 10:51 AM
cool idea

Eion
02-28-2013, 11:58 PM
Yeah this would be useful for some things, is there anything like this already implemented anywhere? It would be nice to make the bot move using the pathfinder calling a command from .lua

soul4soul
03-01-2013, 12:21 AM
I like the idea. I was thinking about reproducing all XB settings in lua scripts for practice. Like you said currently the only way is to click on an item. A function sending the character to a location would be nice to have.

Hendy
03-01-2013, 12:24 AM
RAWR.

Spectrus
03-01-2013, 12:25 AM
Use Self.Step() and Map.IsTileWalkable() to path to the spot you want. It's possible and not needed. :(

Avani
03-01-2013, 12:42 AM
Use Self.Step() and Map.IsTileWalkable() to path to the spot you want. It's possible and not needed. :(

Huh, how would that work? If i want to get a NPC's position and then walk to there (so the ending position changes each round). How would you code this?

Eion
03-01-2013, 12:52 AM
Use Self.Step() and Map.IsTileWalkable() to path to the spot you want. It's possible and not needed. :(

Well in my break furniture script it would be useful since the furniture can be anywhere on the screen and simply clicking to use a weapon to break it works most of the time, but will not work when there is people or even walkable furniture in the way. Not to mention that the function "Map.IsTileWalkable()" returns a square with a character or creature in it as walkable not blockable like it should.

Definitely would be useful.