Or something like that, I have not been coding C++ ever but did code some C tools back in the dark ages on my Amiga500 :) And when I put some offset or such a bit off, the result is what Lax just got I belive
Moderator: MacroQuest Developers

Code: Select all
[MacroQuest]HookDInput - Patching
[MacroQuest]HookCommands - Patching
[MacroQuest]HookMapfile - Patching
[MacroQuest]HookDisplay - Patching
[MacroQuest]HookGameEvents - Patching
[MacroQuest]HookItemDisplay - Patching
[MacroQuest]TakeControlOfCommandList - Adding our commands
(3c0.46c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000063 ebx=01960663 ecx=01b5def0 edx=01b60000 esi=00000000 edi=01931403
eip=018e97fe esp=01b5dc70 ebp=01b5dc70 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010206
*** WARNING: Unable to verify checksum for C:\_Source\mq-2003-11-02-175050\Release\EQLib.dll
EQLib!_output+0x751:
018e97fe 8802 mov [edx],al ds:0023:01b60000=4d
0:004> r
eax=00000063 ebx=01960663 ecx=01b5def0 edx=01b60000 esi=00000000 edi=01931403
eip=018e97fe esp=01b5dc70 ebp=01b5dc70 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010206
EQLib!_output+0x751:
018e97fe 8802 mov [edx],al ds:0023:01b60000=4d
0:004> kv
ChildEBP RetAddr Args to Child
01b5dc70 018e9288 00000063 01b5def0 01b5dec4 EQLib!_output+0x751
01b5ded8 018e65be 01b5def0 01931403 01b5df20 EQLib!_output+0x1db
01b5df10 018e5a36 01b5fffe 01931400 00000000 EQLib!sprintf+0x2e
01b5df50 018e621c 01b5f7b4 01b5df6c 000007f3 EQLib!MQToSTML+0x5ba (CONV: cdecl) [EQLib_Utilities.cpp @ 1257]
01b5e76c 2f3c3e63 2f3c3e63 2f3c3e63 2f3c3e63 EQLib!Chat+0x7e (CONV: cdecl) [EQLib_Ui.cpp @ 242]
WARNING: Frame IP not in any known module. Following frames may be wrong.
2f3c3e63 00000000 00000000 00000000 00000000 0x2f3c3e63
Code: Select all
-- TakeControlOfCommandList() Entry
HookMemChecker - Patching
-- HookChat() Entry
HookChat - Patching
-- HookChat() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(x=)
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(Welcome to EverQuest!)
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(If you need help, click on the question mark ("?") on the Window Selector toolbar at the top of your screen.)
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(You have entered Halas.)
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(MESSAGE OF THE DAY: Greetings Norrath! In order to assist us with providing you better customer service, please ensure your e-mail address is current. To update your information, please visit www.station.sony.com and sign in by clicking the "My Account" link.)
-- CChatHook::Detour() Exit
-- HookDInput() Entry
Mouse and Keyboard have same GetDeviceData
Mouse and Keyboard have same GetDeviceState
Mouse and Keyboard have same Acquire
HookDInput - Patching
-- HookDInput() Exit
-- HookCommands() Entry
HookCommands - Patching
-- HookCommands() Exit
-- HookMapfile() Entry
HookMapfile - Patching
-- HookMapfile() Exit
-- HookDisplay() Entry
HookDisplay - Patching
-- HookDisplay() Exit
-- HookGameEvents() Entry
HookGameEvents - Patching
-- HookGameEvents() Exit
-- HookItemDisplay() Entry
HookItemDisplay - Patching
-- HookItemDisplay() Exit
TakeControlOfCommandList - Adding our commands
-- TakeControlOfCommandList() Exit
-- WriteChatBuffer() Entry
-- WriteChatColor() Entry
-- Chat(PCHAR,DWORD) Entry
-- MakeChatWindow() Entry
-- LoadChatFromINI() Entry
-- LoadChatFromINI() Exit
-- MakeChatWindow() Exit
-- MQToSTML() Entry
-- Detour_ProcessGameEvents() Exit
MQToSTML(MacroQuest is active.)
Code: Select all
CChatHook::Detour(x=)
Code: Select all
-- TakeControlOfCommandList() Entry
HookMemChecker - Patching
-- HookChat() Entry
HookChat - Patching
-- HookChat() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(Autojoining channels...)
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(Channels: 1=serverwide.clique(3))
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(Welcome to EverQuest!)
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(If you need help, click on the question mark ("?") on the Window Selector toolbar at the top of your screen.)
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(You have entered North Kaladim.)
-- CChatHook::Detour() Exit
-- CChatHook::Detour() Entry
CChatHook::Detour(MESSAGE OF THE DAY: Greetings Norrath! In order to assist us with providing you better customer service, please ensure your email address is current. To update your information, go to www.station.sony.com and sign in by clicking on the "My Account" link.)
-- CChatHook::Detour() Exit
-- HookDInput() Entry
Mouse and Keyboard have same GetDeviceData
Mouse and Keyboard have same GetDeviceState
Mouse and Keyboard have same Acquire
HookDInput - Patching
-- HookDInput() Exit
-- HookCommands() Entry
HookCommands - Patching
-- HookCommands() Exit
-- HookMapfile() Entry
HookMapfile - Patching
-- HookMapfile() Exit
-- HookDisplay() Entry
HookDisplay - Patching
-- HookDisplay() Exit
-- HookGameEvents() Entry
HookGameEvents - Patching
-- HookGameEvents() Exit
-- HookItemDisplay() Entry
HookItemDisplay - Patching
-- HookItemDisplay() Exit
TakeControlOfCommandList - Adding our commands
-- TakeControlOfCommandList() Exit
-- WriteChatBuffer() Entry
-- WriteChatColor() Entry
-- Chat(PCHAR,DWORD) Entry
-- MakeChatWindow() Entry
-- LoadChatFromINI() Entry
-- LoadChatFromINI() Exit
-- MakeChatWindow() Exit
-- MQToSTML() Entry
MQToSTML(MacroQuest is active.)
Code: Select all
0:004> r
eax=00000063 ebx=01960663 ecx=01b5deec edx=01b60000 esi=00000000 edi=01931097
eip=018e9dbe esp=01b5dc6c ebp=01b5dc6c iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010206
EQLib!_output+0x751:
018e9dbe 8802 mov [edx],al ds:0023:01b60000=4d
0:004> kv
ChildEBP RetAddr Args to Child
01b5dc6c 018e9848 00000063 01b5deec 01b5dec0 EQLib!_output+0x751
01b5ded4 018e6b7e 01b5deec 01931097 01b5df1c EQLib!_output+0x1db
01b5df0c 018e5df0 01b5fffe 01931094 00000000 EQLib!sprintf+0x2e
01b5df4c 018e673f 01b5f7b4 01b5df68 000007f2 EQLib!MQToSTML+0x5dd (CONV: cdecl) [EQLib_Utilities.cpp @ 1264]
01b5e76c 2f3c3e63 2f3c3e63 2f3c3e63 2f3c3e63 EQLib!Chat+0x132 (CONV: cdecl) [EQLib_Ui.cpp @ 264]
WARNING: Frame IP not in any known module. Following frames may be wrong.
2f3c3e63 00000000 00000000 00000000 00000000 0x2f3c3e63

Code: Select all
#define InsertStopColor(text) sprintf(text,"</c>");[color=red]TotalColors--;[/color]
for (TotalColors ; TotalColors>0 ; [color=red]TotalColors--[/color])
{
pchar_out_string_position+=InsertStopColor(&out[pchar_out_string_position]);
}