All pastes #728643 Raw Edit

Something

public lua v1 · immutable
·published 2007-10-07 06:02 UTC
rendered paste body
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