[Lua] SetUint32Value Usage. menu

User Tag List

Results 1 to 13 of 13
  1. #1
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] SetUint32Value Usage.

    I've been messing around with the command and reading over code for examples. But i can't seem to figure out how to make this command work with anything other than adding gold.

    I'm very curious of other ways to use this command to modify things like;

    Making a creature un-attackable / un-targetable.
    Finding out if a player is in a group.
    Getting a players current target
    Checking if a player is in a guild

    I think understanding this command will open up a lot more new options / makeshift commands ect ect... while I'm scripting anything in general.

    Thanks in advance.
    Last edited by Vision1000; 07-23-2009 at 02:31 AM.

    [Lua] SetUint32Value Usage.
  2. #2
    The-Eradicator's Avatar Contributor

    Reputation
    149
    Join Date
    May 2007
    Posts
    829
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're wrong, please at least look at your core before trying to code things, regardless of language.

    All that function does is set bit values iirc. It isn't a magical function, it isn't for comparisons, there are functions designed for everything you said.
    Last edited by The-Eradicator; 07-23-2009 at 08:11 PM.

  3. #3
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would you care to list these functions? I've been through my lua's command list quite a bit. I've never seen commands for Making creatures un-attackable / untargetable. ect ect.

    I've seen people Open GoObjects by using that command, and add gold to players, and i think i've seen an example in another question thread about being able to make npcs un-targetable / un attackable.

    Though I'm not sure if you noticed the [Lua] tag in the original post.

  4. #4
    The-Eradicator's Avatar Contributor

    Reputation
    149
    Join Date
    May 2007
    Posts
    829
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Vision1000 View Post
    Though I'm not sure if you noticed the [Lua] tag in the original post.
    Lua is terrible, I will not use it, thus I can't give you functions. Nonetheless, what I said applies perfectly because it's the same function, in C++ and in Lua.

    Check Dr. Robotnik (Formerly Gastricpenguin)'s Gua Engine. If that doesn't have the functionality you need, go learn C++.

    ... oh wait, you should learn C++ anyway!


    Also, what's with the random colors?

  5. #5
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Eradicator, you're wrong actually. lol and the colors say "you need to lighten up"

    SetUInt32Value is a verrrry powerful tool. uint32values describe everything about an object: level, scale, model, native model, mount id, guild, gold, you name it!

    However, arcemu/aspire aren't 100% like blizzard, and often use internal values to keep track of uint32values on objects, even though it may be redundant. So things such as pet owners, guilds, etc. can't be set (it will show on the client as if it had changed, but it won't actually).

    usage:

    unit:SetUInt32Value( index, value);

  6. #6
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where in my core can i find the index and values to use with this command? I've been looking around but can't find anything, or really know what to look for.

  7. #7
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    UpdateFields.h

  8. #8
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, never would've thought to look there.

    +Repx2, 1 for the help, 1 for figuring out what the random colors were for and making my day =).

  9. #9
    The-Eradicator's Avatar Contributor

    Reputation
    149
    Join Date
    May 2007
    Posts
    829
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jotox1 View Post
    SetUInt32Value is a verrrry powerful tool. uint32values describe everything about an object: level, scale, model, native model, mount id, guild, gold, you name it!

    However, arcemu/aspire aren't 100% like blizzard, and often use internal values to keep track of uint32values on objects, even though it may be redundant. So things such as pet owners, guilds, etc. can't be set (it will show on the client as if it had changed, but it won't actually).
    Did you read his (and my) post? I said everything he listed have separate functions, and I also said it isn't for comparisons, which it isn't.

    In other words, everything you just said.

    Originally Posted by Jotox1 View Post
    lol and the colors say "you need to lighten up"
    I'll give you the benefit of the doubt and assume you didn't look at the thread before.

    The first post had those colors, he edited them out, thus no, they didn't say that. On top of that, they're annoying as ****, and the question was meant to imply that, so he'd hopefully stop doing it.

  10. #10
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...? In your quote of him, the colors are identical.

    And actually, it can be used for everything he asked except checking if a player's in a group. Although... GetUInt32Value for comparison, not SetUInt32Value

  11. #11
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not to take sides, but the color would be identical because your quoting a post id, not the exact post. So any modifications would be reflected in his "quote" of the post too.


  12. #12
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    :O i did not know that

  13. #13
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We'll the question was answered. All that was left was for me to strain my brain figuring out how to convert hexadecimals to regular numbers.

    @Jotox1, tyvm for the specific explanation in Laymans terms. I also think Eradicator was referring to my original post where i random colors throughout the paragraph.

    Anyway everything is cleared up now. no need to start a potential flame war. Thanks all.

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. LUA Refrences
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-22-2007, 08:09 PM
  4. New usage of Tele to Plane hack
    By Varoze in forum World of Warcraft Bots and Programs
    Replies: 15
    Last Post: 03-19-2007, 09:03 PM
All times are GMT -5. The time now is 01:29 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search