Page 1 of 1
Thunderbolt L103 Pet quest codeable?
Posted: Fri Nov 30, 2012 4:31 pm
by Cindy
http://romdata.getbuffed.com/?q=422289
This quest on elven island requires you to drag a mob to the turn in point by feeding it and keeping it close enough. Can this be coded?
Re: Thunderbolt L103 Pet quest codeable?
Posted: Fri Nov 30, 2012 10:02 pm
by rock5
Should be possible. What I would do is, go to the mob. Save it in a variable. Feed it. Then start marking waypoints going back. The waypoints would have to be close enough so you don't get away from the following mob. At each waypoint you wait for your mob to come within a certain range then feed it. Then move to the next waypoint. You could probably make a mini function that waits for the mob then feeds it.
There are 2 issues I see.
1. If the mob you chose isn't there, such as if someone killed it or it walked away. You could try including other mobs in your code or you could wait for the one you chose to respawn.
2. What happens if it fails? As in the mob breaks and runs back. You could try retuning the waypoints until it works perfectly every time. Or if it still fails too often you may have to add some code to try again.