[Dev] SOURCE DO GUILD LOGO 97D - TESTADA NA SOURCE FIRE TEAM STARK

giannhsg

Banned
Joined
Sep 5, 2021
Messages
23
Reaction score
7
Guild Logo.cpp

#include "stdafx.h"


CGuildLogo gGuildLogo;


CGuildLogo::CGuildLogo()
{


}


CGuildLogo::~CGuildLogo()
{


}


void CGuildLogo::Init()
{
SetCompleteHook(0xE8, 0x004B8B6B, &this->DrawGuildLogo); // Sistema de Hook
}


void CGuildLogo::DrawGuildLogo(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) //