Guild Logo.cpp
Guild Logo.h
Offsets.h
#include "stdafx.h"
CGuildLogo gGuildLogo;
CGuildLogo::CGuildLogo()
{
}
CGuildLogo::~CGuildLogo()
{
}
void CGuildLogo::Init()
{
SetCompleteHook(0xE8, 0x004B8B6B, &this->DrawGuildLogo); // Sistema de Hook
}
void CGuildLogo:rawGuildLogo(int x, int y, DWORD c)
{
DWORD character = *(DWORD*)(c + 564); //Obter a Estrutura do Personagem
if (*(BYTE*)(character + 0x84) == 1) //Verifique o tipo de character
{
if (*(short*)(character + 0x1DA) != -1) // Verificar a Guild dos Personagens
{
CreateGuildMark(*(WORD*)(character + 0x1DA), true); // Criar Marca da Guild
RenderBitmap(0x22, ((float)x - 21.0f), (float)y, 16.0f, 16.0f, 0.0f, 0.0f, 1.0f, 1.0f, true, true); // Renderizar bitmap
}
}
RenderBoolean(x, y, c); //Renderizar Boolean
}
Guild Logo.h
#pragma once
class CGuildLogo
{
public:
CGuildLogo();
~CGuildLogo();
void Init();
static void DrawGuildLogo(int a1, int a2, DWORD a3);
};
extern CGuildLogo gGuildLogo;
Offsets.h
// GUild LOGO Ok!
#define RenderBoolean ((void(__cdecl*)(int x, int y, DWORD c)) 0x47EBA0) //
#define CreateGuildMark ((void(__cdecl*)(int nMarkIndex, bool blend)) 0x4EBAD0) //
#define RenderBitmap ((void(__cdecl*)(int Texture, float x, float y, float Width, float Height, float u, float v, float uWidth, float vHeight, bool Scale, bool StartScale)) 0x50D4B0) //