sasuke.maria
New Member
- Joined
- Nov 19, 2016
- Messages
- 17
- Reaction score
- 0
Hi guys! Everything good?
So, someone can adapt this function for 1.x?
I know nothing about c++
Thanks for read!
So, someone can adapt this function for 1.x?
Code:
int32_t LuaInterface::luaSendToTalkaction(lua_State* L)
{
LuaInterface& interface = g_talkActions->getInterface();
if(interface.reserveEnv()){
int32_t target = popNumber(L);
int32_t cid = popNumber(L);
lua_State* state = interface.getState();
lua_getglobal(state, "War");
lua_getfield(state, -1, "morte");
lua_pushnumber(state, cid);
lua_pushnumber(state, target);
lua_call(state, 2, 0);
}
return 1;
}
I know nothing about c++
Thanks for read!