What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Questing - Using an itme in inventory on a particular NPC

ThebrainG

New Member
Joined
Mar 24, 2010
Messages
22
Reaction score
0
I looked in the Wiki and it showed me how to just "use an item" or use an item in a specific location but how do I use it on a specific target, such as the Flameseer's Staff in Hyjal on Blazebound Elementals? Itired the following code below but it did not work, does anyone know if this can be done?

<UseItem ItemId="53107" QuestName="Flamebreaker" QuestId="25323" MobId="38896"/>
 
Here's the link - Honorbuddy Profile Tag: UseItem - Buddy Wiki

So going by that page, I believe it should look like this...

Code:
   <UseItem ItemId="53107" QuestName="Flamebreaker" QuestId="25323"
                          TargetID="38896" TargetType="Npc"
                          X="Fill this in" Y="Fill this in" Z="Fill this in" />
You'll have to fill in the location obviously. If the mobs spawn in different locations (sounds like they do from reading WoWHead) you'll have to use a custom behavior. Which I can't help with.

The "...on a specific target" form of <UseItem> currently requires the X-Y-Z to be specified. Thus, this form of UseItem is not a solution for quests that require applying the item to NPCs at variant locations—such as mob's corpses. Examples of quests that need this functionality include: Returning the Favor, Ruthless Cunning, and Stopping the Spread. For quests such as these, you must use a <CustomBehavior> to accomplish the objective.
 
Last edited:
TheBrainG said:
I looked in the Wiki and it showed me how to just "use an item" or use an item in a specific location but how do I use it on a specific target, such as the Flameseer's Staff in Hyjal on Blazebound Elementals?

For that, you need the UseItemOn custom behavior...
[wiki]Honorbuddy Custom Behavior: UseItemOn[/wiki]

Thanks for pointing out the Wiki shortcoming. The "Things to know" on the <UseItem> page has been updated to point to UseItemOn.

cheers,
chinajade
 
Last edited:
Hmm I am also attempting the same exact quest. This is what I have and it wont work

<CustomBehavior File="UseItemOn" QuestId="25323" ObjectType="Npc" MobId="38896" NumOfTimes="4" WaitTime="1500" CollectionDistance="10" X="-1972.388" Y="6277.719" Z="56.86252" />

Gives me compile error: Unable to compile CustomBehavior for tag: <CustomBehavior File="UseItemOn" QuestId="25323" MobId="38896" NumOfTimes="1" CollectionDistance="10" ObjectType="Npc" X="5243.369" Y="-2836.442" Z="1539.805" />
Honorbuddy stopped


 
Wow what an evil little quest... Yes ive been hard at work a this basicly since yesterday with no advancement, kind of driving me a bit crazy actually lol
What I have...

