mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
feat: add party management (InviteUnit, UninviteUnit, LeaveParty)
InviteUnit(name) invites a player to the group. UninviteUnit(name) removes a player from the group. LeaveParty() leaves the current party/raid. Backed by existing inviteToGroup, uninvitePlayer, leaveGroup methods.
This commit is contained in:
parent
7927d98e79
commit
6c873622dc
1 changed files with 16 additions and 0 deletions
|
|
@ -5182,6 +5182,22 @@ void LuaEngine::registerCoreAPI() {
|
||||||
if (gh) gh->requestPvpLog();
|
if (gh) gh->requestPvpLog();
|
||||||
return 0;
|
return 0;
|
||||||
}},
|
}},
|
||||||
|
// --- Party/Group Management ---
|
||||||
|
{"InviteUnit", [](lua_State* L) -> int {
|
||||||
|
auto* gh = getGameHandler(L);
|
||||||
|
if (gh) gh->inviteToGroup(luaL_checkstring(L, 1));
|
||||||
|
return 0;
|
||||||
|
}},
|
||||||
|
{"UninviteUnit", [](lua_State* L) -> int {
|
||||||
|
auto* gh = getGameHandler(L);
|
||||||
|
if (gh) gh->uninvitePlayer(luaL_checkstring(L, 1));
|
||||||
|
return 0;
|
||||||
|
}},
|
||||||
|
{"LeaveParty", [](lua_State* L) -> int {
|
||||||
|
auto* gh = getGameHandler(L);
|
||||||
|
if (gh) gh->leaveGroup();
|
||||||
|
return 0;
|
||||||
|
}},
|
||||||
// --- Guild Management ---
|
// --- Guild Management ---
|
||||||
{"GuildInvite", [](lua_State* L) -> int {
|
{"GuildInvite", [](lua_State* L) -> int {
|
||||||
auto* gh = getGameHandler(L);
|
auto* gh = getGameHandler(L);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue