• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [BUG] Problem with some properties of the LocalPlayer

    Discussion in 'Honorbuddy Support' started by RedRussian, Feb 18, 2015.

    1. RedRussian

      RedRussian New Member

      Joined:
      Jun 26, 2014
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      Hi!
      After Honorbuddy is attached to an instance of the game, LocalPlayer (accessible through StyxWoW.Me) keeps some of the original character's properties even after relogging on another character. These properties include (but the list may not be limited to) Name and faction.

      How to reproduce:
      0) Attach Honorbuddy while on the character A.
      1) Relog to the character B.
      2) Type "Log(StyxWoW.Me.Name);" in the console. It will print the name of the character A.

      The problem is that the property of faction is also kept. That is, if you log on a toon which belongs to the opposing faction, other players will have their IsHostile property reversed. This may lead to problems with targeting (and it does so in my botbase!). Treating enemies as friends and vice versa isn't good at all.

      How to reproduce:
      0) The same
      1) Log on the character B which belongs to the opposing faction
      2) Target some friendly player and type "Log(StyxWow.Me.CurrentTarget.IsHostile);" in the console. It will print "True" whilst the correct result is "False".
       
      Last edited: Feb 18, 2015
    2. chinajade

      chinajade Well-Known Member Moderator Buddy Core Dev

      Joined:
      Jul 20, 2010
      Messages:
      17,540
      Likes Received:
      172
      Trophy Points:
      63
      Hi, RedRussian,

      Anytime your toon leaves the game world, you must restart Honorbuddy. This is NOT optional. Otherwise, you get all kinds of unexpected side-effects such as this, and much worse.

      cheers,
      chinajade
       

    Share This Page