Code:
--; WoW 1.5.0 _WOW_VERSION = "1, 5, 0, 4442" --; NPC HOOK _npc_hook_addr = "46F810" --; FUNCTIONS _function_GetPlayerPtr = "45D480" --; PLAYER OFFSETS _player_unit_struct = "8" _player_hitpoints = "1E98" _player_mana = "1E9C" _player_maxmana = "18" _player_maxhp = "18" _player_current_xp = "27B0" _player_max_xp = "27B4" -- // _player_alive = "20F5" -- // does not work -- // _player_form = "2096" -- // does not work -- // _player_combo = "2FB1" -- // does not work -- // _player_level = "1EC8" -- // works but not needed _player_rage = "4" _player_energy = "8" _player_facing = "93C" _player_internal_z = "4" _player_internal_y = "4" _player_internal_x = "4" _player_targetID = "94BF58" _player_playerID = "9413C8" --; NPC OFFSETS _npc_id = "4C0" _npc_id2 = "4C4" _npc_hp = "354" _npc_level = "548" _npc_faction = "54C" _npc_x = "10" _npc_y = "14" _npc_z = "18" _npc_facing = "1C" function Sense_Hook(hWnd,hook) h = hook ret = HexAdd(h,"6") --; .DATA hook = { clear = Asm.AllocateMemory(hWnd,4), loops = Asm.AllocateMemory(hWnd,4), npc_count = Asm.AllocateMemory(hWnd,4), npc_array = Asm.AllocateMemory(hWnd,1024) } --; .CODE asm = #ASM_START ; START @sense_hack: push ecx push eax cmp dword *(hook.clear),1 je @empty_data cmp dword *(hook.loops),0 je @end dec dword *(hook.loops) add ecx,354h cmp dword [ecx],64h jg @end cmp dword [ecx],1h jl @end add ecx,1F4h cmp dword [ecx],1h jl @end cmp dword [ecx],50h jg @end sub ecx,548h mov eax, &(hook.npc_array) @check_if_new: cmp dword [eax],0 je @add_npc cmp dword [eax],ecx je @end add eax,4h jmp @check_if_new @add_npc: mov dword [eax],ecx inc dword *(hook.npc_count) jmp @end @empty_data: mov eax, &(hook.npc_array) mov dword *(hook.clear),0 mov dword *(hook.npc_count),0 mov dword *(hook.loops),0 @empty_loop: cmp dword [eax],0 je @end mov dword [eax],0 add eax,4h jmp @empty_loop @end: pop eax pop ecx mov eax, dword [ecx+38h] mov ecx, dword [ecx+3Ch] jmp dword &(ret) ; end #ASM_END code = Asm.AllocateMemory(hWnd,Asm.OpCodeSize(asm)) Asm.Write(hWnd,code,asm) --; .HOOK Asm.WriteJmp(hWnd,h,code,1) return hook end
War eine Englische seite also könnte auch gut sein, dass es nur richtig für englische Version ist!?
Wenn Mein post total panne ist und man damit nichts anfangen kann bitte wieder löschen! Is nur gut gemeint..!
Gruß bunny