• Visit Rebornbuddy
  • Trying to get continent name as a string

    Discussion in 'Archives' started by pbettell, Sep 27, 2010.

    1. pbettell

      pbettell Member

      Joined:
      Mar 14, 2010
      Messages:
      432
      Likes Received:
      17
      Trophy Points:
      18
      I'm trying to get Styx.WoWInternals.WoWObjects.LocalPlayer.ContinentName to return to a string, and I'm a bit out of my depth with c#, any code snippets would be greatly appreciated.

      Cheers
      pbettell
       
    2. protopally

      protopally Member

      Joined:
      Jan 15, 2010
      Messages:
      391
      Likes Received:
      8
      Trophy Points:
      18
      try Styx.Helpers.Logging.Write(Styx.WoWInternals.WoWObjects.LocalPlayer.ContinentName.ToString())

      not at home but it might work
       
    3. pbettell

      pbettell Member

      Joined:
      Mar 14, 2010
      Messages:
      432
      Likes Received:
      17
      Trophy Points:
      18
      Turns out I couldn't get it to work, because Styx.WoWInternals.WoWObjects.LocalPlayer.ContinentName seems to return null no matter what you do - Bot Devs, is this correct??

      Got around it by creating a bool using Styx.WoWInternals.WoWObjects.LocalPlayer.RealZoneText and comparing it to a list of zone names for the continent in question.
       

    Share This Page