l2-unlegits/l2ooghelper/SE_funcs_hacks.cpp
2012-02-01 05:25:08 +00:00

17 lines
395 B
C++

#include "stdafx.h"
#include "Logger.h"
#include "SE_funcs.h"
// l2c_sendPacketHex( string packetHex )
int l2c_sendPacketHex( lua_State *L )
{
int nArgs = lua_gettop( L );
if( nArgs < 1 ) return 0;
IL2Client *cl = L2C_func_getClient( L );
if( !cl ) return 0;
const char *hex = lua_tolstring( L, 1, NULL );
if( !hex ) return 0;
cl->game_sendPacketHex( hex );
return 0;
}