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

Quest Override Help - Use Item, Collect Items

pmellyn

New Member
Joined
May 10, 2010
Messages
89
Reaction score
0
I am trying to figure out how to make an override for the quest 'Magnets, How Do They Work?' in Tol Barad. The quest requires you to go to a location, use an item and then pickup the items that you discover after using your "Magnetized Scrap Collector."

The only solution I have found was to nest a shitload of <If> Statements, and since the quest requires you to collect 7 items, I would have to have like 10+ hotspots to collect 1 at a time when sometimes 2, or 3 even spawn. They despawn rather quickly, so if you agro some mobs, they may despawn before you get a chance to collect.

PHP:
<If Condition="!IsQuestCompleted(27949)">
  <UseItem ItemId="62829" QuestName="Magnets, How Do They Work?" QuestId="27992" X="-348.9317" Y="1651.325" Z="18.11559" />
  <Objective QuestName="Magnets, How Do They Work?" QuestId="27992" Type="CollectItem" ItemId="62830" CollectCount="1" />
</If>
<If Condition="!IsQuestCompleted(27949)">
  <UseItem ItemId="62829" QuestName="Magnets, How Do They Work?" QuestId="27992"  X="-373.295" Y="1685.595" Z="18.64007" />
  <Objective QuestName="Magnets, How Do They Work?" QuestId="27992" Type="CollectItem" ItemId="62830" CollectCount="1" />
</If>
<If Condition="!IsQuestCompleted(27949)">
  <UseItem ItemId="62829" QuestName="Magnets, How Do They Work?" QuestId="27992" X="-410.426" Y="1616.185" Z="18.35997" />
  <Objective QuestName="Magnets, How Do They Work?" QuestId="27992" Type="CollectItem" ItemId="62830" CollectCount="1" />
</If>
<If Condition="!IsQuestCompleted(27949)">
  <UseItem ItemId="62829" QuestName="Magnets, How Do They Work?" QuestId="27992" X="-380.5811" Y="1569.208" Z="18.06157" />
  <Objective QuestName="Magnets, How Do They Work?" QuestId="27992" Type="CollectItem" ItemId="62830" CollectCount="1" />
</If>
 
that won't work because the bot will try and collect 7

you will have to nest them, but here is what I would do:

PHP:
<UseItem ItemId="62829" QuestName="Magnets, How Do They Work?" QuestId="27992" X="-348.9317" Y="1651.325" Z="18.11559" /> 
  <Objective QuestName="Magnets, How Do They Work?" QuestId="27992" Type="CollectItem" ItemId="62830" CollectCount="1" />

to:

PHP:
<UseItem QuestName="" QuestId="" ItemId="" XYZ />
<CustomBehavior File="InteractWith" QuestId="" ObjectType="Gameobject" MobId="" NumOfTimes="1" CollectionDistance="50" X Y Z />

it's very sloppy and I hate it, but that's how I do it atm... Here is how I did the oil collection quest in borean (the oil was collected by the machines, but i would have used interact with or usegameobject to collect it)

WTB UseItem to have waitTimer :(

PHP:
			<If Condition="((HasQuest(11715)) &amp;&amp; (!IsQuestCompleted(11715)))">
				<!-- after your char is done with it's quest ... it will stand there for a bit, sorry but the bot can't "find" the puddles :( -->
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975" X="3982.527" Y="5119.168" Z="-1.509157" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975" X="3944.809" Y="5127.481" Z="-1.509595" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3957.042" Y="5157.68" Z="-1.510072" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3922.615" Y="5142.616" Z="-1.509984" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3905.958" Y="5103.764" Z="-1.508649" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3868.023" Y="5133.512" Z="-1.509886" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3852.667" Y="5089.988" Z="-1.508568" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3819.478" Y="5115.712" Z="-1.509247" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3804.428" Y="5092.977" Z="-1.510066" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3816.569" Y="5062.546" Z="-1.509088" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3852.408" Y="5087.716" Z="-1.509027" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3859.344" Y="5031.936" Z="-1.437772" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3843.82" Y="4987.511" Z="-1.415288" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3816.375" Y="5017.419" Z="-1.509903" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3775.021" Y="5031.071" Z="-1.508586" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3746.844" Y="5073.108" Z="-1.508976" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3723.369" Y="5024.905" Z="-1.508829" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3753.766" Y="5003.391" Z="-1.50867" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3703.537" Y="4984.94" Z="-1.215742" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3671.221" Y="5001.316" Z="-1.509009" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3645.331" Y="4976.692" Z="-1.841577" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3598.874" Y="4986.196" Z="-1.569456" />
			<CustomBehavior File="WaitTimer" WaitTime="12000"/>
			<UseItem QuestName="Fueling the Project" QuestId="11715" ItemId="34975"  X="3562.324" Y="5012.652" Z="-1.509238" />
				<!-- after your char is done with it's quest ... it will stand there for a bit, sorry but the bot can't "find" the puddles :( -->
			</If>
 
So I want to have it use item at XYZ, then have a custom behavior to interact with the revealed objects. Should I nest a dozen of these or so into <If Condition="!IsQuestCompleted(27949)">, so once it is completed it stops trying to continue to do it.
 
Back
Top