WarRock EU - Code Snippets

07/04/2012 00:10 Raz9r#7366
Quote:
Originally Posted by xxfabbelxx View Post
...
  1. Warum nicht mit [Only registered and activated users can see links. Click Here To Register...]?
  2. Deine Klasse ist 16 Byte groß - das sind 128 Bit. Windows unterstützt aber nur 32 Bit Farben.

Code:
class Color
{
private:
  union
  {
    struct
    {
      BYTE a, r, g, b;
    };
    DWORD argb;
  } color_;

public:
  Color(BYTE a, BYTE r, BYTE g, BYTE b)
  {
    color_.a = a;
    color_.r = r;
    color_.g = g;
    color_.b = b;
  }

  Color(BYTE r, BYTE g, BYTE b)
  {
    color_.a = 255;
    color_.r = r;
    color_.g = g;
    color_.b = b;
  }

  Color(DWORD argb)
  {
    color_.argb = argb;
  }

  inline BYTE &alpha()
  {
    return color_.a;
  }

  inline BYTE &red()
  {
    return color_.r;
  }

  inline BYTE &green()
  {
    return color_.g;
  }

  inline BYTE &blue()
  {
    return color_.b;
  }

  inline DWORD &value()
  {
    return color_.argb;
  }
};
07/04/2012 16:25 xxfabbelxx#7367
Quote:
Originally Posted by __underScore View Post
  1. Warum nicht mit [Only registered and activated users can see links. Click Here To Register...]?
  2. Deine Klasse ist 16 Byte groß - das sind 128 Bit. Windows unterstützt aber nur 32 Bit Farben.

Code:
class Color
{
private:
  union
  {
    struct
    {
      BYTE a, r, g, b;
    };
    DWORD argb;
  } color_;

public:
  Color(BYTE a, BYTE r, BYTE g, BYTE b)
  {
    color_.a = a;
    color_.r = r;
    color_.g = g;
    color_.b = b;
  }

  Color(BYTE r, BYTE g, BYTE b)
  {
    color_.a = 255;
    color_.r = r;
    color_.g = g;
    color_.b = b;
  }

  Color(DWORD argb)
  {
    color_.argb = argb;
  }

  inline BYTE &alpha()
  {
    return color_.a;
  }

  inline BYTE &red()
  {
    return color_.r;
  }

  inline BYTE &green()
  {
    return color_.g;
  }

  inline BYTE &blue()
  {
    return color_.b;
  }

  inline DWORD &value()
  {
    return color_.argb;
  }
};
because me noobsta.

Ich habe bis dato noch nicht mit unions gearbeitet. Muss mir das alles mal anschauen ...
07/04/2012 17:53 Raz9r#7368
Quote:
Originally Posted by xxfabbelxx View Post
because me noobsta.

Ich habe bis dato noch nicht mit unions gearbeitet. Muss mir das alles mal anschauen ...
Dann trotzdem: Warum 4x 32 Bit Integer, wenn jede der vier Komponenten einer 32 Bit-Farbe nur 8 Bit groß sein kann?
07/04/2012 19:42 bodhi12#7369
#request

Ai weapon source code ) ai everywehre (
07/04/2012 19:59 Fischii26#7370
Quote:
Originally Posted by bodhi12 View Post
#request

Ai weapon source code ) ai everywehre (
if (CH_UseAIWeaponsAnyWhere == 1)
{
*(int*)ADR_AIWeapon = 4;
}
}

Have u the right addy?

hast du denn die richtige addy?

€: #define ADR_AIWeapon 0x8F784C

Press THX when i helped u :)

Give Credits to iKito!
07/04/2012 20:29 bodhi12#7371
Quote:
Originally Posted by Fischii26 View Post
if (CH_UseAIWeaponsAnyWhere == 1)
{
*(int*)ADR_AIWeapon = 4;
}
}

Have u the right addy?

hast du denn die richtige addy?

€: #define ADR_AIWeapon 0x8F784C

Press THX when i helped u :)

Give Credits to iKito!
Doesn't work.
07/04/2012 20:40 Chown¡¡qhtz#7372
Quote:
Originally Posted by bodhi12 View Post
Doesn't work.
Code:
if (CH_UseAIWeaponsAnyWhere == 1)
{
*(int*)ADR_AIWeapon = 4;
}

#define ADR_AIWeapon 0x8F784C

Edit For Copy & Paster's With Weapon Check :

        if (CH_AIWeapon == 1)
{
        if ( (PlayerPointer+OFS_Weapon1) == 165 || (PlayerPointer+OFS_Weapon1) == 166 || (PlayerPointer+OFS_Weapon1) == 167)
        {
        *(int*)ADR_AIWeapon = 4;
        }
}

im not 100% sure if its work witth this i wrote it out of my head idk if numbers are right

Full Credits Go to iKito
if u  use it Credit him :)
07/04/2012 21:32 Fischii26#7373
Quote:
Originally Posted by bodhi12 View Post
Doesn't work.
Must work. For me works that.
07/05/2012 17:08 .BuBBLe#7374
Quote:
Originally Posted by Chown¡¡qhtz View Post
Code:
if (CH_UseAIWeaponsAnyWhere == 1)
{
*(int*)ADR_AIWeapon = 4;
}

#define ADR_AIWeapon 0x8F784C

Edit For Copy & Paster's With Weapon Check :

        if (CH_AIWeapon == 1)
{
        if ( (PlayerPointer+OFS_Weapon1) == 165 || (PlayerPointer+OFS_Weapon1) == 166 || (PlayerPointer+OFS_Weapon1) == 167)
        {
        *(int*)ADR_AIWeapon = 4;
        }
}

im not 100% sure if its work witth this i wrote it out of my head idk if numbers are right

Full Credits Go to iKito
if u  use it Credit him :)
Code:
CPU Disasm
Address   Hex dump                Command                                  Comments
0041E6CE  /$  833D 4C788F00 03    CMP DWORD PTR DS:[8F784C],3              ; WarRock-.0041E6CE(guessed Arg1)
So its

Code:
_asm
{
 MOV DWORD PTR DS:[ADR_WEAPON_RESTRICTIONS] ,3
}
Credits : BuBBLe
07/05/2012 17:35 +Yazzn#7375
Unfortunately, this sets the game channel to 3 which stands for the AI channel. Consequently you are able to use AI weapons in CQC, BG and UO.
07/05/2012 19:01 xBioK1ngz#7376
Always CrossHair

Code:
*(DWORD*)( 0xA3AD74 ) = ( *(DWORD*)( 0xA3AD78 ) / 2 );
By YaZZn aka Pornstar
07/05/2012 19:47 Hacker1377#7377
Hey Leute !

Suche Scrollbar Menu Source code !
07/06/2012 08:46 ~ExoduS~*#7378
brauche autoplant und autostart/ready für 32bit autostart ready bitte ohne laggs :(
07/06/2012 12:58 .BuBBLe#7379
#define ADR_SERVERNAME1 0x00A72324
#define ADR_SERVERNAME2 0x00A722D4

[Only registered and activated users can see links. Click Here To Register...]

Code:
DWORD dwServer = "BuBBLe is The BEST";

sprintf((CHAR*)ADR_SERVERNAME1,dwServer);
sprintf((CHAR*)ADR_SERVERNAME2,dwServer);
€dit : Fixxed some bugs!

Found by BuBBLe
07/06/2012 13:37 Instiinqzx3™#7380
Request:Tut wie man Warrock mit Cheat Engine öffnet und suchen kann.