Open Riverlance opened 3 months ago
Can you explain better? the feature is automatically activated in versions 12+ https://github.com/mehah/otclient/blob/11cc1536ebd9b39b4bb77cfb7c544e5d28f945b3/modules/game_features/features.lua#L184
Can you explain better? the feature is automatically activated in versions 12+
Sure. It is activated indeed, although it is not implemented.
When you write lines like:
msg->getU8(); // Group ID
msg->getString(); // Group name
msg->getU8(); // Can edit group? (bool)
You are receiving data from server about vip groups, but doing nothing with them.
You need to assign them to variables, then use into a function that should pass through a Lua callback which will implement the visual of groups on Vip List mini window.
See id
, name
, status
, desc
, iconId
, notifyLogin
used on g_game.processVipAdd
to see how it should be done.
myVariable = msg->getU8();
, not just msg->getU8();
without signing it to a variable nor using it.myVariable
in g_game.processVipAdd
(in case of ProtocolGame::parseVipAdd
) or in g_game.processVipStateChange
(in case of ProtocolGame::parseVipLogout
).g_game.onAddVip
(in case of g_game.processVipAdd
) or in g_game.onVipStateChange
(in case of g_game.processVipStateChange
).
Priority
Missing Content
Area
What is missing?
The feature
Otc::GameVipGroups
is not implemented, as shown below:Code of Conduct