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

Need help debugging this simple code.

JibberingJ

New Member
Joined
Jul 10, 2010
Messages
12
Reaction score
0
I am trying to put together a pretty simple and short profile to figure out this whole questing profile thing and I keep running into an error, but cant quite figure out what it wants me to do to make it happy!!! I am using a bit of code from Wajke and trying to fill in the quest overrides. Any help would be appreciated.

HTML:
<HBProfile>
  <Name>Quest Test</Name>
  <MinDurability>0.4</MinDurability>
  <MinFreeBagSlots>2</MinFreeBagSlots>
  <SellGrey>True</SellGrey>
  <SellWhite>True</SellWhite>
  <SellGreen>False</SellGreen>
  <SellBlue>False</SellBlue>
  <SellPurple>False</SellPurple>


  <Quest ID="790" Name="Sarkoth" />
   <Objective Type="Collect" ItemId="4905" CollectCount="1" />
    <Hotspots> 
     <Hotspot X="-537.498" Y="-4123.398" Z="64.8153" />
      <CollectFrom>
       <Mob Id="3281" Name="Sarkoth" />
      </CollectFrom>
    </Hotspots >
   </Objective>
  </Quest>




 <SubProfile>
      <Name>DUROTAR</Name>
      <MinLevel>1</MinLevel>
      <MaxLevel>12</MaxLevel>
    <Mailboxes>
  <Mailbox X="322.131" Y="-4709.69" Z="14.13799" />
  </Mailboxes>
      <SubProfile>
        <Name>Valley of Trials</Name>
        <MinLevel>1</MinLevel>
        <MaxLevel>5</MaxLevel>
    <ForcedQuestList>
        <Quest Id="4641" Name="Your Place In The World" />
        <Quest Id="788" Name="Cutting Teeth" />
        <Quest Id="792" Name="Vile Familiars" />
        <Quest Id="789" Name="Sting of the Scorpid" />
        <Quest Id="4402" Name="Galgar's Cactus Apple Surprise" />
        <Quest Id="805" Name="Report to Sen'Jin village" />
        </ForcedQuestList>


    <Vendors>
        <Vendor Name="Duokna" Entry="3158" Type="Repair" X="-565.428"   Y="-4214.199" Z="41.59077"/>
        <Vendor Name="Zlagk" Entry="3882" Type="Food" X="-560.1253"   Y="-4217.204" Z="41.5906"/>
    </Vendors>
    <Factions>189 7 </Factions>
    <Hotspots>
        <Hotspot X="-400.4335" Y="-4123.184" Z="50.27891" />
        <Hotspot X="-413.0057" Y="-4149.96" Z="51.57033" />
        <Hotspot X="-452.1552" Y="-4251.166" Z="49.24586" />
    </Hotspots>
      </SubProfile>
  
 </SubProfile>


</HBProfile>

The 'HBProfile' start tag on line 1 does not match the end tag of 'Oblective'. Line 20, position 6.
 
Code:
   [COLOR=#000080]<Objective Type=[COLOR=#0000ff]"Collect"[/COLOR] ItemId=[COLOR=#0000ff]"4905"[/COLOR] CollectCount=[COLOR=#0000ff]"1"[/COLOR] />[/COLOR]

I'm not 100% sure because I haven't taken a look at the new quest stuff for profiles yet, but from what I've seen in other questing profiles, you may have to change this to:

Code:
   [COLOR=#000080]<Objective Type=[COLOR=#0000ff]"CollectItem"[/COLOR] ItemId=[COLOR=#0000ff]"4905"[/COLOR] CollectCount=[COLOR=#0000ff]"1"[/COLOR] />[/COLOR]
 
I haven't coded questing profiles but I see that in this line:

<Objective Type="Collect" ItemId="4905" CollectCount="1" />

you close it out ('/'), yet a few lines down you close it again:

</Objective>
 
I haven't coded questing profiles but I see that in this line:

<Objective Type="Collect" ItemId="4905" CollectCount="1" />

you close it out ('/'), yet a few lines down you close it again:

</Objective>

Ah, yep that's the problem. I didn't even notice the error message at first in his original post.
 
Back
Top