Code:
#include "stdafx.h"
#include "CustomIconView.h"
#include "Util.h"
void InitIconsView()
{
SetCompleteHook(0xE8, 0x0059F307, &DrawIcons);
}
void DrawIcons(int x, int y, DWORD c)
{
DWORD character = *(DWORD*)(c + 628); //Get Character Struct
if (*(BYTE*)(character + 188) == 1) //Check Character Type
{
if (*(short*)(character + 554) != -1) //Check Character Guild
{
((void(__cdecl*)(int nMarkIndex, bool blend)) 0x005FA170)(*(WORD*)(character + 554), true); //CreateGuildMark
((void(__cdecl*)(int Texture, float x, float y, float Width, float Height, float u, float v, float uWidth, float vHeight, bool Scale, bool StartScale, float Alpha)) 0x006438B4)(0x22, ((float)x - 21.0f), (float)y, 16.0f, 16.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1, 1, 0); //RenderBitmap
}
}
((void(__cdecl*)(int x, int y, DWORD c)) 0x0053F870)(x, y, c); //RenderBoolean
}