Info: this quest Flamebreaker - Quest - World of Warcraft and I am trying to get it to target A Npc (Blazebound Elemental 38896) and use item on it ( Flameseer's Staff 53107 )
So far ive tried.....
<UseItem ItemId="53107" QuestId="25323" TargetId="38896" TargetType="Npc" X="5237.96" Y="-2799.46" Z="1534.045" /> He just ignored attempting to use the item and just initiates combat and kills it :P This exact same format worked for the quest Inciting the Elements where you have to target friendly npcs and they spawn another npc for you to fight.
///
<If Condition="(HasQuest(25323)) &amp;&amp; (HasItem(53107))">
<CustomBehavior File="UseItemOn" QuestId="25323" ItemId="53107" MobId="38896" NumOfTimes="30" ObjectType="Npc" X="5237.959" Y="-2799.46" Z="1534.044" />
</If>
^^^^ Gives Compile error

<CustomBehavior File="UseItemOn" QuestId="25323" ItemId="53107" MobId="38896" NumOfTimes="30" ObjectType="Npc" X="5237.959" Y="-2799.46" Z="1534.044" />
^^^^ Gives Compile error

Also used the "CombatUseItem" ^^^^Gives Compile error

Would like to attempt a runmacro.cs using something like this
<CustomBehavior File="RunMacro"
Macro="/target Blazebound Elemental\n/use Flameseer's staff"
NumOfTimes="1"
WaitTime="1000" />
And I did follow the wiki to get it html encoded and ^ looks like this :

&lt;CustomBehavior File=&quot;RunMacro&quot;
Macro=&quot;/target Blazebound Elemental\n/use Flameseer's staff&quot;
NumOfTimes=&quot;1&quot;
WaitTime=&quot;1000&quot; /&gt;
This Gives no error but does nothing in HB but stop the bot (a good sign I guess :P )

Atm too I also tried to even just use the runmacro to even /target Blazebound Elemental.. Wont even do that.
<CustomBehavior File="RunMacro"
Macro="/target Blazebound Elemental"
NumOfTimes="1"
WaitTime="1000" />


Any Suggestions? Is something wrong? I really think the runmacro thing could work, in game if you make a simple macro of /target BlazeBound Elemental /use Flameseer's Staff It will work just fine.
Did I do the runmacro thing right?

"Posted on forums per request"
Ya I cant think of anything else to do. The useitemon is like exactly what this quest needs down to a T... but it just wont work
 
try this:

make sure you have useitemon in your .../hb XXXX/quest behaviors folder =P

If it doesn't work, then I don't know

do note that there are 2 different staffs!

http://www.wowhead.com/search?q=flameseer's+staff

Baron Geddon uses 54463, Blazebound uses 53107

http://www.wowhead.com/quest=25323/flamebreaker <--- it uses the staff on on the Blazebound's which release the little spirits
Code:
			<If Condition="HasQuest(25323)" >
				<CustomBehavior File="UseItemOn" QuestId="25323" ObjectType="Npc" MobId="38896" ItemId="53107" NumOfTimes="7" WaitTime="6000" CollectionDistance="2000" X Y Z />
			</If>

And for Baron Geddon: http://www.wowhead.com/quest=25464
Code:
			<If Condition="HasQuest(25464)" >
				<CustomBehavior File="UseItemOn" QuestId="25464" ObjectType="Npc" MobId="40147" ItemId="54463" NumOfTimes="7" WaitTime="6000" CollectionDistance="2000" X Y Z />
			</If>

Note:

This doesn't stop the bot from trying to kill the blazebound. It may keep targetting it while getting owned by the little guys
 
Last edited:
Hmm I am also attempting the same exact quest. This is what I have and it wont work

<CustomBehavior File="UseItemOn" QuestId="25323" ObjectType="Npc" MobId="38896" NumOfTimes="4" WaitTime="1500" CollectionDistance="10" X="-1972.388" Y="6277.719" Z="56.86252" />

Gives me compile error: Unable to compile CustomBehavior for tag: <CustomBehavior File="UseItemOn" QuestId="25323" MobId="38896" NumOfTimes="1" CollectionDistance="10" ObjectType="Npc" X="5243.369" Y="-2836.442" Z="1539.805" />
Honorbuddy stopped




I've already asked that Zugga check that the <HB_install_dir>/Quest Behaviors contains the UseItemOn.cs file, and he confirmed it does. He is also using HB-2.0.0.3804, and re-installed it to make me happy. :)

Alas, none of this solved his problem, and I'm out of ideas at the moment. If someone else sees something, please chime in on this.

cheers,
chinajade
 
Zugga said:
PHP:
&lt;CustomBehavior File=&quot;RunMacro&quot;
Macro=&quot;/target Blazebound Elemental\n/use Flameseer's staff&quot;
NumOfTimes=&quot;1&quot;
WaitTime=&quot;1000&quot; /&gt; This Gives no error but does nothing in HB but stop the bot (a good sign I guess :P )

For future reference, you want to XML-encode each attribute's value, not the whole call. So, it should look like this when done:
Code:
 <CustomBehavior File="RunMacro"
                Macro="/target Blazebound Elemental\n/use Flameseer's staff"
                NumOfTimes="1"
                WaitTime="1000" />

The only thing that required encoding in this example was the single apostrophe in the word "Flameseer's".

cheers,
chinajade
 
Hmm I am also attempting the same exact quest. This is what I have and it wont work

<CustomBehavior File="UseItemOn" QuestId="25323" ObjectType="Npc" MobId="38896" NumOfTimes="4" WaitTime="1500" CollectionDistance="10" X="-1972.388" Y="6277.719" Z="56.86252" />

Gives me compile error: Unable to compile CustomBehavior for tag: <CustomBehavior File="UseItemOn" QuestId="25323" MobId="38896" NumOfTimes="1" CollectionDistance="10" ObjectType="Npc" X="5243.369" Y="-2836.442" Z="1539.805" />
Honorbuddy stopped



Got it, I think. I don't know why it was so hard to see the first time. Your call to UseItemOn is missing a required ItemId.

The error handling for these custom behaviors leaves a *lot* to be desired.

cheers,
chinajade
 
Yes china, in the original post it is missing the item id good call. But also do see the other 5 (?) or so ways I tried after it they all include the correct" (per wiki) args including the ItemId.
I do believe now this quest is the devil.
 
I have this working in my profile. I used a <runto> script to go to the position, once i was close, the bot uses the staff.
 
How did you get it to use the staff? Could we please see? Im pretty annoyed with this behavior
Ive had 1 "mild" success ,where it goes to the location and then the character says "i have no target" meaning he was trying to use the staff but wouldnt target the elemental = But that was because I had the Blazing Elemental added to the avoidmobs.
Using that same script with him off the avoidmob list just makes him attack it and kill it /facepalm
 
nothing still? I really havent gotten anywhere in my profile now and really dont want to skip this quest
 
nothing still? I really havent gotten anywhere in my profile now and really dont want to skip this quest

If all else fails and you still get the compile errors copy Tripper.Tools.dll to your C:\Windows\System32 folder and restart computer, this has helped a few others..
 
Seriously profiledevelopers? No one of you takes a second to help this poor fella out? Come on.

I suggest you to use the Custombehaviour "UseItemOn" (Honorbuddy Custom Behavior: UseItemOn - Buddy Wiki), for example:
<HBProfile><QuestOrder> <!-- opening context -->

<!-- ... -->
<CustomBehavior File="UseItemOn"
QuestId="27384"
ObjectType="Npc"
MobId="10926"
ItemId="12886"
NumOfTimes="1"
WaitTime="1500"
CollectionDistance="1"
X="-1972.388"
Y="6277.719"
Z="56.86252" />
<!-- ... -->

</QuestOrder></HBProfile> <!-- closing context -->

You don't need a RunTo behaviour to trigger where the bot should go in order to do this, just edit the XYZ to match that location, then make sure to configure the CollectionDistance big enough.
 
@killakaz Ya this is some software mumbo jumbo im sure of it. also noted ive had problem with tripper.dat all the time.
I did what you said and copied the tripper.tools.dll into the system32 and no dice still everything give me compile errors. Reinstalled uninstalled hb over and over. Notice in my log posted every single time it gives me the
"error CS0006: Metadata file 'Tripper.Tools.dll' could not be found"
before stopping the bot. Which makes no sense. I remember there was some error or another that was messing with people on here so they right clicked and ran the program as admin... Well hell I dont have my admin password and im pretty sure I never created one (meaning it was the default blank password that is always given...) BUT when I right click and runas/admin and give blank pass it says blank passwords are not allowed.... GREAAAt Anyone know of any password recovery tips? Im only trying that as a last resort

****Edit**** I just checked my users, the current user I am under is set up as Admin there should not be a reason to run as admin because I am the current admin.
Also I would get problems with tripper.dll compiling all the .cc files the first time I started to use hb on a new character (not new character made, a character new to honorbuddy)
This is the error it will do with all CC the first time I load a new character, this is an example but it will say this for every single class, even though all of the ccs are of course there.
Could not compile CC from C:\Documents and Settings\Joe\Desktop\Honorbuddy 2.0.0.3740\CustomClasses\Default Warlock!
File: Line: 0 Error: Metadata file 'Tripper.Tools.dll' could not be found <--- again with the stupid Tripper.Tools.dll

@wajke thank you so much for responding man im dying here this is ridiculous.And yes I just tried what you posted and doesnt work either.
I come from a 3d background and did some maya (.ma / .mb) programming back in the day and never had any of these types of trouble. You work at it long enough and its gets done, this is just plain bs, I wish I could figure out whats going on.


Ive uploaded both my xml and the debug/ log
 

Attachments

Last edited:
If you enter combat it won't try to use the item.
All the combat logic is above the quest logic and once you enter combat the current Combat Routine will start running instead of the UseItemOn behavior.
 
To get this quest working.. I can figure out the max range this item can be used and HOPE he uses the item before it gets into combat, correct? also set the X Y Z not to the location of the mob but use a RUNTO Xyz at this max distance far enough so that he doesnt try to attack it, correct?
Since the mob is elite can I also add him to the avoid mobs+ turn on <target elites> false</target elites> or will this not do anything?
 
To get this quest working.. I can figure out the max range this item can be used and HOPE he uses the item before it gets into combat, correct? also set the X Y Z not to the location of the mob but use a RUNTO Xyz at this max distance far enough so that he doesnt try to attack it, correct?
Since the mob is elite can I also add him to the avoid mobs+ turn on <target elites> false</target elites> or will this not do anything?

You don't have to use a RunTo tag, the X,Y,Z is the general location of where the units can be found.
Also there's no MaxRange Argument you can use. It just moves to the units until you are in interact range.
You don't have to set Target Elites to true,
Try this behavior, i added a MaxRange argument.
 

Attachments

tyvm and where would this Maxdistance tag be at? like what order?
 
Back
Top