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

CollectItem until count=?

Gunmetal

New Member
Joined
Nov 10, 2010
Messages
151
Reaction score
2
I'm trying to build a quest that requires me to kill mobs that drop 4 of a specific item, which will then be used to set fire to 4 buildings. I tried using the Objective tag with a CollectItem count, but this appears to only work for collection quests...whereas the quest in question is a UseItem at XYZ.

How would I go about doing this? I thought about using a GrindTo, but not sure what to set the condition to. That would be nice if I could do a GrindTo Condtion="HasItem()" Count=4 or something along those lines...
 
Here are the quests that I did for the "Totem guy" in the Quarry in Borean:

PHP:
		<PickUp QuestName="Reclaiming the Quarry" QuestId="11612" GiverName="Etaruk" GiverId="25292" GiverType="NPC" />
		<Pickup QuestName="The Honored Ancestors" QuestId="11605" GiverName="Elder Atkanok" GiverId="187565" GiverType="Object" X="3522.04" Y="5413.482" Z="41.10724" />
			<Objective QuestName="The Honored Ancestors" QuestId="11605" Type="UseObject" ObjectId="187663" UseCount="1" /> <!-- Elder Sagani -->
			<Objective QuestName="The Honored Ancestors" QuestId="11605" Type="UseObject" ObjectId="187662" UseCount="1" /> <!-- Elder Kesuk -->
			<Objective QuestName="The Honored Ancestors" QuestId="11605" Type="UseObject" ObjectId="187664" UseCount="1" /> <!-- Elder Takret -->
			<Objective QuestName="Reclaiming the Quarry" QuestId="11612" Type="KillMob" MobId="25353" KillCount="12" />
		<TurnIn QuestName="The Honored Ancestors" QuestId="11605" TurnInName="Elder Atkanok" TurnInId="187565" X="3522.04" Y="5413.482" Z="41.10724" />
		<Pickup QuestName="The Lost Spirits" QuestId="11607" GiverName="Elder Atkanok" GiverId="187565" GiverType="Object" X="3522.04" Y="5413.482" Z="41.10724" />
		<TurnIn QuestName="Reclaiming the Quarry" QuestId="11612" TurnInName="Etaruk" TurnInId="25292" />
		<PickUp QuestName="Hampering Their Escape" QuestId="11617" GiverName="Etaruk" GiverId="25292" GiverType="NPC" />
				<!-- DO NOT STOP THIS QUEST AFTER YOU HAVE STARTED USING CORES ON THE NPC's OR YOU WILL HAVE TO GO BACK AND COLLECT THE CORES AGAIN! -->
			<Objective QuestName="The Lost Spirits" QuestId="11607" Type="CollectItem" ItemId="34711" ItemName="Core of Malice" CollectCount="6" />
			<If Condition="HasQuest(11607)" >
				<CustomBehavior File="UseItemOn" QuestId="11607" ObjectType="Npc" MobId="25321" ItemId="34711" NumOfTimes="3" WaitTime="3000" CollectionDistance="2000" X="3692.101" Y="5603.886" Z="34.10038" />
				<CustomBehavior File="UseItemOn" QuestId="11607" ObjectType="Npc" MobId="25322" ItemId="34711" NumOfTimes="3" WaitTime="3000" CollectionDistance="2000" X="3692.101" Y="5603.886" Z="34.10038" />
			</If>
			<Objective QuestName="Hampering Their Escape" QuestId="11617" Type="CollectItem" ItemId="34772" ItemName="Gnomish Grenade" CollectCount="3" />
			<UseItem QuestName="Hampering Their Escape" QuestId="11617" ItemId="34772" X="3663.129" Y="5565.923" Z="33.19181" />
			<UseItem QuestName="Hampering Their Escape" QuestId="11617" ItemId="34772" X="3546.047" Y="5617.477" Z="52.09909" />
			<UseItem QuestName="Hampering Their Escape" QuestId="11617" ItemId="34772" X="3531.683" Y="5534.997" Z="66.03397" />
		<TurnIn QuestName="The Lost Spirits" QuestId="11607" TurnInName="Elder Atkanok" TurnInId="187565" X="3522.04" Y="5413.482" Z="41.10724" />
		<Pickup QuestName="Picking Up the Pieces" QuestId="11609" GiverName="Elder Atkanok" GiverId="187565" GiverType="Object" X="3522.04" Y="5413.482" Z="41.10724" />
		<TurnIn QuestName="Hampering Their Escape" QuestId="11617" TurnInName="Etaruk" TurnInId="25292" TurnInType="NPC" />
		<Pickup QuestName="A Visit to the Curator" QuestId="11623" GiverName="Etaruk" GiverId="25292" GiverType="NPC" />
			<Objective QuestName="Picking Up the Pieces" QuestId="11609" Type="CollectItem" ItemId="34713" ItemName="Tuskarr Ritual Object" CollectCount="6" />
			<Objective QuestName="A Visit to the Curator" QuestId="11623" Type="KillMob" MobId="25448" MobName="Curator Insivius" KillCount="1" />
		<TurnIn QuestName="A Visit to the Curator" QuestId="11623" TurnInName="Etaruk" TurnInId="25292" />
		<TurnIn QuestName="Picking Up the Pieces" QuestId="11609" TurnInName="Elder Atkanok" TurnInId="187565" X="3522.04" Y="5413.482" Z="41.10724" />
		<Pickup QuestName="Leading the Ancestors Home" QuestId="11610" GiverName="Elder Atkanok" GiverId="187565" GiverType="Object" X="3522.04" Y="5413.482" Z="41.10724" />
			<UseItem QuestName="Leading the Ancestors Home" QuestId="11610" ItemId="34715" X="3588.811" Y="5524.333" Z="26.93958" /> <!-- Elder Sagani -->
			<UseItem QuestName="Leading the Ancestors Home" QuestId="11610" ItemId="34715" X="3652.338" Y="5636.321" Z="34.58562" /> <!-- Elder Kesuk -->
			<UseItem QuestName="Leading the Ancestors Home" QuestId="11610" ItemId="34715" X="3700.2" Y="5557.569" Z="35.10459" /> <!-- Elder Takret -->
		<TurnIn QuestName="Leading the Ancestors Home" QuestId="11610" TurnInName="Elder Atkanok" TurnInId="187565" X="3522.04" Y="5413.482" Z="41.10724" />
		<!-- end of totem guy quests -->
 
I did the same thing as you, but after he collects only 1 item, he tries to move on...

PHP:
<If Condition="isQuestCompleted(10792)">
	<Objective QuestName="Zeth'Gor Must Burn!" QuestId="10792" Type="CollectItem" ItemId="31347" CollectCount="4" />
	<UseItem ItemId="31347" QuestName="Zeth'Gor Must Burn!" QuestId="10792" X="2519.425" Y="6454.037" Z="-4.992679" />
	<UseItem ItemId="31347" QuestName="Zeth'Gor Must Burn!" QuestId="10792" X="2519.425" Y="6454.037" Z="-4.992679" />
	<UseItem ItemId="31347" QuestName="Zeth'Gor Must Burn!" QuestId="10792" X="2519.425" Y="6454.037" Z="-4.992679" />
	<UseItem ItemId="31347" QuestName="Zeth'Gor Must Burn!" QuestId="10792" X="2519.425" Y="6454.037" Z="-4.992679" />
</If>
(ignore the coordinates, I just put them in as a placeholder)
 
have you tried it w/o the If statement? (stupid dev forums won't let me put < If > )

comment it out and see what happens
 
Last edited:
just noticed that...I thought I tried that last night, but can't remember, I'll give it a shot when I get home.
 
Back
Top