View Full Version : [SOLVED] Unit:SetUInt32Value(58, 26)?

02-27-2015, 10:31 AM

I used to script a lot of lua back in the arcemu days.

I used the command Unit:SetUInt32Value(58, 26) a lot and I can't find the command for eluna.

This sets the NPC as unattackable. If you click him, he is displayed as hostile, but you won't see the sword when you mouse-over. You won't be able to attack him, at all.

I want to make so the creature can't attack you and you can't attack him.

Anyone know?

02-27-2015, 11:22 AM

I think you need a different index though.

02-27-2015, 10:28 PM
Appropriate index and value is: UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE. Which is 59, 2 in numerical values. You can use "Object:SetFlag(index, value) (http://eluna.emudevs.com/Object/SetFlag.html)" method for this. Also, they are 'methods' and/or can be referred to as functions, not commands. :/