• 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! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

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