Jump to content
  • ObjectManager.Me.PlayerRace returns 35


    Ordush
    • Product: WRobot General Type: Bug Status: Unconfirmed

    Hey Droidz for some reason ObjectManager.Me.PlayerRace returns 35 no matter what race you are in TBC. Not sure what is going on lol



    User Feedback

    Recommended Comments

    ObjectManager.Me.PlayerRaceString returns "Unknown"

    I obviously did a fresh wrobot install before coming here. ?

    Edit: This is very odd, on another server it returns the race.
    But on my own CMangos Server it returns those numbers. ?
    Edit: If I do Logging.Write(Lua.LuaDoString<string>("return UnitRace('player')"));
    It writes: Tauren#||#Tauren
    in the log.
    If I write Lua.LuaDoString("DEFAULT_CHAT_FRAME:AddMessage(UnitRace('player'))");
    it does write Tauren in the chat.
    If I do:
    if (Lua.LuaDoString<string>("return UnitRace('player')") == "Tauren#||#Tauren")
        Lua.LuaDoString("DEFAULT_CHAT_FRAME:AddMessage('Yes')");
    else
        Lua.LuaDoString("DEFAULT_CHAT_FRAME:AddMessage('No')");
    It does write Yes in the chat. lol this is too weird.
    Edit: I did try using the same wow folder that is connecting to another private tbc server where this is not the case.

    Edited by Ordush
    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...