When i try using Unit:SetUInt64Value(UNIT_FIELD_FLAGS, UNIT_NOT_TARGETABLE) it gives me an error in the ArcEmu-World, The error is like... "a nil value, value expected", tho i did add a value, but do i need to use some kinda local or something?
When i try using Unit:SetUInt64Value(UNIT_FIELD_FLAGS, UNIT_NOT_TARGETABLE) it gives me an error in the ArcEmu-World, The error is like... "a nil value, value expected", tho i did add a value, but do i need to use some kinda local or something?
UInt64 means 64-bit unsigned integer. You're trying to use a string value instead of what it's looking for, an integer.
The syntax for SetUInt64Value is SetUInt64Value(field, value). You can probably find an integer value for these somewhere in the core, perhaps NPCHandler or some other header file (if this script is setting some flags on an NPC).