• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux luascript.cpp

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?

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!
 
what is it supposed to even do

Thanks for reply, Xeraphus!

Well... i rlly bad in c++, i try write just on lua, then i dont know say exactly what it do.
I trying re-write Private War System, then have this function on C++ for add, but idk how convert it for then add.

If u can see more about for understand and help-me... look:

https://www.sendspace.com/file/oxlq4n

You can adapt just this function C++ for me for 1.3? @Xeraphus please xD

BUMPPP!!!
 
Last edited by a moderator:
Back
Top