RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Don't quite know how to do this...

Quinox

Sorceror
Don't quite know how to do this...

I'm trying to figure out how to make a mobile find a static object within a specified distance. Like, a random tree within 30 tiles. Is this even possible?

Also, how would I make mobiles walk to a point? Or even wander for that matter?
 

kada20

Wanderer
As far as the wandering around goes, check the \scripts\mobiles\wanderer.cs script for an idea on making it wander around
Also youll find it moves around too fast and so replace the
base( TimeSpan.FromSeconds( 0.1 ), TimeSpan.FromSeconds( 0.1)
to about (5.0) and he wont go so fast :)
 
Top