Page 1 of 1
The Treasure Within
Posted: Wed Jan 22, 2014 10:43 pm
by whitewiz
Quest Name: The Treasure Within
Zone: Chrysalia
Level: 71 to accept quest 63 to turn in
Chosen Why: near a housemaid, safe turn in. Collect quest items on primary class.
Quest Details: get Detoxification Potion when accepting the quest. Use on Lesser Poison Dragons. The dragons will drop a Great Turd. Harvest the Great Turd and receive Gold With a Smell. Turn in 10 Gold With a Smell to complete quest.
Complications: if you use Detoxification Potion without a Lesser Poison Dragon targeted you will get a poisoned debuff. Detoxification Potion has a cast time of 3 sec. Harvesting Great Turd has a cast time of 5 sec.
Problems with my code:
code often stalls when champ is casting rune pulse
character tries to kill dragon instead of detoxing
character runs after dragons that are green/detoxed
**Old code deleted**
Re: The Treasure Within
Posted: Wed Jan 22, 2014 11:52 pm
by Bill D Cat
whitewiz wrote:
Problems with my code:
character tries to kill dragon instead of detoxing
character runs after dragons that are green/detoxed
You could add the dragons to your friends list. This will keep the bot from attacking them or chasing them, but you'd still be able to target and use the quest item.
Re: The Treasure Within
Posted: Thu Jan 23, 2014 12:19 am
by whitewiz
Code: Select all
<onLoad>
changeOptionFriendMob("friend", "Lesser Poison Dragon", "Add")
</onLoad>
added this but no improvement. still attacking yellow Dragons and chasing green/friendly dragons. and yes i downloaded the userfunction_profilechange
Re: The Treasure Within
Posted: Thu Jan 23, 2014 1:14 am
by Bill D Cat
You could try getting the mob ID(s) with Rock5's TooltipId add-on (
http://solarstrike.net/phpBB3/viewtopic.php?f=27&t=4977) and using them instead of the mob names. It will also make it so the file can be used in any language without needing to edit the names of the mobs. It sounds like you'll need to add more than one ID if there are green and yellow dragons in various states of debuff.
Re: The Treasure Within
Posted: Thu Jan 23, 2014 7:14 pm
by whitewiz
But i only need to use the script in 1 language
I'm far more interested in getting him to use the potion than the other items. If he can't use the potion there is no point in making the script.
Re: The Treasure Within
Posted: Thu Jan 23, 2014 7:17 pm
by whitewiz
Calling an ingame macro or a hotbar item might be a solution
i'll look for some examples of how to do those
Re: The Treasure Within
Posted: Fri Jan 24, 2014 12:06 am
by Bill D Cat
This is how I would have written the code for the waypoint that you posted. Just to give you an idea what I meant by using the ID's.
Re: The Treasure Within
Posted: Mon Jan 27, 2014 7:47 pm
by whitewiz
I like the distance limits.
i added type=TRAVEL to keep from attacking mobs.
tested and working well
Thank you for your help Bill! ur d best

Re: The Treasure Within
Posted: Mon Jan 27, 2014 8:48 pm
by Bill D Cat
And now to take it one step further. Instead of repeating the same code in each waypoint, just turn it into a function in the <onload> section and call it as needed from the appropriate waypoints.
Re: The Treasure Within
Posted: Sat Aug 13, 2016 7:12 pm
by beanybabe
Bill you wp needed some fixes to work here is my version.
I also included my swap class wp to turn this in if you leveling a lower class from higher one. I think if you set swap off it may work on main class I did not test that.