• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋

MQ2NoEncumber

TeachersPet

Well-known member
I whipped this up because I couldn't move in PoK like 2 minutes ago. Didn't remember if RG had one so I figured, like every other plugin I randomly make, I'd post it.

P.S. I promise this wasn't posted as a shameless "VOTE FOR ME" ploy.

P.P.S. You can vote for me here.

Rich (BB code):
// MQ2NoEncumber By: TeachersPet

#include "../MQ2Plugin.h"

PreSetup("MQ2NoEncumber");

PLUGIN_API VOID OnPulse(VOID)
{
	GetCharInfo()->CurrWeight = 0;
}
 
TeachersPet said:
I whipped this up because I couldn't move in PoK like 2 minutes ago. Didn't remember if RG had one so I figured, like every other plugin I randomly make, I'd post it.

P.S. I promise this wasn't posted as a shameless "VOTE FOR ME" ploy.

P.P.S. You can vote for me here.

Rich (BB code):
// MQ2NoEncumber By: TeachersPet

#include "../MQ2Plugin.h"

PreSetup("MQ2NoEncumber");

PLUGIN_API VOID OnPulse(VOID)
{
	GetCharInfo()->CurrWeight = 0;
}

nice simple and efficient coding, no offset required. The only time this code will need to be updated is when there are struct changes.

Excellent work.
 
Yah weight is 100% client side as far as being encumbered, however if your a Monk then I believe it will still effect your stats server side (AC and such.) By the way, TP, this is a really sloppy way of doing this. You should have a boolean operator and a command to turn it on and off, also a /setweight would be cool. That's how I did mine anyway, but I guess to be fair it's not really necessary - this just looks TOO small for me hehe..
 
Blame Alez, I just saw that this in recent posts ;) Look below for an upgrade, just because the post is bumped anyway and it's in need of one..

Rich (BB code):
//CorruptionPlugins.com

#include "../MQ2Plugin.h"

PreSetup("MQ2NoEncumber");

bool NoEnc = false;
int WeightAmount = 0;

VOID NoEncumber(PSPAWNINFO pChar, PCHAR szLine)
{
	if (!stricmp(szLine,"on") || !stricmp(szLine,"1") || (!stricmp(szLine,"") && !NoEnc)) {
		NoEnc = true;
		WriteChatColor("MQ2CorruptionEncumber: No encumber enabled",CONCOLOR_YELLOW);
	} else {
		NoEnc = false;
		WriteChatColor("MQ2CorruptionEncumber: No encumber disabled.",CONCOLOR_RED);
	}
}

VOID SetWeight(PSPAWNINFO pChar, PCHAR szLine){
	WeightAmount = atoi(szLine);
}

VOID HelpCmd(PSPAWNINFO pChar, PCHAR szLine){
	WriteChatColor("MQ2CorruptionEncumber Commands:",CONCOLOR_YELLOW);
	WriteChatColor("/noencumber: This will set your weight to 0",CONCOLOR_YELLOW);
	WriteChatColor("/setweight <#>: This will set your weight to your choice",CONCOLOR_YELLOW);
}

// Called once, when the plugin is to initialize
PLUGIN_API VOID InitializePlugin(VOID)
{
	DebugSpewAlways("Initializing MQ2NoEncumber");
	WriteChatColor("MQ2CorruptionEncumber: Type /encumberhelp to get started",CONCOLOR_YELLOW);
	AddCommand("/encumberhelp", HelpCmd);
	AddCommand("/noencumber",NoEncumber);
	AddCommand("/setweight", SetWeight);
}

// Called once, when the plugin is to shutdown
PLUGIN_API VOID ShutdownPlugin(VOID)
{
	DebugSpewAlways("Shutting down MQ2NoEncumber");
	RemoveCommand("/encumberhelp");
	RemoveCommand("/noencumber");
	RemoveCommand("/setweight");
}

PLUGIN_API VOID OnPulse(VOID)
{
	if (NoEnc)
	GetCharInfo()->CurrWeight = WeightAmount;
}
 
Last edited:
MQ2NoEncumber

Users who are viewing this thread

Back
Top
Cart