View Full Version : Whats wrong in this sj and swim code?
Aprill27
01-10-2008, 07:16 AM
Uhh i added many many features with the WritePointerFloat function like NFD walk throu waals and stuff.Ewrything worked exept the superjump and swim can someone tell whats wron here?? TY
Sj code(I buted that to boton .in the timer it worked well as skystormer i used same code only the hotkey was other)
if (GetKeyState(VK_NUMPAD1) &1)
{
WritePointerFloat (0x12C8520,0x178, 1500)
}
Swim(i tryed both...the botton and the timer)
WritePointerFloat(0x12A8560, 0x276, 4);
So can someone tell whats wrong with thoas codes because i didnt find anything wrong and i didnt get any error but in game thoas didnt work :(
Bigxxx
01-10-2008, 07:31 AM
if (GetKeyState(VK_CONTROL) &1)
{
WritePointerFloat (0x12C8520,0x178, 1500)
}
Use control or something to test it ;)
Then in a timer with that all :P
I made it like theese:
{
if (GetAsyncKeyState(VK_CONTROL)&1<< 0xF)
WritePointerFloat (0x12A8560, 0x178 , 1500);
else
WriteALong (0xD1C2CC,0);
}
Gellin
01-10-2008, 08:02 AM
If your doing timers then...
case FRISTTIMER:
if ((GetKeyState(VK_CONTROL) <0) && (GetKeyState(VK_SPACE) <1)
{
ChangePointerFloat(ADDIE, OFFSET, VALUE);
}
break;
And then
void ChangePointerFloat(long addy, short offset, float value)
{
long maddy;
long saddy;
memory();
ReadProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &maddy, sizeof(maddy), NULL);
saddy = maddy + offset;
WriteProcessMemory(hProcess, (LPVOID*)(DWORD) saddy, &value, sizeof(value), NULL);
}
edit your strings as well
R3bel19
01-10-2008, 08:39 AM
Its postet on the side, search a bit.
R3bel19
Aprill27
01-10-2008, 09:22 AM
Its postet on the side, search a bit.
R3bel19
Uhh i searched but i didnt find anything:(
wr194t
01-10-2008, 10:11 AM
Copy & paste your original WritePointerFloat function code, rename it to WritePointerLong, paste it under your the one you just copied, and change float value to long value:
void WritePointerLong(long addy, short offset, Long value)
{
long maddy;
long saddy;
memory();
ReadProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &maddy, sizeof(maddy), NULL);
saddy = maddy + offset;
WriteProcessMemory(hProcess, (LPVOID*)(DWORD) saddy, &value, sizeof(value), NULL);
}
Long value = Swim and Weapons
Float value = NFD, Super Jump/Sky Stormer/Underground
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.