Added: set auto-pacts lua bind

--HG--
branch : patches-from-atys
hg/hotfix/patches-from-atys
Inky 6 years ago
parent 417865bb3a
commit cad47321a3

@ -556,6 +556,7 @@ void CLuaIHMRyzom::RegisterRyzomFunctions(NLGUI::CLuaState &ls)
LUABIND_FUNC(getClientCfg),
LUABIND_FUNC(sendMsgToServer),
LUABIND_FUNC(sendMsgToServerPvpTag),
LUABIND_FUNC(sendMsgToServerAutoPact),
LUABIND_FUNC(sendMsgToServerUseItem),
LUABIND_FUNC(isGuildQuitAvailable),
LUABIND_FUNC(sortGuildMembers),
@ -3410,6 +3411,14 @@ void CLuaIHMRyzom::sendMsgToServerPvpTag(bool pvpTag)
::sendMsgToServer("PVP:PVP_TAG", tag);
}
// ***************************************************************************
void CLuaIHMRyzom::sendMsgToServerAutoPact(bool bval)
{
//H_AUTO(Lua_CLuaIHM_sendMsgToServerAutoPact)
uint8 dopact = (uint8)bval;
::sendMsgToServer("COMMAND:AUTOPACT", dopact);
}
// ***************************************************************************
void CLuaIHMRyzom::sendMsgToServerUseItem(sint32 slot)
{

@ -206,6 +206,7 @@ private:
static std::string getClientCfg(const std::string &varName);
static void sendMsgToServer(const std::string &msgName);
static void sendMsgToServerPvpTag(bool pvpTag);
static void sendMsgToServerAutoPact(bool bval);
static void sendMsgToServerUseItem(sint32 slot);
static bool isGuildQuitAvailable();
static void sortGuildMembers();

Loading…
Cancel
Save