• Visit Rebornbuddy
  • Need little help with profile

    Discussion in 'Archives' started by l337pally, Aug 7, 2011.

    1. l337pally

      l337pally New Member

      Joined:
      Jun 24, 2011
      Messages:
      473
      Likes Received:
      2
      Trophy Points:
      0
      [Request] Need help with profile please

      Was looking over forums trying to find profile to turn in darkmoon decks but couldnt find one working so took a stab at it. At first it was picking up the quest but would just keep trying over and over. now it doesnt even pickup quest from deck so not sure whats going on. Any help would be appreciated, my first time trying to write one.

      Code:
      <HBProfile>
         <Name>Rogues Deck</Name>
         <MinLevel>10</MinLevel>
         <MaxLevel>86</MaxLevel>
      
         <MinDurability>0.1</MinDurability>
         <MinFreeBagSlots>2</MinFreeBagSlots>
      
         <MailGrey>False</MailGrey>
         <MailWhite>False</MailWhite>
         <MailGreen>False</MailGreen>
         <MailBlue>False</MailBlue>
         <MailPurple>False</MailPurple>
         
         <SellGrey>False</SellGrey>
         <SellWhite>False</SellWhite>
         <SellGreen>True</SellGreen>
         <SellBlue>False</SellBlue>
         <SellPurple>False</SellPurple>
         
         <TargetElites>False</TargetElites>
      
         <Vendors>
           
         </Vendors>
         
      
      
      <QuestOrder>
      <PickUp QuestName="Rogues Deck" GiverType="Item" QuestId="12517" GiverId="37163"  />
      <If Condition="((HasQuest(12517)) &amp;&amp; (IsQuestCompleted(12517)))" >
      <UseItem ItemId="43039" QuestName="Rogues Deck" QuestId="12517"
                                            X="-2265.023" Y="5212.706" Z="-9.986586" />
      <While Condition="((HasQuest(12517)) &amp;&amp; (IsQuestCompleted(12517)))" >
      <TurnIn QuestName="Rogues Deck" QuestId="12517" TurnInName="Darkmoon Fortune Teller" TurnInId="30481" />
        
      </While>
       
      </If>
       
      </QuestOrder>
      </HBProfile>
       
      Last edited: Aug 9, 2011
    2. l337pally

      l337pally New Member

      Joined:
      Jun 24, 2011
      Messages:
      473
      Likes Received:
      2
      Trophy Points:
      0
      Any ideas or suggestions? Any help would be appreciated. Thanks
       
    3. thenrique87

      thenrique87 Member

      Joined:
      May 20, 2010
      Messages:
      143
      Likes Received:
      0
      Trophy Points:
      16
      Instead of using the criteria GiverType="Item" I would do this:

      <PickUp QuestName="Rogues Deck" QuestId="12517" GiverName="Rogues Deck" GiverId="43039" GiverType="Object" />

      <If Condition="HasQuest(12517)" >
      <RunTo X="-2265.023" Y="5212.706" Z="-9.986586" /> <!-- Only use this if your toon is giving some problems getting to the right location -->
      <UseItem ItemId="43039" QuestName="Rogues Deck" QuestId="12517" WaitTime="15000" X="-2265.023" Y="5212.706" Z="-9.986586" />
      <TurnIn QuestName="Rogues Deck" QuestId="12517" TurnInName="Darkmoon Fortune Teller" TurnInId="30481" />
      </If>

      Did you try the above? Was it successfull? Did it fail and Why? Post one log or two as well. Let me know how this one goes k.
       
      Last edited: Aug 9, 2011
    4. l337pally

      l337pally New Member

      Joined:
      Jun 24, 2011
      Messages:
      473
      Likes Received:
      2
      Trophy Points:
      0
      Can not pick up a quest from a gameobject without specifying a location. Please check your profile.
      Could not create current in quest bot!

      Thats the message im getting when trying that.
       
    5. l337pally

      l337pally New Member

      Joined:
      Jun 24, 2011
      Messages:
      473
      Likes Received:
      2
      Trophy Points:
      0
      Code:
      <QuestOrder>
      <If Condition="(!HasQuest(12517))" >
      <PickUp QuestName="Rogues Deck" QuestId="12517" GiverName="Rogues Deck" GiverId="37163" GiverType="Item" />
      </If>
      
      <If Condition="(HasQuest(12517))" >
      <UseItem ItemId="43039" QuestName="Rogues Deck" QuestId="12517" WaitTime="15000" X="1084.499" Y="-500.6373" Z="-105.7489" />
      <TurnIn QuestName="Rogues Deck" QuestId="12517" TurnInName="Darkmoon Fortune Teller" TurnInId="30481" />
      </If>
      Ok changed it up little and its sorta working now. If i dont have quest already it uses item to get quest, but then it just loops with trying to use quest deck. If i drop quest and start it, it uses item to get quest but then it just says moving to turnin and wont use the new deck thats made to summon fortune teller.
       
    6. l337pally

      l337pally New Member

      Joined:
      Jun 24, 2011
      Messages:
      473
      Likes Received:
      2
      Trophy Points:
      0
      Ok its sorta working, ive been able to get it to go through 1 cycle but after that it pretty much just stops.

      Code:
      			<If Condition="((!HasQuest(12517)) &amp;&amp; (!IsQuestCompleted(12517)))" >
      				<PickUp QuestName="Rogues Deck" QuestId="12517" GiverName="Rogues Deck" GiverId="37163" GiverType="Item" />
      			</If>
      			
      			<If Condition="((HasQuest(12517)) &amp;&amp; (IsQuestCompleted(12517)))" >
      				<CustomBehavior File="Misc\RunLua" Lua="UseItemByName(43039)" WaitTime="1000" />
      			</If>
      <TurnIn QuestName="Rogues Deck" QuestId="12517" TurnInName="Darkmoon Fortune Teller" TurnInId="30481" />
      Any ideas to improve it and make it continue to cycle through turning in quests back to back.
       
    7. l337pally

      l337pally New Member

      Joined:
      Jun 24, 2011
      Messages:
      473
      Likes Received:
      2
      Trophy Points:
      0
      Update heres what ive worked out so far. I havent used it a bunch cause im not sure if runmacro is acceptable or using it in high quantity if its trackable or anything by bliz, so could anyone take a look and let me know if theres a better way to execute this. Thanks

      Code:
      <QuestOrder> 
      	<If Condition="(!HasQuest(12517))" >
       	<!-- ...Pickup and accept quest...-->
      	<CustomBehavior File="RunMacro"
                         Macro="/use Rogues Deck"
                         NumOfTimes="1"
                         WaitTime="500" />
      	<CustomBehavior File="RunMacro"
                         Macro="/script AcceptQuest()"
                         NumOfTimes="1"
                         WaitTime="500" />
      	<!-- ...Turn in quest and select reward...-->
      	<CustomBehavior File="InteractWith" 
      					MobId="30481"
      					NumOfTimes="1"
      					WaitTime="500" />
      	<CustomBehavior File="RunMacro"
      					Macro="/script GetQuestReward(3)"
      					NumOfTimes="1"
      					WaitTime="300" />
      
      	</If>
      </QuestOrder>
      
      Also it does work 100%, does full cycle through, some reason the accepting the reward part is kinda slow, 10sec delay or so. but one issue i have is it doesnt keep repeating the profile. it runs through once then i get Nothing more to do. Stopping bot.
       
      Last edited: Aug 11, 2011
    8. Bammeh

      Bammeh Member

      Joined:
      Jun 8, 2011
      Messages:
      311
      Likes Received:
      0
      Trophy Points:
      16
      Kick should take a look at this.
       
    9. Kickazz006

      Kickazz006 Well-Known Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      20,567
      Likes Received:
      302
      Trophy Points:
      83
      it's too fast
      and you need a complete log quest behavior, or another macro there

      try this (by cng)
      PHP:

                  
      <While Condition="HasItem()" >
                      <
      CustomBehavior File="RunMacro" Macro="/use Rogues Deck" />
                      <
      CustomBehavior File="RunMacro" Macro="/script AcceptQuest()" />
                      <
      CustomBehavior File="InteractWith" MobId="" />
                      <
      CustomBehavior File="RunMacro" Macro="/script SelectGossipActiveQuest(1)" />
                      <
      CustomBehavior File="RunMacro" Macro="/script CompleteQuest()" />
                      <
      CustomBehavior File="RunMacro" Macro="/script GetQuestReward(3)" />
                      <
      CustomBehavior File="RunMacro" Macro="/script GetQuestReward()" />
                  </While>    
       

    Share This Page