• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Fix for new anti-warp/gate/fade in 4/10/06 code.

z166204

Member
Joined
Nov 16, 2005
RedCents
20¢
With the latest release from the macroquest devs they have added some additional anti warp/gate/fade which needs to be removed if you wish to use the specific commands:
/warp
/gate
/fade

If you wish to just rename your /commands for these functions you can bypass this code change entirly.

In MQ2Main\MQ2Commands.cpp add the comment marks below as noted.

Rich (BB code):
VOID PluginCmdSort(VOID)
{
/*
    PMQCOMMAND pCmd=pCommands;
    int i;
    while(pCmd) {
        if (pCmd->EQ==0) {
            //
            for(i=0;i<sizeof(keyarray)/4;i+=4) {
                if (!stricmp(pCmd->Command, (char *)&keyarray)) {
	            pCmd->Function=CmdCmd;
                }
            }
        }
        pCmd=pCmd->pNext;
    }
*/
}
 
The code right above it is :

Rich (BB code):
int keyarray[] = {
0x6e6f7a2f, 0x65, 0x0, 0x0, 
0x7461672f, 0x65, 0x0, 0x0, 
0x6461662f, 0x65, 0x0, 0x0, 
0x6e69662f, 0x74617064, 0x68, 0x0, 
0x7261772f, 0x70, 0x0, 0x0, 
0x0, 0x0, 0x0, 0x0,
};

Use ASCII Table and keep in mind that this is read in HEX.....

So 6e6f7a2f + 0x65 = /zone
7461672f + 0x65 = /gate
6461662f + 0x65 = /fade
6e69662f + 0x74617064 + 0x68 = /findpath
7261772f + 0x70 = /warp
 
Czarman said:
The code right above it is :

Rich (BB code):
int keyarray[] = {
0x6e6f7a2f, 0x65, 0x0, 0x0, 
0x7461672f, 0x65, 0x0, 0x0, 
0x6461662f, 0x65, 0x0, 0x0, 
0x6e69662f, 0x74617064, 0x68, 0x0, 
0x7261772f, 0x70, 0x0, 0x0, 
0x0, 0x0, 0x0, 0x0,
};

Use ASCII Table and keep in mind that this is read in HEX.....

So 6e6f7a2f + 0x65 = /zone
7461672f + 0x65 = /gate
6461662f + 0x65 = /fade
6e69662f + 0x74617064 + 0x68 = /findpath
7261772f + 0x70 = /warp


that is some friggin great info .. great job czar

army
 
It's part of MQ2Piggyzone, it finds the path of zones you'd have to go through when chainzoning.

BTW, good work, z166204, red cent for you.

*edit*

Things like these are the reason that I *wait* to update my MQ2 code...
 
armysoldier said:
that is some friggin great info .. great job czar

army

Really was Z that pointed it out, and made the awesome find, took me about 20 minutes to realize how they actually did it.
 
z166204 said:
With the latest release from the macroquest devs they have added some additional anti warp/gate/fade which needs to be removed if you wish to use the specific commands:
/warp
/gate
/fade

If you wish to just rename your /commands for these functions you can bypass this code change entirly.

In MQ2Main\MQ2Commands.cpp add the comment marks below as noted.

Rich (BB code):
VOID PluginCmdSort(VOID)
{
/*
    PMQCOMMAND pCmd=pCommands;
    int i;
    while(pCmd) {
        if (pCmd->EQ==0) {
            //
            for(i=0;i<sizeof(keyarray)/4;i+=4) {
                if (!stricmp(pCmd->Command, (char *)&keyarray)) {
	            pCmd->Function=CmdCmd;
                }
            }
        }
        pCmd=pCmd->pNext;
    }
*/
}


great job Z finding it ..

Great job Czar explaining it

8-)


ARMY
 
Fix for new anti-warp/gate/fade in 4/10/06 code.

Users who are viewing this thread

Back
Top
Cart