Can you help me to discover these variants to update the code?
my program OLLYDBG or does not work in my PC, or to be crazy and does not want to work .........
thx and sorry my poor lenguage i am no native
PHP Code:
//uses a bag item in-game
void UseBagItem(int SlotIndex)
{
int Function_Addr = pBag_UseItem;
__asm
{
mov eax, 0x00000000
mov ecx, 0x010C1570
mov edx, 0x0A7C73D0 //diff
mov ebx, SlotIndex //slot number
mov esi, 0x0B8CE790 //diff
mov edi, 0x010C89E0
push 1
push SlotIndex //slot number
push 0 //Something, but idk what
call [Function_Addr]
}
}
PHP Code:
//Travels to point in game, can go to another map
void MapAutoRoute(int MapID, float X, float Y)
{
float X_Map_Coord = X * (float)(25.0/16.0);
float Y_Map_Coord = Y * (float)(25.0/16.0);
int Function_Addr = pMap_AutoRoute;
__asm
{
//magic stuff
mov eax, 0x00E555F8
mov ecx, 0x00E555F8
mov edx, 0x00000000 //huh?
mov ebx, 0x00000078 //changes, but dont know why
//96 = 150,160
//AA = 170,160
//B4 = 180,160
//96 = 180,150
//A0 = 180,160
mov esi, 0x010B1048
mov edi, 0x010B0B18
push Y_Map_Coord
Push X_Map_Coord //float Y Coord
Push MapID //Map Id
Call [Function_Addr]
}
}