Hi guys,
Can somebody provide a link for the client source code of metin2?
I just got the server source code and there are many references to LUA. Yet, I can't see any .lua files and I don't know if they are supposed to be on the client and how they interact with each other. Can't wait to see how my childhood game was made.
Sample of lua:
or:
Best Regards,
Catalin
Can somebody provide a link for the client source code of metin2?
I just got the server source code and there are many references to LUA. Yet, I can't see any .lua files and I don't know if they are supposed to be on the client and how they interact with each other. Can't wait to see how my childhood game was made.
Sample of lua:
Code:
void RegisterITEMFunctionTable()
{
luaL_reg item_functions[] =
{
{ "get_id", item_get_id },
{ "get_cell", item_get_cell },
{ "select", item_select },
Code:
int item_get_value(lua_State* L)
{
CQuestManager& q = CQuestManager::instance();
LPITEM item = q.GetCurrentItem();
if (!item)
{
lua_pushnumber(L, 0);
return 1;
}
Catalin