Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ ....Could use some help with track.

....Could use some help with track.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Spike   (27 posts)  Bio
Date Sat 23 Oct 2004 11:59 PM (UTC)

Amended on Sun 24 Oct 2004 12:03 AM (UTC) by Spike

Message
I'v noticed that if a player uses track on a mob that is used alot...like say 20 'bobs' are in an area. The player would have to do like 'track 3.bob' etc. Is there anyway I can make it so that if a player typed track bob, and it would instantly track the bob closest to him/her? Somtimes theres multiple mobs in an area not connected by exits, and the player will type track err lets keep using bob, and it would go to the bob thats not near them so they have to cycle through bob.2, bob.3. Just want track to well yeah look for the one cloesest.. I'm aware I would have to change find_first_step but I dont know how.
Top

Posted by Spike   (27 posts)  Bio
Date Reply #1 on Sun 24 Oct 2004 07:21 PM (UTC)
Message
Heh no one with any ideas on this one?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 24 Oct 2004 10:18 PM (UTC)
Message
How do you know which is the closest bob?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Spike   (27 posts)  Bio
Date Reply #3 on Mon 25 Oct 2004 12:16 AM (UTC)
Message
Well the way find_first_step works is it measures the rooms from the mob to the player. Somtimes there is alot of bobs in an area, and somtimes the area isnt allways connected meaning somtimes it tries to find a bob that isnt connected to a portion of the area that the player is in, even if theres a bob 4 rooms away.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,550 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.