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

UseItemOn - Isn't working for this quest?

highend

Member
Joined
Jan 15, 2010
Messages
422
Reaction score
1
PHP:
<PickUp QuestName="Venomblood Antidote" QuestId="28145" GiverName="Sun Priest Asaris" GiverId="47715" />
		<PickUp QuestName="Relics of the Sun King" QuestId="28141" GiverName="Sun Priest Asaris" GiverId="47715" />
				<Objective QuestName="Venomblood Antidote" QuestId="28145" Type="KillMob" MobId="47748" KillCount="1" />
				<CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="Gameobject" CollectionDistance="500" NumOfTimes="1" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829" />
				<Objective QuestName="Venomblood Antidote" QuestId="28145" Type="KillMob" MobId="47748" KillCount="1" />
				<CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="Gameobject" CollectionDistance="500" NumOfTimes="1" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829" />
				<Objective QuestName="Venomblood Antidote" QuestId="28145" Type="KillMob" MobId="47748" KillCount="1" />
				<CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="Gameobject" CollectionDistance="500" NumOfTimes="1" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829" />
				<Objective QuestName="Venomblood Antidote" QuestId="28145" Type="KillMob" MobId="47748" KillCount="1" />
				<CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="Gameobject" CollectionDistance="500" NumOfTimes="1" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829" />
				<Objective QuestName="Venomblood Antidote" QuestId="28145" Type="KillMob" MobId="47748" KillCount="1" />
				<CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="Gameobject" CollectionDistance="500" NumOfTimes="1" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829" />
				<Objective QuestName="Venomblood Antidote" QuestId="28145" Type="KillMob" MobId="47748" KillCount="1" />
				<CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="Gameobject" CollectionDistance="500" NumOfTimes="1" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829" />
				<Objective QuestName="Venomblood Antidote" QuestId="28145" Type="KillMob" MobId="47748" KillCount="1" />
				<CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="Gameobject" CollectionDistance="500" NumOfTimes="1" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829" />
				<Objective QuestName="Venomblood Antidote" QuestId="28145" Type="KillMob" MobId="47748" KillCount="1" />
				<CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="Gameobject" CollectionDistance="500" NumOfTimes="1" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829" />

		<Objective QuestName="Relics of the Sun King" QuestId="28141" Type="CollectItem" ItemId="63081" CollectCount="4" />
		<TurnIn QuestName="Venomblood Antidote" QuestId="28145" TurnInName="Sun Priest Asaris" TurnInId="47715" />
		<TurnIn QuestName="Relics of the Sun King" QuestId="28141" TurnInName="Sun Priest Asaris" TurnInId="47715" />
---

Goal of the quest is: Kill 8 scorpions and use the Antidote Vial on each of them. The dead body must be targeted to use the Vial.

After each kill the bot just loots, mounts and moves on to the next mob without ever trying to use the Vial.

Replacing ObjectType="Gameobject" with ObjectType="NPC" doesn't make a difference.

Do we need a new cb for this kind of quest or what else is going wrong here?
 
Last edited by a moderator:
here's what u do... useitemon type="npc" not gameobject

If it were *my* quest, here is what I would do:

PHP:
<PickUp QuestName="Venomblood Antidote" QuestId="28145" GiverName="Sun Priest Asaris" GiverId="47715" />
        <PickUp QuestName="Relics of the Sun King" QuestId="28141" GiverName="Sun Priest Asaris" GiverId="47715" />         
                <CustomBehavior File="UseItemOn" QuestId="28145" ItemId="63086" MobId="47748" ObjectType="NPC" CollectionDistance="1000" NumOfTimes="50" WaitTime="1800" X="-8846.808" Y="-620.9612" Z="178.1829"/>
        <Objective QuestName="Relics of the Sun King" QuestId="28141" Type="CollectItem" ItemId="63081" CollectCount="4" />
        <TurnIn QuestName="Venomblood Antidote" QuestId="28145" TurnInName="Sun Priest Asaris" TurnInId="47715" />
        <TurnIn QuestName="Relics of the Sun King" QuestId="28141" TurnInName="Sun Priest Asaris" TurnInId="47715" />

and the UseItemOn will do it at 0 range... and since they're agro, the bot will automatically kill them before using it :)
 
Last edited:
I am working on a version that will allow you to set wither it should use it on dead targets only. There should be an update within a few days.
 
I am working on a version that will allow you to set wither it should use it on dead targets only. There should be an update within a few days.

any update on this? I need this exact behavior for a quest profile i am working on.. the mobs it needs to kill and use an item on are neutral so i cant just walk up to them and aggro them and use the item...
 
the new useitemon that raphus made and i tested for a while works fine with this now

PHP:
				<CustomBehavior File="UseItemOn" QuestId="" ObjectType="Npc" MobId="" ItemId="" NumOfTimes="1" WaitTime="1000" Range="5" CollectionDistance="50" X Y Z />


/// [Optional]NpcState: The state of the npc -> Dead, Alive, BelowHp. None is default so... NpcState="Dead"
 
Last edited:
I am using the CB from your zip on your blog.. I guess there's another one somewhere? I'll look around for it.. thanks
 
I am using the CB from your zip on your blog.. I guess there's another one somewhere? I'll look around for it.. thanks

same on that's in my blog (remember, these get updated every day or 2 sometimes... but atm it's pretty stable. i last uploaded the behaviors yesterday)
 
oh, so i'm probably just missing the optional part then.. since i downloaded the CB's from your blog this morning.. I'll add the NpcState="Dead" and see what happens.. thanks for your help :)
 
Is there a "UseItemOn" if the NPC has Life at 20%? Its for the Quest <PickUp QuestName="Ever So Lonely" QuestId="24974" GiverName="Sedrick Calston" GiverId="38925" />. Have to fight till a Murloc is under 20 or 30% then use an item, so i get the Murloc on a Rope and bring back to Questgiver.
 
Back
Top