• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Question - Profile writing

    Discussion in 'Requests & Discussion' started by Texas1996, Nov 11, 2016.

    1. Texas1996

      Texas1996 New Member

      Joined:
      Oct 9, 2016
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      0
      Good Evening,

      I search for a Thread, who People answer the Questions from other players about "Writing Profiles (Questing, Grinding, Gathering)...

      My Question is, why my bot is doesn't do anything...

      Bot stopping! Reason: Nothing more to do.

      <HBProfile>
      <!--This will enclose the entire profile, this won’t ever change-->

      <!--Comments section

      I like to put pertinent information up here such as:

      Notes:
      Can be started anywhere

      Features:
      Grinds out mobs until level 10, then switches to new mobs to grind to level 20.
      Vendors and Repairs automatically

      Instructions:
      Load profile and hit start!

      Known Bugs:
      None!

      You can realistically put anything you want up here. -->

      <Name>Texas_QuestingProfile</Name>

      <MinLevel>1</MinLevel>
      <MaxLevel>110</MaxLevel>

      <MinDurability>0.4</MinDurability>
      <MinFreeBagSlots>3</MinFreeBagSlots>

      <SellGrey>True</SellGrey>
      <SellWhite>True</SellWhite>
      <SellGreen>False</SellGreen>
      <SellBlue>False</SellBlue>
      <SellPurple>False</SellPurple>

      <MailGrey>False</MailGrey>
      <MailWhite>True</MailWhite>
      <MailGreen>True</MailGreen>
      <MailBlue>True</MailBlue>
      <MailPurple>True</MailPurple>

      <Blackspots>
      <Blackspot Name="Durotar" X="373.5913" Y="-4712.287" Z="16.10571" Radius="11" />

      <Blackspot Name="Orc starter: behind building w/Farmers Krella and Lok'lub"
      X="-511.5697" Y="-4260.601" Z="43.82208" Radius="11" />

      <Blackspot Name="Sen'jin Village Fence1" X="-768.1917" Y="-4881.526" Z="20.29184" Radius="7.254548"/>
      <Blackspot Name="Sen'jin Village Fence2" X="-767.4973" Y="-4880.469" Z="20.56847" Radius="4.278707"/>

      <Blackspot Name="Troll Starting Area" X="-1135.981" Y="-5414.498" Z="13.00538" Radius="2.300135" />
      <Blackspot Name="Troll Starting Area" X="-1150.384" Y="-5519.188" Z="11.58836" Radius="2.494276" />
      <Blackspot Name="Troll Starting Area" X="-1168.537" Y="-5269.622" Z="0.8604383" Radius="3.024951" />
      <Blackspot Name="Harpy Nest" X="-2639.21" Y="-1405.313" Z="32.07373" Radius="3.31264"/>
      <Blackspot Name="Cold Hearth Minor Sign" X="2188.518" Y="661.0852" Z="33.29134" Radius="4.017753"/>
      </Blackspots>

      <Vendors>
      <!--Valley of Trials Vendors-->
      <Vendor Name="Zlagk" Id="3882" Type="Food" X="-560.1253" Y="-4217.204" Z="41.59082"/>
      <Vendor Name="Huklah" Id="3160" Type="Repair" X="-590.3455" Y="-4227.319" Z="38.3847"/>

      <!--Sen'jin Village Vendors-->
      <Vendor Name="K'waii" Id="3186" Type="Food" X="-779.0314" Y="-4938.931" Z="22.24685" />
      <Vendor Name="Trayexir" Id="10369" Type="Repair" X="-769.1502" Y="-4948.526" Z="22.84936"/>

      <!--Razor Hill Vendors-->
      <Vendor Name="Innkeeper Grosk" Id="6928" Type="Food" X="340.3629" Y="-4686.287" Z="16.48928"/>
      <Vendor Name="Ghrawt" Id="3165" Type="Repair" X="362.1046" Y="-4763.842" Z="12.46936"/>
      </Vendors>

      <Mailboxes>
      <Mailbox Name="Razor Hill" X="321.0783" Y="-4708.963" Z="14.15302"/>
      <Mailbox Name="Sen'jin Village" X="-816.5651" Y="-4926.866" Z="19.88713"/>
      </Mailboxes>

      <AvoidMobs>
      <Mob Name="Trainingsattrappe" Entry="44820" />
      <Mob Name="Rezlak" Entry="3293" />
      </AvoidMobs>

      <QuestOrder>

      <PickUp QuestName="Your Place In The World" QuestId="25152" GiverName="Kaltunk" GiverId="10176" />
      <TurnIn QuestName="Your Place In The World" QuestId="25152" TurnInName="Gornek" TurnInId="3143" />

      <PickUp Nav="Fly" QuestName="Scharfe Zähne" QuestId="25126" GiverName="Gornek" GiverId="3143" />
      <Quest Id="25126" Name="Scharfe Zähne">
      <Objective Type="KillMob" MobId="3098" KillCount="6" >
      <Hotspots>
      <Hotspot X="-492.6755" Y="-4340.936" Z="38.81337" />
      <Hotspot X="-473.3043" Y="-4271.668" Z="42.89374" />
      </Hotspots>
      </Objective>
      </Quest>

      <CustomBehavior File="Misc\RunLua" Lua="SetCVar('AutoLootDefault', 1)" />
      <CustomBehavior File="UserSettings" AutoEquip="true" />

      <CustomBehavior File="EnablePlugin" Names="Anti Drown" />
      <CustomBehavior File="EnablePlugin" Names="Questhelper - ItemForAura" />
      <CustomBehavior File="EnablePlugin" Names="Refreshment Detection" />

      <CustomBehavior File="Misc\ProfileCompatibilityInfo" AllowBrokenAddOns="true" AllowBrokenPlugIns="true" />

      <LootMobs Value="true" />
      <TargetingDistance Value="5"/> <!-- Use LevelBot default -->
      <UseMount Value="true" />

      </QuestOrder>
      </HBProfile>


      Some other things you would chance, i have this Profile from another website...

      Thanks & sry for my English..

      Thanks
      Best regards
       
    2. chinajade

      chinajade Well-Known Member Moderator Buddy Core Dev

      Joined:
      Jul 20, 2010
      Messages:
      17,540
      Likes Received:
      172
      Trophy Points:
      63
      Change it to:
      <MaxLevel>111</MaxLevel>

      or delete the MaxLevel line, entirely.

      cheers,
      chinajade
       
    3. Texas1996

      Texas1996 New Member

      Joined:
      Oct 9, 2016
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      0
      Nothing is doing....

      <!--
      ///////////////////////////////////////////////////
      // //
      // Example QuestBot Profile //
      // //
      ///////////////////////////////////////////////////
      // Notes: //
      // * Comments inside element statements break //
      // the syntax structure in the profile. //
      // * You must remember to remove the comments in //
      // those affected elements before trying to //
      // run this profile. //
      ///////////////////////////////////////////////////
      -->
      <HBProfile>
      <!--This will enclose the entire profile, this won’t ever change-->

      <!--Comments section

      I like to put pertinent information up here such as:

      Notes:
      Can be started anywhere

      Features:
      Grinds out mobs until level 10, then switches to new mobs to grind to level 20.
      Vendors and Repairs automatically

      Instructions:
      Load profile and hit start!

      Known Bugs:
      None!

      You can realistically put anything you want up here. -->

      <Name>Walker's_QuestingProfile1-110</Name>

      <MinLevel>1</MinLevel>
      <MaxLevel>101</MaxLevel>

      <MinDurability>0.4</MinDurability>
      <MinFreeBagSlots>3</MinFreeBagSlots>

      <SellGrey>True</SellGrey>
      <SellWhite>True</SellWhite>
      <SellGreen>False</SellGreen>
      <SellBlue>False</SellBlue>
      <SellPurple>False</SellPurple>

      <MailGrey>False</MailGrey>
      <MailWhite>True</MailWhite>
      <MailGreen>True</MailGreen>
      <MailBlue>True</MailBlue>
      <MailPurple>True</MailPurple>

      <Blackspots>
      </Blackspots>

      <Vendors>
      <Vendor Name="Rarc" Entry="3161" Type="Repair" Nav="Fly" X="-587.5" Y="-4226.188" Z="38.37928" />
      <Vendor Name="Zlagk" Entry="3882" Type="Food" Nav="Fly" X="-560.1253" Y="-4217.204" Z="41.59076" />
      </Vendors>


      <Mailboxes>
      </Mailboxes>

      <AvoidMobs>
      </AvoidMobs>

      <QuestOrder>

      <PickUp Nav="Run" QuestName="Euer Platz in der Welt" QuestId="25152" GiverName="Kaltunk" GiverId="10176" />
      <TurnIn Nav="Run" QuestName="Euer Platz in der Welt" QuestId="25152" TurnInName="Gornek" TurnInId="3143" />

      <If Condition="DoQuest(25126)" >
      <Quest Id="25126" Name="Scharfe Zähne">
      <CustomBehavior File="KillUntilComplete" MobIds="3098" QuestId="25126" KillCount="6" >
      <Hotspots>
      <Hotspot X="-490.9456" Y="-4338.257" Z="38.76292" />
      <Hotspot X="-471.0487" Y="-4272.606" Z="42.8933" />
      </Hotspots>
      </CustomBehavior>
      </If>

      </QuestOrder>
      </HBProfile>

      Where is the issue?
       
    4. chinajade

      chinajade Well-Known Member Moderator Buddy Core Dev

      Joined:
      Jul 20, 2010
      Messages:
      17,540
      Likes Received:
      172
      Trophy Points:
      63
      You did not correctly follow the instructions in the previous post. You changed it to 101, not 111.

      cheers,
      chinajade
       
    5. Texas1996

      Texas1996 New Member

      Joined:
      Oct 9, 2016
      Messages:
      18
      Likes Received:
      0
      Trophy Points:
      0
      Ouw, sry...':/

      But i don't do...

      Cannot start the bot because the profile cannot be loaded.
      The 'Quest' start tag on line 78 position 4 does not match the end tag of 'If'. Line 85, position 4.
       
    6. EchoTiger

      EchoTiger Official Profile and Singular Developer Staff Member Moderator

      Joined:
      Nov 28, 2012
      Messages:
      6,810
      Likes Received:
      631
      Trophy Points:
      113
      I'd recommend removing the <MaxLevel> tag entirely as it is completely optional and for the most part cause issues like this.

      The MinLevel tag is the only one you'd want to include since this will prevent characters that aren't high enough level from running your profile.
      But as for the MaxLevel tag, in most cases you'd never have a reason to include this unless you just don't want high levels running the profile.

      --

      You also never closed the <Quest/> tag.
      Not to mention <Quest/> is not a tag used by <QuestOrder> - so you could just remove that line entirely.

      <Quest/> is only used outside of the <QuestOrder> and it's for assigning overrides.
      Since you are using a QuestBehavior, you don't need to assign overrides.

      --

      And one last thing to mention: you're using DoQuest()
      DoQuest() is an extension method and isn't apart of the core API.
      Your profile will not compile unless you assign this method.

      PHP:
          <CustomBehavior File="RunCode" Type="Definition"><![CDATA[
                  
      bool DoQuest(params uint[] questIds)
                  {
                      foreach (var 
      questId in questIds)
                      {
                          if (
      HasQuest(questId) && !IsQuestCompleted(questId)) return true;
                      }
                      return 
      false;
                  }

              ]]>
          </
      CustomBehavior>
       
      Last edited: Nov 11, 2016

    Share This Page