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

question about picked up item

panYama

Community Developer
Joined
Jan 15, 2010
Messages
2,629
Reaction score
49
I'm wondering how HB can open a picked up quest scroll and accept the quest, is HB able to and if so, how?
 
Hi, Panyama!

Your answer is the GiverType="Item" form of <Pickup>.

Most profile writers arrange 'grind' to assure the item is in their backpack...
PHP:
<If Conditon="!IsQuestCompleted(9373)">
    <If Condition="!HasItem(23338)">
          <SetGrindArea>...</SetGrindArea>
          <GrindTo Condition="HasItem(23338)" GoalText="Grinding for Eroded Leather Case" />
    </If>

    <If Condition="!HasQuest(9373)">
        <PickUp QuestName="Missing Missive" GiverType="Item" QuestId="9373" GiverId="23338" />
    </If>
</If>

cheers,
chinajade
 
Last edited:
hmm, interesting.

So it will keep farming till item 23338 has been gathered is that correct?
and where is giverid I input the item id basically correct?
 
Panyama said:
So it will keep farming till item 23338 has been gathered is that correct?
and where is giverid I input the item id basically correct?

"Yes" on both counts.
 
what does <If Conditon="!IsQuestCompleted(9373)">
basically stand for in this case? is it like: quest 9373 is completed but don't have item xxx yet so we will grind for it or?
 
Panyama said:
what does Conditon="!IsQuestCompleted(9373)" basically stand for in this case?
! is the C# operator for 'not'. So, the statement reads "return 'true' if quest 9373 is NOT complete".

The IsQuestCompleted() shortcut considers both the quests currently in your log, and the quests that may have been historically completed (and no longer in your log) when making its determination. More info about all that here...
[wiki]Honorbuddy Profile Tag Attribute: Condition[/wiki]

cheers,
chinajade
 
Hi, Panyama!

Your answer is the GiverType="Item" form of <Pickup>.

Most profile writers arrange 'grind' to assure the item is in their backpack...
PHP:
...

cheers,
chinajade

tried this but didn't work.. then I removed some code and put it in like this:

HTML:
<PickUp QuestName="The Collector" GiverType="Item" QuestId="9373" GiverId="1307" />

with that it does pickup the quest, but it doesn't continue after that. it keeps saying picking up quest.
 
How can this be avoided?
if you then press stop and start again you will see this:


Could not pickup quest from item with id:1307 the item was not found!
Honorbuddy Stopped!
Could not create current in quest bot; exception was thrown
Thread was being aborted.



 
How can this be avoided?
if you then press stop and start again you will see this:


Could not pickup quest from item with id:1307 the item was not found!
Honorbuddy Stopped!
Could not create current in quest bot; exception was thrown
Thread was being aborted.




it has to be inside of if con !has quest && !is quest completed (or just !is quest completed)

PHP:
				<If Condition="(HasItem(1307))" >
		<PickUp QuestName="The Collector" QuestId="123" GiverType="Item" GiverId="1307" />
				</If>
				<If Condition="(HasQuest(123))" >
		<TurnIn QuestName="The Collector" QuestId="123" TurnInName="Marshal McCree" TurnInId="42256" />	
		<PickUp QuestName="Manhunt" QuestId="147" GiverName="Marshal McCree" GiverId="42256" />
				</If>
 
hmm, I seem to misunderstand then...better slow down to fully get the function. ill have a look.
 
you can also stick it in a grind area to grind for the item... such as this:

PHP:
			<If Condition="(!IsQuestCompleted(9373))" >
					<SetGrindArea>
						<GrindArea>
							<Factions>14 954 1662</Factions>
							<Hotspots>
								<Hotspot X="-860.966" Y="3043.299" Z="10.38862" />
								<Hotspot X="-840.9182" Y="3112.006" Z="9.845476" />
								<Hotspot X="-785.329" Y="3133.672" Z="-11.77797" />
								<Hotspot X="-776.5629" Y="3093.946" Z="-2.476487" />
								<Hotspot X="-751.605" Y="3027.201" Z="10.87881" />
								<Hotspot X="-659.2036" Y="3092.232" Z="2.27761" />
								<Hotspot X="-718.9045" Y="3184.778" Z="-18.20048" />
							</Hotspots>
						</GrindArea>
					</SetGrindArea>
				<GrindTo Condition="(HasItem(23338))" GoalText="Dropquest Item" />
			</If>
			<If Condition="(HasItem(23338))" >
		<PickUp QuestName="Missing Missive" QuestId="9373" GiverType="Item" GiverId="23338" />
			</If>
 
you can also stick it in a grind area to grind for the item... such as this:

PHP:
<If Condition="(!IsQuestCompleted(9373))" >
<SetGrindArea>
<GrindArea>
<Factions>14 954 1662</Factions>
<Hotspots>
<Hotspot X="-860.966" Y="3043.299" Z="10.38862" />
<Hotspot X="-840.9182" Y="3112.006" Z="9.845476" />
<Hotspot X="-785.329" Y="3133.672" Z="-11.77797" />
<Hotspot X="-776.5629" Y="3093.946" Z="-2.476487" />
<Hotspot X="-751.605" Y="3027.201" Z="10.87881" />
<Hotspot X="-659.2036" Y="3092.232" Z="2.27761" />
<Hotspot X="-718.9045" Y="3184.778" Z="-18.20048" />
</Hotspots>
</GrindArea>
</SetGrindArea>
<GrindTo Condition="(HasItem(23338))" GoalText="Dropquest Item" />
</If>
<If Condition="(HasItem(23338))" >
<PickUp QuestName="Missing Missive" QuestId="9373" GiverType="Item" GiverId="23338" />
</If>

alright thanks, the thing is the item drops from the a mob a quest before it needs to accept it and its 100% drop so should work what I got right now.
 
well, !IsQuestCompleted() works like that now

it asks if it has been completed in the past, as well as if it is currently completed or not (while in log). but it's best to be specific ... and have a hasquest or !hasquest with it
 
whats difference between hasquest or !hasquest?

with the (!)
 
As CJ has stated already... ! = not or does not

!HasQuest = Does not has quest (i do not have the quest)
!IsQuestCompleted = does not have the quest completed (The quest has not been completed in the past, or currently)
 

Attachments

Last edited:
good just needed to know what it ment in normal words to understand the statement.

^^
 
HTML:
  <If Conditon="!IsQuestCompleted(123)">
   <If Condition="!HasItem(1307)">
       <SetGrindArea>
                        <GrindArea>
                            <Factions>7</Factions>
                            <Hotspots>
        <Hotspot X="-9495.158" Y="-1205.94" Z="48.30563" />
        <Hotspot X="-9495.619" Y="-1196.222" Z="49.56586" />
                            </Hotspots>
                        </GrindArea>
                    </SetGrindArea>
    <GrindTo Condition="HasItem(1307)" GoalText="Have Gold Pickup Schedule, Accepting Quest." />
   </If>
   <If Condition="!HasQuest(123)">
    <PickUp QuestName="The Collector" GiverType="Item" QuestId="123" GiverId="1307" />
   </If>
   <If Conditon="HasQuest(123)">
    <TurnIn QuestName="The Collector" QuestId="123" TurnInName="Marshal McCree" TurnInId="42256" /> 
   </If>   
  </If>

If I insert that it keeps on hanging on pickup quest.
 
still doesn't want to work....

edit:

also when I press start and stop while he has the quest accepted it does spit out this error:

Could not pickup quest from item with id:1307 the item was not found!
Honorbuddy Stopped!
Could not create current in quest bot; exception was thrown
Thread was being aborted.
 
Back
Top