Tutorial de uma forma mais organizada aos membros. (Para os que não tem o Custom Font)
Primeiramente - SRC Main.dll
Protect.h:
Noticie.h:
Código:
void InitNotices();
CustomNoticie.cpp:
Código:
#include "stdafx.h"
#include "Notice.h"
#include "Tmemory.h"
//#include "CustomFont.h"
#include "CustomMessage.h"
#include "Interface.h"
#include "Defines.h"
DWORD Test_Buff;
char Test_LevelBuff[40];
Naked(Notices)
{
int PosX;
PosX = 470;
pDrawGUI(0x9969, (float)455 , (float)70 - 47, 173, 407);
pDrawGUI(0x9969, (float)455 , (float)70 - 47, 173, 406);
// -- Titulo das menssagens
//,505,54,250,1,
//gInterface.DrawFormat(eGold,505,50,0,0, "Noticias - AGC Hosting");
gInterface.DrawFormat(eWhite240,500,80,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eShinyGreen,500,90,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eShinyGreen100,500,100,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGold,500,110,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGold150,500,120,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGold180,500,130,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eWhite,500,140,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eWhite150,500,150,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eWhite180,500,160,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eOrange,500,170,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGray100,500,180,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGray150,500,190,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGray190,500,200,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eBlowPink,500,210,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eRed,500,220,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eRed2,500,230,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eExcellent,500,240,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eAncient,500,250,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eSocket,500,260,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eBlue,500,270,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eBlue250,500,280,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eYellow,500,290,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eYellow170,500,300,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eBrown,500,310,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eDivine,500,320,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eWhite240,500,330,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eShinyGreen,500,340,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eShinyGreen100,500,350,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGold,500,360,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGold150,500,370,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eGold180,500,380,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eWhite,500,390,250,1,"pao now cool dy kenta leno");
gInterface.DrawFormat(eWhite150,500,400,250,1,"pao now cool dy kenta leno");
// -- Inicio Menssagens
_asm
{
lea eax, Test_LevelBuff
push eax
// // ----
}
_asm
{
mov Test_Buff, 0x004D7D1D
jmp Test_Buff
}
}
void InitNotices()
{
SetRange((PVOID)0x004D7DAD, 0x0f, ASM::NOP);
SetOp((LPVOID)0x004D7D13, (LPVOID)Notices, ASM::JMP);
}
Main.cpp:
Código:
if(gProtect.m_MainInfo.Noticie == 1)
{
InitNotices();
}
Interface.cpp:
Código:
pLoadImage("Custom\\Noticias.jpg", 0x9969, 0x2601, 0x2900, 1, 0);
Agora, SRC GetMainInfo
Abra, GetMainInfo.cpp.
Dentro da struct MAIN_FILE_INFO
adicione, DWORD Noticie;
agora, abaixo de
Código:
info.RFMaxAttackSpeed
adicione
Código:
nfo.Noticie = GetPrivateProfileInt("Noticie","Noticie",0,".\\MainInfo.ini");
agora em, Maininfo.ini, adicione uma linha
[Noticie]
//-- 0: Disable
//-- 1: Enable
Noticie = 1
Informação
| Para adicionar as msg pelo CustomMenssage.txt é fácil, pegue uma linha do código qualquer de texto "gInterface.DrawFormat(eGray100,500,180,250,1,"pao now cool dy kenta leno");" mude "pao now cool dy kenta leno" por -) , gCustomMessage.GetMessage(69)); -> Onde está 69, substitua pelo id da Msg | |