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

Trying to get continent name as a string

pbettell

Member
Joined
Mar 14, 2010
Messages
432
Reaction score
17
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
 
try Styx.Helpers.Logging.Write(Styx.WoWInternals.WoWObjects.LocalPlayer.ContinentName.ToString())

not at home but it might work
 
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.
 
Back
Top