Do this script work on a newer 7.72 server ?
Data struct can be this.
or this
LUA:
macro(2000, "Revisar VIP", function()
for _, data in pairs(g_game.getVips()) do
local name, online = data[_][name], data[_][online]
if online then
--Do whatever you want it to do here
break
end
end
end)
i am on a 7.72 server
Data struct can be this.
Code:
---@class Vip
---@field name string
---@field status number
---@field description string
---@field iconId number
---@field notifyLogin boolean
Vip = {}
---@return table<[number, Vip]>
function getVips() end
or this
Code:
In The Forgotten Server 1.5 with LuaJIT 2.1.0-beta3, the g_game.getVips() function returns a Lua table with the following structure:
{
[1] = {
name = "Player1",
online = true,
level = 100,
vocation = "Knight"
},
[2] = {
name = "Player2",
online = false,
level = 80,
vocation = "Sorcerer"
},
-- Additional VIP entries follow the same structure
}