re: [Release] Change glow color? Piece of cake =)
Gembrid, are you can relase glow.gld reader?
re: [Release] Change glow color? Piece of cake =)
Quote:
Originally Posted by
mauro07
mmm... not shared by: Gembrid the glow source code?, really? and then, what the hell is this?:
.cpp file:
Code:
void __cdecl Glow(DWORD dwItemId, DWORD uk1, DWORD uk2, FRGB& cl, BYTE bUkn)
{
switch(dwItemId)
{
//Crystal Breaker
case 0x35F:
cl.r = 0.2291f; cl.g = 0.2291f; cl.b = 0.79f;
break;
//Scarlet Dragon Sword
case 0x365:
cl.r = 0.79f; cl.g = 0.2291f; cl.b = 0.2291f;
break;
//Imperial Shield
case 0xF58:
cl.r = 0.98f; cl.g = 0.98f; cl.b = 0.98f;
break;
//Scarlet Dragon Set
case 0x1178: case 0x1378: case 0x1578: case 0x1778: case 0x1978:
cl.r = 0.79f; cl.g = 0.2291f; cl.b = 0.2291f;
break;
//Other items
default:
originalGlow(dwItemId, uk1, uk2, cl, bUkn);
break;
}
}
void InitGlowFunc()
{
//Glow Functions
ToolKit.HookOffset((DWORD)&Glow,0x004F9B1B,0xE8);//1.03.11 Jpn
ToolKit.HookOffset((DWORD)&Glow,0x005CD032,0xE8);//1.03.11 Jpn
}
extern "C" _declspec(dllexport) void Init()
{
DWORD OldProtect;
if(VirtualProtect(LPVOID(0x401000),0x00875FFF,PAGE_EXECUTE_READWRITE,&OldProtect))
{
InitGlowFunc();
}
else
{
MessageBoxA(NULL,"Cannot load YourDLLName.dll","Error",MB_OK);
ExitProcess(0);
}
}
Code:
#include <gl\gl.h>
#include <gl\glu.h>
#include <gl\glut.h>
#include "glaux.h"
struct FRGB
{
float r, g, b;
};
typedef int(*ToriginalGlow)(DWORD, DWORD, DWORD, FRGB&, BYTE);
ToriginalGlow originalGlow = (ToriginalGlow)0x005C2744;//1.03.11 Jpn
void InitGlowFunc();
PS: Please ignore my cases of switch, because are for my added custom items in my server test, if you need add your own custom items of glow color switch() cases you must be calc: ObjectId for every custom item.
ObjectId calc: Type * MaxIndex + ItemIndex + ItemOffsetInArray (in my case is: 0x342).
Ex: 0 * 512 + 19 + 834 (that is: 342, but in: decimal) = Divine Sword of Archangel ObjectId.
Screen of tests:
http://i.imgur.com/rYfYE58.jpg
http://i.imgur.com/LvrIZqZ.jpg
http://i.imgur.com/5TYsTnD.jpg
PS 2: For 4FUNer ->You are a noob! :O:
@mauro07,
any idea how to find this 3 offsets for gmo 1.04d?
re: [Release] Change glow color? Piece of cake =)
typedef int(*ToriginalGlow)(DWORD, DWORD, DWORD, FRGB&, BYTE);
ToriginalGlow originalGlow = (ToriginalGlow)0x005F8C50;//1.04D GMO
//Glow Functions Call
HookOffset((DWORD)&Glow,0x0057AC07,0xE8);//1.04D GMO
HookOffset((DWORD)&Glow,0x006083B9,0xE8);//1.04D GMO
#define ITEM_ID(x,y) (x*512+y)+0x493
re: [Release] Change glow color? Piece of cake =)
Please offsets for 97d+99i....
re: [Release] Change glow color? Piece of cake =)
Quote:
Originally Posted by
MaaaX
typedef int(*ToriginalGlow)(DWORD, DWORD, DWORD, FRGB&, BYTE);
ToriginalGlow originalGlow = (ToriginalGlow)0x005F8C50;//1.04D GMO
//Glow Functions Call
HookOffset((DWORD)&Glow,0x0057AC07,0xE8);//1.04D GMO
HookOffset((DWORD)&Glow,0x006083B9,0xE8);//1.04D GMO
#define ITEM_ID(x,y) (x*512+y)+0x493
i think this offset 0x0057AC07 is not ok...
i have no custom glow effect for 1.04D GMO...
re: [Release] Change glow color? Piece of cake =)
I use this offset and works. To find offsets i use Gembrid guide.
http://s4.ifotos.pl/mini/Screen072_nnqshra.jpg
Glow.cpp
Code:
#include "headers.h"
#include "utility.h"
#include "Glow.h"
struct FRGB
{
float r, g, b;
};
typedef int(*ToriginalGlow)(DWORD, DWORD, DWORD, FRGB&, BYTE);
ToriginalGlow originalGlow = (ToriginalGlow)0x005F8C50;//1.04D GMO
void __cdecl Glow(DWORD dwItemId, DWORD uk1, DWORD uk2, FRGB& cl, BYTE bUkn)
{
switch(dwItemId)
{
//Dragon Knight Set
case ITEM_ID(7,29):
cl.r = 0.00f;
cl.g = 0.50f;
cl.b = 1.00f;
break;
case ITEM_ID(8,29):
cl.r = 0.00f;
cl.g = 0.50f;
cl.b = 1.00f;
break;
case ITEM_ID(9,29):
cl.r = 0.00f;
cl.g = 0.50f;
cl.b = 1.00f;
break;
case ITEM_ID(10,29):
cl.r = 0.00f;
cl.g = 0.50f;
cl.b = 1.00f;
break;
case ITEM_ID(11,29):
cl.r = 0.00f;
cl.g = 0.50f;
cl.b = 1.00f;
break;
//brave set
case ITEM_ID(7,46):
cl.r = 0.95f;
cl.g = 0.4275f;
cl.b = 0.5755f;
break;
case ITEM_ID(8,46):
cl.r = 0.95f;
cl.g = 0.4275f;
cl.b = 0.5755f;
break;
case ITEM_ID(9,46):
cl.r = 0.95f;
cl.g = 0.4275f;
cl.b = 0.5755f;
break;
case ITEM_ID(10,46):
cl.r = 0.95f;
cl.g = 0.4275f;
cl.b = 0.5755f;
break;
case ITEM_ID(11,46):
cl.r = 0.95f;
cl.g = 0.4275f;
cl.b = 0.5755f;
break;
default:
originalGlow(dwItemId, uk1, uk2, cl, bUkn);
break;
}
}
void InitGlowFunc()
{
//Glow Functions calls
HookOffset((DWORD)&Glow,0x0057AC07,0xE8);//1.04D GMO
HookOffset((DWORD)&Glow,0x006083B9,0xE8);//1.04D GMO
}
glow.h
Code:
#pragma once
#define ITEM_ID(x,y) (x*512+y)+0x493
void InitGlowFunc();
re: [Release] Change glow color? Piece of cake =)
Could someone post a link to the newest way to change glow color for me plz and thanks?
re: [Release] Change glow color? Piece of cake =)
re: [Release] Change glow color? Piece of cake =)
re: [Release] Change glow color? Piece of cake =)
Quote:
Originally Posted by
Wikko0
Can u release glow.dll for 1.0L client?
This for you:
off: 0x1F9
call1: 0x004F77CF
call2: 0x005DEA45
1.00L CHS Client
re: [Release] Change glow color? Piece of cake =)
Quote:
Originally Posted by
saintus
Did you patch the dll? Did you find the calls and the offset?
14 in hex is "E" , so if you make 285+E=293, use the Windows calculator and switch to scientific.
i used calkulator with our topic and
http://www.iv.pl/images/31692220687210078438.jpg
Please, let someone, write how to compute it, I'm new please help, I do not understand
re: [Release] Change glow color? Piece of cake =)
re: [Release] Change glow color? Piece of cake =)
I am ready to pay for teach me
re: [Release] Change glow color? Piece of cake =)
Quote:
Originally Posted by
Wikko0
Offsets of 1.02c main ? Tnx
research yourself.
re: [Release] Change glow color? Piece of cake =)
Check this
Item offset 0x246
Calls: 0x0052EFB5 0x00679486