2011-08-21 11:29:35 -06:00
if WINDOWS then --windows function defintions
2012-03-23 03:07:54 -06:00
--[=[onfunction.AddFunction(0x55499D+offsets.base(),"Move") --on creature move found with "watch mem=xcoord"
2011-08-21 11:29:35 -06:00
onfunction.AddFunction ( 0x275933 + offsets.base ( ) , " Die " , { creature = " edi " } ) --on creature death? found by watching dead flag then stepping until new function
2011-09-17 05:59:10 -06:00
onfunction.AddFunction ( 0x2c1834 + offsets.base ( ) , " CreateCreature " , { protocreature = " eax " } ) --arena
2011-09-21 12:35:58 -06:00
onfunction.AddFunction ( 0x349640 + offsets.base ( ) , " AddItem " , { item = " esp " } ) --or esp
onfunction.AddFunction ( 0x26e840 + offsets.base ( ) , " Dig_Create " , { item_type = " esp " } ) --esp+8 -> material esp->block type
onfunction.AddFunction ( 0x3d4301 + offsets.base ( ) , " Make_Item " , { item_type = " esp " } )
2011-09-21 13:52:26 -06:00
onfunction.AddFunction ( 0x5af826 + offsets.base ( ) , " Hurt " , { target = " esi " , attacker = { off = 0x74 , rtype = DWORD , reg = " esp " } } )
2011-10-02 04:21:36 -06:00
onfunction.AddFunction ( 0x3D5886 + offsets.base ( ) , " Flip " , { building = " esi " } )
2012-03-23 03:07:54 -06:00
onfunction.AddFunction ( 0x35E340 + offsets.base ( ) , " ItemCreate " ) --]=]
2012-04-03 07:17:43 -06:00
--onfunction.AddFunction(0x4B34B6+offsets.base(),"ReactionFinish") --esp item. Ecx creature, edx? 0.34.07
onfunction.AddFunction ( 0x72aB6 + offsets.base ( ) , " Die " , { creature = " edi " } ) --0.34.07
2011-08-21 11:29:35 -06:00
else --linux
2012-03-23 03:07:54 -06:00
--[=[onfunction.AddFunction(0x899befe+offsets.base(),"Move") -- found out by attaching watch...
onfunction.AddFunction ( 0x850eecd + offsets.base ( ) , " Die " , { creature = " ebx " } ) -- same--]=]
2011-08-21 11:29:35 -06:00
end