VIP items in a script
VIP items are purely visual: wands, brooms, familiars, effects. None gives an advantage. The account owns them; the script decides what the character wears.
on("vip", function(player) -- the list just arrived, or changed
for code, category in player:vipItems() do
log(player.name, "owns", code, category)
end
local ok, reason = player:wearVip("golden_broom")
if not ok then
log(reason)
end
end)
The bundled script#
scripts/vip/main.luau does the simplest thing: on arrival you wear what you own, and the player can change it in game.
on("client:vip_wear", function(player, code)
player:wearVip(code)
end)
on("client:vip_remove", function(player, category)
player:removeVip(category)
end)
Rules#
- One item per category:
wand,broom,familiar,effect. player:wearViprefuses an item the account does not own. And even if a server cheated, other players' clients only display what is proven by a signature from the master.- After a refund, the server removes the item by itself, then sends
vip. - A character wearing no VIP item publishes nothing, not even its account.