You last visited: Today at 13:51
Advertisement
Warrock - Code Snippets
Discussion on Warrock - Code Snippets within the WarRock forum part of the Shooter category.
02/19/2013, 14:10
#736
elite*gold: 0
Join Date: Aug 2011
Posts: 726
Received Thanks: 3,211
Quote:
Originally Posted by
__underScore
Yazzn is totally right as the given snippet does not say whether the variable i really is used for what you think it is.
Will dude i dont think he define 'I' as his index , cuz he already said he doesnt get his postion
02/19/2013, 14:36
#737
elite*gold: 0
Join Date: Nov 2007
Posts: 119
Received Thanks: 45
please help :/ . just my problem is when i saving the position then ON the opk in my 1st teammate are the position not mine.
02/21/2013, 01:39
#738
elite*gold: 0
Join Date: Nov 2007
Posts: 119
Received Thanks: 45
Quote:
Originally Posted by
boknoy24
please help :/ . just my problem is when i saving the position then ON the opk in my 1st teammate are the position not mine.
help please
. OPK that has saving position just like teleport
02/21/2013, 14:21
#739
elite*gold: 20
Join Date: Sep 2012
Posts: 289
Received Thanks: 120
Quote:
Originally Posted by
boknoy24
help please
. OPK that has saving position just like teleport
Code:
void MakeTeleport()
{
for(int i = 0; i < 32; i++)
{
cPlayer mPlayer = StructClass::getPlayer(i);
if(mPlayer != null)
{
mPlayer->X = PlayerPositionsX[i];
mPlayer->Y = PlayerPositionsY[i];
mPlayer->Z = PlayerPositionsZ[i];
}
}
SavePositions();
}
void SavePositions()
{
for(int i = 0; i < 32; i++)
{
cPlayer mPlayer = StructClass::getPlayer(i);
if(mPlayer != null)
{
PlayerPositionsX[i] = mPlayer->X;
PlayerPositionsY[i] = mPlayer->Y;
PlayerPositionsZ[i] = mPlayer->Z;
}
}
MakeTeleport();
}
Should Work Like this!
02/21/2013, 19:17
#740
elite*gold: 0
Join Date: Sep 2012
Posts: 182
Received Thanks: 223
Quote:
Originally Posted by
iSkyLikeX
Code:
void MakeTeleport()
{
for(int i = 0; i < 32; i++)
{
cPlayer mPlayer = StructClass::getPlayer(i);
if(mPlayer != null)
{
mPlayer->X = PlayerPositionsX[i];
mPlayer->Y = PlayerPositionsY[i];
mPlayer->Z = PlayerPositionsZ[i];
}
}
SavePositions();
}
void SavePositions()
{
for(int i = 0; i < 32; i++)
{
cPlayer mPlayer = StructClass::getPlayer(i);
if(mPlayer != null)
{
PlayerPositionsX[i] = mPlayer->X;
PlayerPositionsY[i] = mPlayer->Y;
PlayerPositionsZ[i] = mPlayer->Z;
}
}
MakeTeleport();
}
Should Work Like this!
for(int i = 0; i < 32; i++)
->
Code:
for ( INT PlayerSlot = 0; PlayerSlot < pLocalServer->MaxPlayers; ++ PlayerSlot )
02/21/2013, 19:31
#741
elite*gold: 420
Join Date: Jan 2012
Posts: 1,083
Received Thanks: 1,000
Code:
for (auto &player : wr_player_pool->remote_player)
02/21/2013, 19:43
#742
elite*gold: 0
Join Date: Sep 2012
Posts: 182
Received Thanks: 223
Quote:
Originally Posted by
Yazzn (:
Code:
for (auto &player : wr_player_pool->remote_player)
Trolololol, was kommt denn jetzt für Kranke scheiße ?
Kannst du mir das mal bitte erklären .. ?
02/21/2013, 19:48
#743
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
Ist doch seine Sache, wie er über ein Array iteriert. Wenn er gerne die erweiterte For-Schleife verwenden möchte, kann er das ja machen. :-)
02/22/2013, 04:41
#744
elite*gold: 0
Join Date: Nov 2007
Posts: 119
Received Thanks: 45
i got it anyone
thanks for helping
EDIT: btw i got prob here
unlike this on zombie mode.
not in one place. they are spread in first pic.
i using saving position opk.
02/26/2013, 16:07
#745
elite*gold: 0
Join Date: Sep 2012
Posts: 35
Received Thanks: 0
Hey, I would like to ask for a source to speedhack, because I do not know why the Mem does not work anymore.
02/26/2013, 18:59
#746
elite*gold: 0
Join Date: Apr 2010
Posts: 726
Received Thanks: 1,128
Quote:
Originally Posted by
ignorehax
Hey, I would like to ask for a source to speedhack, because I do not know why the Mem does not work anymore.
you need to use UnknownPK Unpatch method to get it working back.
Code:
VOID xWriteMemory(PVOID dwAdress,VOID* dwValue,INT dwBytes)
{
DWORD dwProtect,dwProtected;
VirtualProtect(dwAdress,dwBytes,PAGE_EXECUTE_READWRITE,&dwProtect);
memcpy(dwAdress,dwValue,dwBytes);
VirtualProtect(dwAdress,dwBytes,dwProtect,&dwProtected);
}
template <typename T>void WriteMEM(void* adr,T Vaule,T *Input = NULL)
{
if(Input == 0)
xWriteMemory((void*)adr,(void*)&Vaule,sizeof(T));
else
xWriteMemory((void*)Input,(void*)adr,sizeof(T));
}
02/26/2013, 21:14
#747
elite*gold: 0
Join Date: Jul 2012
Posts: 1,426
Received Thanks: 1,370
Quote:
Originally Posted by
n4n033
you need to use UnknownPK Unpatch method to get it working back.
Code:
VOID xWriteMemory(PVOID dwAdress,VOID* dwValue,INT dwBytes)
{
DWORD dwProtect,dwProtected;
VirtualProtect(dwAdress,dwBytes,PAGE_EXECUTE_READWRITE,&dwProtect);
memcpy(dwAdress,dwValue,dwBytes);
VirtualProtect(dwAdress,dwBytes,dwProtect,&dwProtected);
}
template <typename T>void WriteMEM(void* adr,T Vaule,T *Input = NULL)
{
if(Input == 0)
xWriteMemory((void*)adr,(void*)&Vaule,sizeof(T));
else
xWriteMemory((void*)Input,(void*)adr,sizeof(T));
}
but this methode crash and making partyprogramm too on 32bit system
02/26/2013, 21:58
#748
elite*gold: 0
Join Date: Apr 2012
Posts: 594
Received Thanks: 810
Quote:
Originally Posted by
ignorehax
Hey, I would like to ask for a source to speedhack, because I do not know why the Mem does not work anymore.
WR made an update like half a year ago blocking code that changes "raw" memory... UnknownPK made what N4N033 posted, public, allowing almost everyone to use it... by that many other people just made their own code out of that (since there's not only one way for making things).
I think speed can be made with its offset and you shouldn't have problems.
02/27/2013, 12:02
#749
elite*gold: 0
Join Date: Apr 2010
Posts: 726
Received Thanks: 1,128
Quote:
Originally Posted by
~ExoduS~*
but this methode crash and making partyprogramm too on 32bit system
not if you got a good detour
02/27/2013, 13:27
#750
elite*gold: 0
Join Date: Nov 2012
Posts: 109
Received Thanks: 142
fk all
Health Bar
Credits to : MaxyLopez98
Quote:
if( cEsp.FZ_HEALTHBAR== 1 )
{
char szhealth[100];
int Red1,Green1;
Red1 = 255-((GetGlobalInfo(MaxPlayer)->HEALTH/10)*2.55);
Green1 = (GetGlobalInfo(MaxPlayer)->HEALTH/10)*2.55;
DrawBox((int)EspView.x-80, (int)EspView.y-115, 100, 5,D3DCOLOR_ARGB( 255 ,20, 20, 20),pDevice);
DrawBox((int)EspView.x-80, (int)EspView.y-115, GetGlobalInfo(MaxPlayer)->HEALTH/10, 5,D3DCOLOR_ARGB( 255, Red1, Green1, 0),pDevice);
DrawRectangle((int)EspView.x-80, (int)EspView.y-115,100, 5, 1,LightBlue,pDevice);
sprintf(szhealth,"%d HP\n ",(int)GetGlobalInfo(MaxPlayer)->HEALTH/100);
Frenz->DrawTextC((int)EspView.x-100, (int)EspView.y-120,D3DCOLOR_ARGB(255,000,191,255), szhealth, pFont);
EspView.y += 14;
}
Similar Threads
WarRock EU - Code Snippets
07/12/2012 - WarRock - 7490 Replies
Hi Leute,
in diesem Thread könnt ihr:
-> Nach Sourcecodes fragen(Beispiel unten)
-> Eure Sourcecodes posten(Wenn sie nicht von euch sind mit Credits!)
-> Fragen ob eure Source evtl. einen Fehler hat
-> Fragen was welcher Fehler bedeuted
-> Sourcecodes entnehmen(Bitte beim Release dann Credits angeben!)
All times are GMT +2. The time now is 13:52 .