diff --git a/LunaDll/Defines.h b/LunaDll/Defines.h index a88b7a102..00269b4e8 100644 --- a/LunaDll/Defines.h +++ b/LunaDll/Defines.h @@ -156,3 +156,5 @@ enum PRIORITY { #define GF_BITBLT_CALL 0x004242D0 // Arg1 #define GF_NPC_KILL 0x00A315A0 // Arg1 = int* Killed NPC index Arg2 = NPCMOB* Killer NPC + +#define GF_NPC_TO_COINS 0x00A3C580 // No Args, Does convert every NPC to coins (Like player would win) diff --git a/LunaDll/LuaMain/LunaLuaMain.cpp b/LunaDll/LuaMain/LunaLuaMain.cpp index bec27a131..dd05d39a3 100644 --- a/LunaDll/LuaMain/LunaLuaMain.cpp +++ b/LunaDll/LuaMain/LunaLuaMain.cpp @@ -456,9 +456,20 @@ void LunaLua::DoCodeFile(lua_State *L) } } +//debug stuff +//int cCounter = 0; void LunaLua::Do() { + //debug stuff +// cCounter++; +// if(cCounter % 100 == 0){ +// typedef int coinfunc(void); +// coinfunc* f = (coinfunc*)0x00A3C580; +// f(); +// } + + PlayerMOB* demo = Player::Get(1); if(demo == 0) return;