TeachersPet
Well-known member
- Joined
- Jul 27, 2005
- RedCents
- 71¢
MQ2SuperStacker essentially allows you to stack up to five million items instead of the regular 20. It updates your stack limits on every Pulse (anytime something happens in EQ essentially) so you should be fine macroing.
Read the Plugin Comments for more information regarding inspiration and proper useage of the plugin.
Updated 7/27/06
- You no longer have to /setstacklimits, I just put the calls in OnPulse
- Also attatched a new DLL
Updated 11/2/06
- Fixed bug where some items wouldn't change their StackSize causing crashing issues
Updated 1/04/07
- Updated source to work without ItemInfo->Stackable (Thought I did a LONG time ago). DLL is also updated.
- Also fixed it to work for items that have a stacksize naturally less than 20.
Updated 1/17/07
- Updated DLL
Read the Plugin Comments for more information regarding inspiration and proper useage of the plugin.
Updated 7/27/06
- You no longer have to /setstacklimits, I just put the calls in OnPulse
- Also attatched a new DLL
Updated 11/2/06
- Fixed bug where some items wouldn't change their StackSize causing crashing issues
Updated 1/04/07
- Updated source to work without ItemInfo->Stackable (Thought I did a LONG time ago). DLL is also updated.
- Also fixed it to work for items that have a stacksize naturally less than 20.
Updated 1/17/07
- Updated DLL
Rich (BB code):
/*
MQ2SuperStacker
By: TeachersPet
Credit to WickedMofo of MMOBugs for initially creating a similar
plugin and giving me the idea. Other than that though, this is an
original work and any claims otherwise are false. At best I blatantly
stole code from MacroQuest2's {Me.FreeInventory} TLO.
This Plugin was created specifically for RedGuides users only
P.S. So help me god TurkReno if you jack so much as a line of my code, I'll
have my boot so fucking far up your ass it will take two away teams and a
brilliant modification of the Warp Drive by Geordi LaForge to unwedge it.
*/
#include "../MQ2Plugin.h"
PreSetup("MQ2SuperStacker");
VOID SetStackLimits() {
for(DWORD slot = 22; slot < 30; slot++) {
if(PCONTENTS pItem = GetCharInfo2()->InventoryArray[slot]) {
if(pItem->Item->Type == ITEMTYPE_PACK) {
int i = 0;
while(i < pItem->Item->Slots) {
if(pItem->Contents) {
if(pItem->Contents->Item->StackSize > 1)
pItem->Contents->Item->StackSize = 5000000;
}
i++;
}
} else {
if(pItem) {
if(pItem->Item->StackSize > 1)
pItem->Item->StackSize = 5000000;
}
}
}
}
}
VOID CursorStackLimits() {
PCONTENTS pCursor = GetCharInfo2()->Cursor;
if(pCursor) {
if((pCursor->Item->StackSize > 1) && (pCursor->Item->StackSize != 5000000)) {
pCursor->Item->StackSize = 5000000;
}
}
}
PLUGIN_API VOID OnPulse(VOID) {
if(gGameState == GAMESTATE_INGAME) {
CursorStackLimits();
SetStackLimits();
}
}
Last edited:


