• Visit Rebornbuddy
  • Mount Up and Sell things instead of going to NPC

    Discussion in 'Requests & Discussion' started by ahug, Sep 22, 2014.

    1. ahug

      ahug New Member

      Joined:
      Sep 13, 2014
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      Hello, I am trying to make this profile stand in front of Mailbox and instead of going to the vendor, it summon my Grand Expedition Yak and sell my shuffled necks/rings. But for some reason I can not do it.

      The profile is this from Blazin:
      https://www.thebuddyforum.com/honor...459-pb-jc-alch-ench-insc-blazins-shuffle.html

      To learn the process, I am trying to modify the "<!--Vendor Serpent Eye-->" Section, and I replaced this line:

      Code:
      	    
      <If Condition="Me.IsHorde" IgnoreCanRun="True">
               <SellItemAction Sell="All" NpcEntry="50482" X="2087.52" Y="-4769.45" Z="27.92898" SellItemType="Specific" ItemID="76734" Count="0" />
      </If>
      With This:
      Code:
      <If Condition="Me.IsHorde" IgnoreCanRun="True">
               <SellItemAction Sell="All" [B][U]NpcEntry="62822" X="0" Y="0" Z="0"[/U][/B] SellItemType="Specific" ItemID="76734" Count="0" />
      </If>
      If I am already in the Mount and start the profile, (with some serpents eyes in the bag) it sell them exactly as I want. But if I am not, the caracter just do nothing.


      Then I tried to add this line to make it works:
      Code:
      <If Condition="Me.IsHorde" IgnoreCanRun="True">
               [B][U]<CustomAction Code="Mount.MountUp();" />[/U][/B]
               <SellItemAction Sell="All" NpcEntry="62822" X="0" Y="0" Z="0" SellItemType="Specific" ItemID="76734" Count="0" />
      </If>
      And again, no sucess.
      I think that to make it works I just need to make the profile Mount Up when he calls the "vendor" sections of the code.

      If some one could help me I would be really thankful :rolleyes:
       
    2. alpha2twin

      alpha2twin New Member

      Joined:
      Oct 18, 2011
      Messages:
      186
      Likes Received:
      1
      Trophy Points:
      0

      I am no pro but have you tried the following:

      using the RunMacro tag you could run a macro to mount your expedition yak, then /tar the vendor, then interact with vendor, then attempt to sell.

      I haven't tried this myself but if I were to, this would be the approach I would try first.

      Let me know if this works for you :)
       
    3. ahug

      ahug New Member

      Joined:
      Sep 13, 2014
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      Thank you @alpha2twin but it didn't work too. I have put this line:

      Code:
      <CustomBehavior File="RunMacro" Macro="/cast Grand Expedition Yak" /> 
      But the bot still calls the predefined mount from "settings and tools" and then go to the NPC.. It is odd because if I remove this line, stand mounted in my Yak and start the profile, he does what I want (interact with Cousin Slowhands and sell the stuff).

      I am still trying to figure out what I have to do, if you have another ideas I would be happy to try here!
       
    4. alpha2twin

      alpha2twin New Member

      Joined:
      Oct 18, 2011
      Messages:
      186
      Likes Received:
      1
      Trophy Points:
      0
      Just tried this and it worked, might try adding an if condition to vendoring so that if you have neither of the repair mounts then go to another vendor.

      Code:
        <CustomBehavior File="RunMacro" Macro="/use Grand Expedition Yak"/>
        <CustomBehavior File="InteractWith" MobId="62822"/>
        <CustomBehavior File="ForceSetVendor" DoRepair="true" DoSell="true" />
       
    5. ahug

      ahug New Member

      Joined:
      Sep 13, 2014
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      Hi, Thank you for your help but I think I am really noob at this :(.

      This is the original routine:

      Code:
      	  <!--Vendor Serpent Eye-->
      	  <If Condition="(bool)Settings[&quot;Vendor Serpent Eyes&quot;]" IgnoreCanRun="True">
      	   <While Condition="InbagCount(76734) &gt;= 1" IgnoreCanRun="True">
      	    <CustomAction Code="Log(&quot;[PB] Selling Serpent Eyes.&quot;);" />
      	       <If Condition="Me.IsAlliance" IgnoreCanRun="True">
      	         <SellItemAction Sell="All" NpcEntry="44583" X="-8710.41" Y="624.899" Z="100.9289" SellItemType="Specific" ItemID="76734" Count="0" />
                     </If>
      	       <If Condition="Me.IsHorde" IgnoreCanRun="True">
      	        [U]<SellItemAction Sell="All" NpcEntry="50482" X="2087.52" Y="-4769.45" Z="27.92898" SellItemType="Specific" ItemID="76734" Count="0" />[/U]
      	       </If>
                 </While>
      	  </If>
      
      So what I did was to remove the original SellItemAction with what you have said. Then it I got this:

      Code:
      	  <!--Vendor Serpent Eye-->
      	  <If Condition="(bool)Settings[&quot;Vendor Serpent Eyes&quot;]" IgnoreCanRun="True">
      	   <While Condition="InbagCount(76734) &gt;= 1" IgnoreCanRun="True">
      	    <CustomAction Code="Log(&quot;[PB] Selling Serpent Eyes.&quot;);" />
      	       <If Condition="Me.IsAlliance" IgnoreCanRun="True">
      	         <SellItemAction Sell="All" NpcEntry="44583" X="-8710.41" Y="624.899" Z="100.9289" SellItemType="Specific" ItemID="76734" Count="0" />
                     </If>
      	       <If Condition="Me.IsHorde" IgnoreCanRun="True">
                      [U]<CustomBehavior File="RunMacro" Macro="/use Grand Expedition Yak"/>[/U]
                      [U]<CustomBehavior File="InteractWith" MobId="62822"/>[/U]
                      [U]<CustomBehavior File="ForceSetVendor" DoRepair="true" DoSell="true" />[/U]
      	       </If>
                 </While>
      	  </If>
      

      Even if I add just the "Run Macro" line, it doesn't work. Then I discovered that whenever I modify the SellItemAction tag, the profile gets bugged, doesn't even loads.
       
    6. alpha2twin

      alpha2twin New Member

      Joined:
      Oct 18, 2011
      Messages:
      186
      Likes Received:
      1
      Trophy Points:
      0
      Looks like a ProfessionBuddy profile? I'll have a look when I get home and try to apply it to your scenario :)
       
    7. ahug

      ahug New Member

      Joined:
      Sep 13, 2014
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      I dont have much experience with profiles, this is the first one I am modifying.. Im trying to learn and maybe right my own on the future.

      These tags wasn't supposed to work on every profile?
       
    8. Giwin

      Giwin Well-Known Member Buddy Store Developer

      Joined:
      Dec 3, 2011
      Messages:
      3,431
      Likes Received:
      49
      Trophy Points:
      48
      The bot should be doing this automatically.
       
    9. alpha2twin

      alpha2twin New Member

      Joined:
      Oct 18, 2011
      Messages:
      186
      Likes Received:
      1
      Trophy Points:
      0
      I'm not 100% sure as I've also just recently started writing some profiles using the quest behaviours.

      Want to link me the original profile you are looking to edit? That way I have a more complete picture. From what I understand, you want it to simply mount up and sell specific items?
       
    10. ahug

      ahug New Member

      Joined:
      Sep 13, 2014
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      The profile is this one, version 2.5
      https://www.thebuddyforum.com/honor...sc-blazins-shuffle-post863137.html#post863137

      During the shuffle, sometimes the profile has to sell the rings / necks made from the shuffle. But what he do is run from the mailbox to some specific vendor.

      What I want is, instead of go looking for this vendor, stay there and just summon the vendor mount and sell all the rings/necks.


      You can also enable the profile to sell the Serpent's Eyes on your bag (the routine above), that is one of the first routines called and thats why I choose to modify it, if I learn how to make the profile sell the Serpent's Eyes, I could modify the others routines too and at the right moment he sells the rings/necks junk.

      With this, I can do my shuffle anywhere I want and possibly draw less attention :p
       

    Share This Page