Skip to content

Commit

Permalink
Add a new smbx function
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinW1998 committed Oct 5, 2014
1 parent 55824e8 commit 99acd17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LunaDll/Defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
11 changes: 11 additions & 0 deletions LunaDll/LuaMain/LunaLuaMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 99acd17

Please sign in to comment.