• Visit Rebornbuddy
  • Please help me with handover tag / quest steps??

    Discussion in 'Community Developer Forum' started by blackcoeurl, Feb 29, 2016.

    1. blackcoeurl

      blackcoeurl New Member

      Joined:
      Aug 1, 2015
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      1
      Okay, this is a really, REALLY dumb question. I'm pretty bad at this. But, I figured instead of requesting a simple profile, I'd try to figure it out myself. (And by 'figure it out myself', what I really mean is mostly edit bits from y2krazy's profiles... lol)

      Here is where I'm stuck.

      1. I need to turn key item 2001936 into NPC 1016409
      2. Then, I need to turn the same key item (there are 2) into NPC 1016408

      Currently, the profile is having me run to the first NPC, then immediately to the second. I'm assuming I need to implement quest steps for this to initiate the actual interaction/trade, but I have no idea how to assign different quest steps. I've had a look at other profiles as an example, but... I got pretty quickly overwhelmed and frustrated... ^^; Could anyone possibly give me a simple explanation / example?

      Thank you so much!!
       
    2. y2krazy

      y2krazy Community Developer

      Joined:
      Jun 21, 2011
      Messages:
      2,802
      Likes Received:
      64
      Trophy Points:
      48
      This may help (an excerpt from my HW questing profile):

      Code:
      <If Condition="GetQuestStep(67266) == 3">
      	<If Condition="not IsOnMap(418)">
      		<If Condition="Managers.WorldManager.HasAetheryteId(70)">
      			<TeleportTo Name="Foundation" AetheryteId="70" />
      		</If>
      		<If Condition="not Managers.WorldManager.HasAetheryteId(70)">
      			<Travel To="418" />
      		</If>
      	</If>
      	<MoveTo Name="Frostbitten Vagrant" XYZ="58.03003, -7.146736, 82.41394" />
      	[COLOR="#FF0000"]<If Condition="GetQuestById(67266).QuestI8AH == 0">[/COLOR]
      		<HandOver ItemId="2001803" QuestId="67266" StepId="3" NpcId="1014711" XYZ="58.03003, -7.146736, 82.41394" />
      	[COLOR="#FF0000"]</If>[/COLOR]
      	<If Condition="GetQuestById(67266).QuestI8AH == 1">
      		<HandOver ItemId="2001803" QuestId="67266" StepId="3" NpcId="1014712" XYZ="93.91919, -19.94117, 78.20239" />
      	</If>
      	<If Condition="GetQuestById(67266).QuestI8AH == 2">
      		<HandOver ItemId="2001803" QuestId="67266" StepId="3" NpcId="1014713" XYZ="131.9447, -20.0001, 62.02783" />
      	</If>
      </If>
      You will need to find the quest variables ("QuestI8AH", etc.) and their proper values ("0", "1", etc.) by using the QuestDevTools plugin.
       
    3. blackcoeurl

      blackcoeurl New Member

      Joined:
      Aug 1, 2015
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      1
      Hey y2k, incredibly appreciative of your response!! I'm still not getting a result, so I've obviously screwed up somewhere, lol. I've tried my best to replicate your code exactly (as well as several other ways...), and if I could accept the specific Heavensward quest you used as an example, I'm sure using QuestDevTools would help me to understand each part in your example. Alas, I've long finished the quest, so I can't examine it. :(

      I am assuming I need to use a quest variable that changes in each step, yes? So in this example, would I8E, I8EL, and I32A each work? (Screenshot)

      If that's right, then using I8E...

      Code:
      <If Condition="GetQuestStep(67758) == 1">
      	<If Condition="GetQuestById(67758).QuestIE8 == 2">
      	<MoveTo Name="Ul'dahn Citizen" XYZ="-98.92432, 4, -93.64465" />
      		<HandOver ItemId="2001936" QuestId="67758" StepId="1" NpcId="1016409" XYZ="-98.92432, 4, -93.64465" />
      	</If>
      	<If Condition="GetQuestById(67758).QuestIE8 == 1">
      		<HandOver ItemId="2001936" QuestId="67758" StepId="1" NpcId="1016408" XYZ="-105.6077, 4, -84.39771" />
      	</If>
      	<If Condition="GetQuestById(67758).QuestIE8 == 0">
      		<TurnIn QuestId="67758" StepId="1" NpcId="1016361" XYZ="-30.79413, 8, -103.608" />
      	</If>
      </If>
      I really have no idea what I'm doing with the QuestSteps and StepIds! I tried a few different things there but no luck... where did I go wrong?

      Again, thank you, I know this is an incredibly easy task to someone like you! I'm kind of embarrassed to ask, but then, I'm not sure how else I'd find out. I've already exhausted the 'trial and error' route!
       
    4. y2krazy

      y2krazy Community Developer

      Joined:
      Jun 21, 2011
      Messages:
      2,802
      Likes Received:
      64
      Trophy Points:
      48
      That is correct. QuestI8AH is the most common one to use based on my experience, but others are viable at times. The thing with quest variables is, I rarely use them - I mainly use them for things like talking to multiple NPCs for the same quest step and Todo (your Duty List), splitting GrindAreas up if they're on the same quest step and Todo and only when necessary. Otherwise, I try not to use quest variables.

      It looks like you're working on the seasonal quests, so if you'd like to see what I did to get things going for that, check out my SVN where my profile should be 100% AFK at this point. :D

      The only thing "unique" about seasonal quests right now are their repeatables. They can only be picked up and turned in effectively via CodeChunk. Otherwise, they're just like another other non-seasonal quest. ;)
       
    5. blackcoeurl

      blackcoeurl New Member

      Joined:
      Aug 1, 2015
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      1
      LOL, look at that! I didn't even think to update your SVN and look to see if it'd been done already. I thought if it had, I'd pull up something by searching here on the forums. Whoops! Not my finest moment...

      No regrets though -- I learned a lot of things. I've done several gathering profiles in the past but I'd never attempted any questing profiles. It was something I'd been meaning to try out anyways! I really appreciate your help, both here and in the dozens of your profiles I've learned from. You're amazing. Thank you so much!!
       
    6. y2krazy

      y2krazy Community Developer

      Joined:
      Jun 21, 2011
      Messages:
      2,802
      Likes Received:
      64
      Trophy Points:
      48
      Always glad to help! Feel free to go through that seasonal to see the differences in our approaches and don't hesitate to ask if you need clarification(s) on anything! :D
       

    Share This Page