Active Member Mind Rapist 188 Posted December 29, 2018 Active Member Share Posted December 29, 2018 The most strange thing is happening. The function npc.get_level returns NOTHING!!! It exists in the source, it exists in quest_functions file, but when I call it, I get nothing. I used it as: when kill begin ... say(npc.get_level) ... end and in source I tried the default: int npc_get_level(lua_State* L) { lua_pushnumber(L, CQuestManager::instance().GetCurrentNPCCharacterPtr()->GetLevel()); return 1; } and Ken way: int npc_get_level(lua_State * L) { LPCHARACTER npc = CQuestManager::instance().GetCurrentNPCCharacterPtr(); lua_pushnumber(L, npc ? npc->GetLevel() : 0); return 0; } It just doesn't work!!! What can I do here? Link to comment Share on other sites More sharing options...
Active Member Exygo 1091 Posted December 30, 2018 Active Member Share Posted December 30, 2018 (edited) say(npc.get_level) say(npc.get_level()) Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal 1 2 https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Active Member Mind Rapist 188 Posted December 30, 2018 Author Active Member Share Posted December 30, 2018 I must be the dumbest person in the whole planet lol I even compiled a new QC file for this!!! Thank you for pointing it out Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now