module("SetUInt32", package.seeall) luanet.load_assembly("WCell.RealmServer") luanet.load_assembly("WCell.Core") ChatHandler = luanet.import_type("WCell.RealmServer.Chat.ChatHandler") function SetUInt32(client, args) local field = tonumber(args[2]) local value = tonumber(args[3]) local oldValue = client.ActiveCharacter:GetUInt32(field) client.ActiveCharacter:SetUInt32(field, value) local finalString = string.format("Field %s changed from %s to %s", field, oldValue, value) ChatHandler.SendSystemMessageReply(client, finalString) end