Code: Select all
#event ResendTell "#1# tells you, '#2#'"
Sub Event_ResendTell (Line, TellFrom, Message)
|Sends the Tell to the Group Channel so the leader can see it
/gsay ${TellFrom} to ${Me}, '${Message}'
/return
I'm fairly new to MQ2, but I am not new to programming. I just spent 2 hours in the manual, and another hour looking over this forum... I cant figure out whats wrong with this.
Thanks in advance
-MK
Debug info follows:
Spew:
[MQ2]Macro - Starting macro with '/call Main'
[MQ2]Call - Calling subroutine Main with params
[MQ2]Echo - [MQ2] camping
First-chance exception at 0x03025c56 (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000018.
Call stack:
> MQ2Main.dll!Blech::Chew(BlechNode * pNode=0x016cfdd8, char * Input=0x0012aeb8) Line 888 C++
MQ2Main.dll!Blech::Feed(char * Input=0x0012aeb8) Line 444 + 0x1c C++
MQ2Main.dll!CheckChatForEvent(char * szMsg=) Line 672 C++
MQ2Main.dll!WriteChatColor(char * Line=, unsigned long Color=, unsigned long Filter=) Line 247 C++
MQ2Main.dll!Echo(EQData::_SPAWNINFO * pChar=, char * szLine=) Line 412 + 0x11 C++
MQ2Main.dll!HideDoCommand(EQData::_SPAWNINFO * pChar=, char * szLine=, int delayed=) Line 120 + 0x16 C++
MQ2Main.dll!DoNextCommand() Line 57 C++
MQ2Main.dll!Heartbeat() Line 296 + 0x5 C++
MQ2Main.dll!Detour_ProcessGameEvents() Line 311 C++
eqgame.exe!00496435()
Code where the crash occurred
Code: Select all
feedernomatch:
// NO MATCH
// continue walking tree
if (pNode->pNext)
{
// position remains the same
Peek();
pNode=pNode->pNext;
}
else
{
// Pos goes down a level - dont reprocess the same child
Pop();
while(1)
{
>> if (pNode->pNext)
{
pNode=pNode->pNext;
break;
}
if (PLP)
{
Pop();
}
else
{
pNode=0;
break;
}
}
}
CurrentPos.pNode=pNode;
}
return Count;Code: Select all
// Pos goes down a level - dont reprocess the same child
Pop();
03025C49 dec bl
03025C4B movzx edx,bl
03025C4E mov esi,dword ptr [esp+edx*8+30h]
03025C52 mov eax,dword ptr [esp+edx*8+34h]
while(1)
{
if (pNode->pNext)
>>>>03025C56 mov ecx,dword ptr [eax+18h]
03025C59 test ecx,ecx
03025C5B jne feedernomatch+47h (3025C78h)
03025C5D lea ecx,[ecx]
}
if (PLP)
03025C60 test bl,bl
03025C62 je feedernomatch+4Ch (3025C7Dh)
{
Pop();
03025C64 dec bl
03025C66 movzx eax,bl
03025C69 mov esi,dword ptr [esp+eax*8+30h]
03025C6D mov eax,dword ptr [esp+eax*8+34h]
03025C71 mov ecx,dword ptr [eax+18h]
03025C74 test ecx,ecx
03025C76 je feedernomatch+2Fh (3025C60h)
{
pNode=pNode->pNext;




