Newbie Spellweaver
- Joined
- Jan 9, 2018
- Messages
- 30
- Reaction score
- 24
Guild Logo Name Player - Season 3 1.04j
CustomIconView.h
CustomIconView.cpp
Main.cpp
Adentro de -> extern "C" _declspec(dllexport) void EntryProc()
Credits:
kayito
CustomIconView.h
Code:
[COLOR=#7F7F7F]#pragma once[/COLOR]
[COLOR=#7F7F7F]void InitIconsView();[/COLOR]
[COLOR=#7F7F7F]void DrawIcons(int x, int y, DWORD a3);[/COLOR]
CustomIconView.cpp
Code:
[COLOR=#7F7F7F]#include "stdafx.h"[/COLOR]
[COLOR=#7F7F7F]#include "CustomIconView.h"[/COLOR]
[COLOR=#7F7F7F]#include "Util.h"[/COLOR]
[COLOR=#7F7F7F]void InitIconsView()[/COLOR]
[COLOR=#7F7F7F]{[/COLOR]
[COLOR=#7F7F7F] SetCompleteHook(0xE8, 0x0059F307, &DrawIcons);[/COLOR]
[COLOR=#7F7F7F]}[/COLOR]
[COLOR=#7F7F7F]void DrawIcons(int x, int y, DWORD c)[/COLOR]
[COLOR=#7F7F7F]{[/COLOR]
[COLOR=#7F7F7F] DWORD character = *(DWORD*)(c + 628); //Get Character Struct[/COLOR]
[COLOR=#7F7F7F] if (*(BYTE*)(character + 188) == 1) //Check Character Type[/COLOR]
[COLOR=#7F7F7F] {[/COLOR]
[COLOR=#7F7F7F] if (*(short*)(character + 554) != -1) //Check Character Guild[/COLOR]
[COLOR=#7F7F7F] {[/COLOR]
[COLOR=#7F7F7F] ((void(__cdecl*)(int nMarkIndex, bool blend)) 0x005FA170)(*(WORD*)(character + 554), true); //CreateGuildMark[/COLOR]
[COLOR=#7F7F7F] ((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[/COLOR]
[COLOR=#7F7F7F] }[/COLOR]
[COLOR=#7F7F7F] }[/COLOR]
[COLOR=#7F7F7F] ((void(__cdecl*)(int x, int y, DWORD c)) 0x0053F870)(x, y, c); //RenderBoolean[/COLOR]
[COLOR=#7F7F7F]}[/COLOR]
Main.cpp
Code:
[COLOR=#7F7F7F]#[/COLOR][COLOR=#7F7F7F]include[/COLOR][COLOR=#7F7F7F]"CustomIconView.h"[/COLOR]
Adentro de -> extern "C" _declspec(dllexport) void EntryProc()
Code:
[COLOR=#BABABA]InitIconsView();[/COLOR]
Credits:
kayito
Attachments
You must be registered for see attachments list
Last edited by a moderator: