• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Quest Behavior] InInstance

    Discussion in 'Neutral' started by AknA, Jan 29, 2013.

    1. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      FAQ!

      What is InInstance ?
      InInstance is a Quest Behavior that is a variation of MyCTM with extra check if you're in a instance or not.

      What does InInstance do ?
      InInstance works exactly like MyCTM but with the extra feature that it checks if you zone in/out of a instance.
      I developed it to help a profile writer to zone out of instances.
      Primary use is to zone in/out of instances and not have strange behaviors once you have, otherwize it works exactly like MyCTM.

      How do I use this ?
      In a quest profile use :
      PHP:
      <CustomBehavior File="Misc\InInstance" X="123" Y="456" Z="789" />
      This doesn't work ?
      Then please write a post and include a log and explain what isn't working.

      I love this, do you accept donations ?
      Yes, at the bottom of the post you can see a link if you have a coin to spare.

      How do I install this ?
      You either download the file included in this post and copy it to your HB\Quest Behavior library.
      Or you can use this SVN Link

      10 Feb 2013 : This Quest Behavior is now included with HB, it's in your HB\Quest Behavior\Misc folder.
       

      Attached Files:

      Last edited: Feb 13, 2013
      Kazak likes this.
    2. yajinni

      yajinni New Member

      Joined:
      Jan 20, 2011
      Messages:
      422
      Likes Received:
      1
      Trophy Points:
      0
    3. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      Without this if you set a point with for example MyCTM that is through the portal, bot start to move, it goes through the portal and zones, but it still haven't reached the point you set as it zoned, sometimes it works but somtimes bot starts to behave strang and start to run in a direction, sometimes zones back, sometimes into a wall etc.

      With this, once you leave the instance InInstance tells your profile that you have reached your point (as you're not in the instance anymore) so you don't get any strange movement behaviors once you zone out :)

      It just makes your dungeon profiles easier to make, and you can use it the same way MyCTM work while you are in the instance.
       
      Last edited: Jan 30, 2013
    4. yajinni

      yajinni New Member

      Joined:
      Jan 20, 2011
      Messages:
      422
      Likes Received:
      1
      Trophy Points:
      0
      Ah well if it fixes that issue of porting out and going crazy at times then definately an upgrade :p thanks for your work dude.
       
    5. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      Ok, this one is a beta build, I don't know if this works or not, but I would like you test to see if it do.

      What have I change ?
      Now it works both ways, not only when you zone out, but allso when you zone in (or hopefully it does atleast).
      You can use it anywhere now, QB should send movement done either when you have reached your point OR if you have zoned in/out of an instance.

      Please let me know if it works like I intend it to and I make this build the official one.

      Removed this file as it was the wrong ver :p
      New file 2 posts down :)
       
      Last edited: Feb 5, 2013
    6. myllsmylls

      myllsmylls New Member

      Joined:
      Feb 5, 2013
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      0
      thanks for your working!

      i used it for zone in a instance,but HB stopped,here is the log:


      Compiling quest behavior from 'D:\games\HB\Quest Behaviors\InInstance.cs'
      Could not compile quest behavior from 'D:\games\HB\Quest Behaviors\InInstance.cs'
      Line 73: A field initializer cannot reference the non-static field, method, or property 'Styx.Bot.Quest_Behaviors.InInstance.CheckInstance()'
      System.Exception: Assembly is null!
      at Bots.Quest.QuestOrder.ForcedCodeBehavior.(Assembly , Dictionary`2 )
      at Bots.Quest.QuestOrder.ForcedCodeBehavior..ctor(CodeNode codeNode)
      at Bots.Quest.Actions.ForcedBehaviorExecutor.(OrderNode )
      at Bots.Quest.Actions.ForcedBehaviorExecutor..()
      Stop called!
      Bot Stopped! Reason: Could not create 'CurrentBehavior' in quest bot; an exception was thrown: Assembly is null!
       
    7. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      That is because I actually uploaded the wrong ver (yes I'm silly :p)

      Removed the file as the mainpost has it now, no need for any more beta testing as it's working as intended :)
       
      Last edited: Feb 6, 2013
    8. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      Ok, I've done some extended testing myself and it seems to work exactly as I intend it to, so updating main post with the new build, enjoy everyone :)
       
    9. icesinz

      icesinz New Member

      Joined:
      Jan 27, 2013
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      0
      i have been using "GoThruPortal" quest behaviour to fix my instance portal issues, will try this out too thanks
       
    10. Riltar

      Riltar New Member

      Joined:
      Nov 5, 2011
      Messages:
      380
      Likes Received:
      0
      Trophy Points:
      0
      I am sorry, i can't understand. What i need to do with this ? <CustomBehavior File="InInstance" X="123" Y="456" Z="789" />
      Where i need to put it?
       
    11. Mike Rohsoft

      Mike Rohsoft New Member

      Joined:
      Dec 5, 2012
      Messages:
      19
      Likes Received:
      1
      Trophy Points:
      0
      This Behavior makes sure HB runs after you are Enter/Exit an Instance.
      The Lunar Quests Profiles use this Behavior, so you need this Behavior to Copy in your Quest Behaviors Folder of HB to running Profiles they using this method.
      Ussually HB don't reach the Point which was Included to Zone Out, this Behavior fix this.
       
      Last edited: Feb 7, 2013
    12. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      You put it in your quest profile if you are a profile writer.
       
    13. AknA

      AknA Well-Known Member Buddy Store Developer

      Joined:
      Feb 11, 2012
      Messages:
      1,794
      Likes Received:
      65
      Trophy Points:
      48
      This Quest Behavior is now included with HB, it's in your HB\Quest Behavior\Misc folder, enjoy :)
       

    Share This Page