Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 22:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Warrock - Code Snippets

Discussion on Warrock - Code Snippets within the WarRock forum part of the Shooter category.

Closed Thread
 
Old 02/19/2013, 14:10   #736
 
elite*gold: 0
Join Date: Aug 2011
Posts: 726
Received Thanks: 3,211
Quote:
Originally Posted by __underScore View Post
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
R3d_L!n3 is offline  
Old 02/19/2013, 14:36   #737
 
boknoy24's Avatar
 
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.
boknoy24 is offline  
Old 02/21/2013, 01:39   #738
 
boknoy24's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 119
Received Thanks: 45
Quote:
Originally Posted by boknoy24 View Post
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
boknoy24 is offline  
Old 02/21/2013, 14:21   #739
 
elite*gold: 20
Join Date: Sep 2012
Posts: 289
Received Thanks: 120
Quote:
Originally Posted by boknoy24 View Post
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!
iSkyLikeX is offline  
Old 02/21/2013, 19:17   #740
 
SonyRazzer's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 182
Received Thanks: 223
Quote:
Originally Posted by iSkyLikeX View Post
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 )
SonyRazzer is offline  
Old 02/21/2013, 19:31   #741



 
+Yazzn's Avatar
 
elite*gold: 420
Join Date: Jan 2012
Posts: 1,082
Received Thanks: 1,000
Code:
for (auto &player : wr_player_pool->remote_player)
+Yazzn is offline  
Old 02/21/2013, 19:43   #742
 
SonyRazzer's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 182
Received Thanks: 223
Quote:
Originally Posted by Yazzn (: View Post
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 .. ?
SonyRazzer is offline  
Old 02/21/2013, 19:48   #743
 
Raz9r's Avatar
 
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. :-)
Raz9r is offline  
Old 02/22/2013, 04:41   #744
 
boknoy24's Avatar
 
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.
boknoy24 is offline  
Old 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.
ignorehax is offline  
Old 02/26/2013, 18:59   #746
 
n4n033's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 726
Received Thanks: 1,128
Quote:
Originally Posted by ignorehax View Post
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));
}
n4n033 is offline  
Thanks
3 Users
Old 02/26/2013, 21:14   #747
 
~ExoduS~*'s Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 1,426
Received Thanks: 1,370
Arrow

Quote:
Originally Posted by n4n033 View Post
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
~ExoduS~* is offline  
Thanks
2 Users
Old 02/26/2013, 21:58   #748
 
elite*gold: 0
Join Date: Apr 2012
Posts: 594
Received Thanks: 810
Quote:
Originally Posted by ignorehax View Post
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.
GigaByte™ is offline  
Thanks
2 Users
Old 02/27/2013, 12:02   #749
 
n4n033's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 726
Received Thanks: 1,128
Quote:
Originally Posted by ~ExoduS~* View Post
but this methode crash and making partyprogramm too on 32bit system
not if you got a good detour
n4n033 is offline  
Old 02/27/2013, 13:27   #750
 
[N]oSoul's Avatar
 
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;
}
[N]oSoul is offline  
Thanks
1 User
Closed Thread


Similar Threads 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 +1. The time now is 22:11.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.