• 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

MQ2RStats (Increase stats clientside) (1 Viewer)

raistlin8989

Member
Joined
Apr 27, 2005
RedCents
10¢
This plugin increases stats clientside. I made this plugin so that I could see what my hp/mana/ac would be when i added stats(from items i am possibly getting).

Usage:

/rstat <stat> <value>

<stat> can be any of the following:
Str, Sta, Agi, Dex, Wis, Int, Cha, MR, Fr, Cr, Pr, Dr, Crr (corruption), Level, AA (only shows with ${Me.AAPointsSpent}), Plat (on person, not in bank), HP, and Mana

<value> is the value you want the stat to be changed to.

/rnormal resets all stats to what they were when the plugin was loaded.

If you unload plugin, it will reset all stats to the values they were when the plugin was loaded.

Enjoy.

Rich (BB code):
// Plugin: MQ2Rstats
// 
// Author: raistlin8989 for RedGuides
//
// Note: Various bits of code taken from multiple plugins. Idea for this plugin from the a_troll_01's MQ2THacks plugin.
//       This plugin changes values client-side only. For use for increasing your stats for a screenshot, or to see 
//       what your mana/hp would be at at a certain level with current gear, etc.
// Commands: /rstat <stat> <value> - set <stat> to <value>. 
//                  Stat can be any stat, including, but not limited to: level, wis, int, sta, hp, mana.
//	       /rnormal - returns all values back to original values when the plugin was loaded.

#include "../MQ2Plugin.h"


PreSetup("MQ2Rstats");


PCHARINFO pCharInfo = GetCharInfo(); 
PCHARINFO2 pCharInfo2 = GetCharInfo2(); 

DWORD STR = pCharInfo->STR;
DWORD STA = pCharInfo->STA;
DWORD CHA = pCharInfo->CHA;
DWORD DEX = pCharInfo->DEX;
DWORD INTEL = pCharInfo->INT;
DWORD AGI = pCharInfo->AGI;
DWORD WIS = pCharInfo->WIS;
DWORD PR = pCharInfo->SavePoison;
DWORD MR = pCharInfo->SaveMagic;
DWORD DR = pCharInfo->SaveDisease;
DWORD CRR = pCharInfo->SaveCorruption;
DWORD FR = pCharInfo->SaveFire;
DWORD CR = pCharInfo->SaveCold;
DWORD Mana = pCharInfo2->Mana;
DWORD BaseHP = pCharInfo2->BaseHP;
DWORD Level = pCharInfo2->Level;
DWORD AA = pCharInfo2->AAPointsSpent;
DWORD Plat = pCharInfo2->Plat;

DWORD nSTR = pCharInfo->STR;
DWORD nSTA = pCharInfo->STA;
DWORD nCHA = pCharInfo->CHA;
DWORD nDEX = pCharInfo->DEX;
DWORD nINTEL = pCharInfo->INT;
DWORD nAGI = pCharInfo->AGI;
DWORD nWIS = pCharInfo->WIS;
DWORD nPR = pCharInfo->SavePoison;
DWORD nMR = pCharInfo->SaveMagic;
DWORD nDR = pCharInfo->SaveDisease;
DWORD nCRR = pCharInfo->SaveCorruption;
DWORD nFR = pCharInfo->SaveFire;
DWORD nCR = pCharInfo->SaveCold;
DWORD nMana = pCharInfo2->Mana;
DWORD nBaseHP = pCharInfo2->BaseHP;
DWORD nLevel = pCharInfo2->Level;
DWORD nAA = pCharInfo2->AAPointsSpent;
DWORD nPlat = pCharInfo2->Plat;

VOID rstat(PSPAWNINFO pChar, PCHAR szLine)
{
	char stat[MAX_STRING]; GetArg(stat,szLine,1);
	char val[MAX_STRING]; GetArg(val,szLine,2);

	if (
      stricmp(stat, "strength") != 0 &&
	  stricmp(stat, "str") != 0 &&
	  stricmp(stat, "stamina") != 0 &&
      stricmp(stat, "sta") != 0 &&
	  stricmp(stat, "charisma") != 0 &&
	  stricmp(stat, "cha") != 0 &&
	  stricmp(stat, "dexterity") != 0 &&
	  stricmp(stat, "dex") != 0 &&
	  stricmp(stat, "inteligence") != 0 &&
	  stricmp(stat, "int") != 0 &&
	  stricmp(stat, "agility") != 0 &&
	  stricmp(stat, "agi") != 0 &&
	  stricmp(stat, "wisdom") != 0 &&
	  stricmp(stat, "wis") != 0 &&
	  stricmp(stat, "poison") != 0 &&
	  stricmp(stat, "pr") != 0 &&
	  stricmp(stat, "magic") != 0 &&
	  stricmp(stat, "mr") != 0 &&
	  stricmp(stat, "disease") != 0 &&
	  stricmp(stat, "dr") != 0 &&
	  stricmp(stat, "corruption") != 0 &&
	  stricmp(stat, "crr") != 0 &&
	  stricmp(stat, "fire") != 0 &&
	  stricmp(stat, "fr") != 0 &&
	  stricmp(stat, "cold") != 0 &&
	  stricmp(stat, "cr") != 0 &&
	  stricmp(stat, "mana") != 0 &&
	  stricmp(stat, "health") != 0 &&
	  stricmp(stat, "hp") != 0 &&
	  stricmp(stat, "level") != 0 &&
	  stricmp(stat, "aa") != 0 &&
	  stricmp(stat, "plat") != 0
   ) {
	   WriteChatColor("Please select a VALID stat: ", CONCOLOR_RED);
	   WriteChatColor("strength|str ", CONCOLOR_RED);
	   WriteChatColor("stamina|sta ", CONCOLOR_RED);
	   WriteChatColor("dexterity|dex ", CONCOLOR_RED);
	   WriteChatColor("inteligence|int ", CONCOLOR_RED);
	   WriteChatColor("agility|agi ", CONCOLOR_RED);
	   WriteChatColor("wisdom|wis ", CONCOLOR_RED);
	   WriteChatColor("poison|pr ", CONCOLOR_RED);
	   WriteChatColor("magic|mr ", CONCOLOR_RED);
	   WriteChatColor("disease|dr ", CONCOLOR_RED);
	   WriteChatColor("corruption|crr ", CONCOLOR_RED);
	   WriteChatColor("fire|fr ", CONCOLOR_RED);
	   WriteChatColor("cold|cr ", CONCOLOR_RED);
	   WriteChatColor("mana ", CONCOLOR_RED);
	   WriteChatColor("health|hp ", CONCOLOR_RED);
	   WriteChatColor("level ", CONCOLOR_RED);
	   WriteChatColor("aa ", CONCOLOR_RED);
	   WriteChatColor("plat ", CONCOLOR_RED);
      return;
      } else {
      if (!stricmp(stat, "strength") || !stricmp(stat, "str")) {
		  WriteChatColor("Changing Strength", CONCOLOR_YELLOW);
		  STR=atoi(val);
		  return;}
	  else if (!stricmp(stat, "stamina") || !stricmp(stat, "sta")) {
		  WriteChatColor("Changing Stamina", CONCOLOR_YELLOW);
		  STA=atoi(val);
		  return;}
	  else if (!stricmp(stat, "charisma") || !stricmp(stat, "cha")) {
		  WriteChatColor("Changing Charisma", CONCOLOR_YELLOW);
		  CHA=atoi(val);
		  return;}
	  else if (!stricmp(stat, "dexterity") || !stricmp(stat, "dex")) {
		  WriteChatColor("Changing Dexterity", CONCOLOR_YELLOW);
		  DEX=atoi(val);
		  return;}
	  else if (!stricmp(stat, "inteligence") || !stricmp(stat, "int")) {
		  WriteChatColor("Changing Intelligence", CONCOLOR_YELLOW);
		  INTEL=atoi(val);
		  return;}
	  else if (!stricmp(stat, "agility") || !stricmp(stat, "agi")) {
		  WriteChatColor("Changing Agility", CONCOLOR_YELLOW);
		  AGI=atoi(val);
		  return;}
	  else if (!stricmp(stat, "wisdom") || !stricmp(stat, "wis")) {
		  WriteChatColor("Changing Wisdom", CONCOLOR_YELLOW);
		  WIS=atoi(val);
		  return;}
	  else if (!stricmp(stat, "poison") || !stricmp(stat, "pr")) {
		  WriteChatColor("Changing Poison Resist", CONCOLOR_YELLOW);
		  PR=atoi(val);
		  return;}
	  else if (!stricmp(stat, "magic") || !stricmp(stat, "mr")) {
		  WriteChatColor("Changing Magic Resist", CONCOLOR_YELLOW);
		  MR=atoi(val);
		  return;}
	  else if (!stricmp(stat, "disease") || !stricmp(stat, "dr")) {
		  WriteChatColor("Changing Disease Resist", CONCOLOR_YELLOW);
		  DR=atoi(val);
		  return;}
	  else if (!stricmp(stat, "corruption") || !stricmp(stat, "crr")) {
		  WriteChatColor("Changing Corruption Resist", CONCOLOR_YELLOW);
		  CRR=atoi(val);
		  return;}
	  else if (!stricmp(stat, "fire") || !stricmp(stat, "fr")) {
		  WriteChatColor("Changing Fire Resist", CONCOLOR_YELLOW);
		  FR=atoi(val);
		  return;}
	  else if (!stricmp(stat, "cold") || !stricmp(stat, "cr")) {
		  WriteChatColor("Changing Cold Resist", CONCOLOR_YELLOW);
		  CR=atoi(val);
		  return;}
	  else if (!stricmp(stat, "mana")) {
		  WriteChatColor("Changing Mana", CONCOLOR_YELLOW);
		  Mana=atoi(val);
		  return;}
	  else if (!stricmp(stat, "health") || !stricmp(stat, "hp")) {
		  WriteChatColor("Changing HP", CONCOLOR_YELLOW);
		  BaseHP=atoi(val);
		  return;}
	  else if (!stricmp(stat, "level")) {
		  WriteChatColor("Changing Level", CONCOLOR_YELLOW);
		  Level=atoi(val);
		  return;}
	  else if (!stricmp(stat, "aa")) {
		  WriteChatColor("Changing AAs", CONCOLOR_YELLOW);
		  AA=atoi(val);
		  return;}
	  else if (!stricmp(stat, "plat")) {
		  WriteChatColor("Changing Plat", CONCOLOR_YELLOW);
		  Plat=atoi(val);
		  return;}
      }
	return;
}
VOID rnormal(PSPAWNINFO pChar, PCHAR szLine)
{
	WriteChatColor("Returning Stats to original values.", CONCOLOR_RED);
	STR = nSTR;
	STA = nSTA;
	CHA = nCHA;
	DEX = nDEX;
	INTEL = nINTEL;
	AGI = nAGI;
	WIS = nWIS;
	PR = nPR;
	MR = nMR;
	DR = nDR;
	CRR = nCRR;
	FR = nFR;
	CR = nCR;
	Mana = Mana;
	BaseHP = nBaseHP;
	Level = nLevel;
	AA = nAA;
	Plat = nPlat;
	return;
}
PLUGIN_API VOID InitializePlugin(VOID)
{
	DebugSpewAlways("Initializing MQ2Rstats");
	AddCommand("/rstat",rstat);
	AddCommand("/rstats",rstat);
	AddCommand("/rnormal",rnormal);
}

PLUGIN_API VOID ShutdownPlugin(VOID)
{
	DebugSpewAlways("Shutting down MQ2Rstats");
             WriteChatColor("Returning Stats to original values and unloading.", CONCOLOR_RED);
	STR = nSTR;
	STA = nSTA;
	CHA = nCHA;
	DEX = nDEX;
	INTEL = nINTEL;
	AGI = nAGI;
	WIS = nWIS;
	PR = nPR;
	MR = nMR;
	DR = nDR;
	CRR = nCRR;
	FR = nFR;
	CR = nCR;
	Mana = Mana;
	BaseHP = nBaseHP;
	Level = nLevel;
	AA = nAA;
	Plat = nPlat;
	RemoveCommand("/rstat");
	RemoveCommand("/rstats");
	RemoveCommand("/rnormal");
}


PLUGIN_API VOID OnPulse(VOID)
{
		pCharInfo->STR=STR;
		pCharInfo->STA=STA;
		pCharInfo->CHA=CHA;
		pCharInfo->DEX=DEX;
		pCharInfo->INT=INTEL;
		pCharInfo->AGI=AGI;
		pCharInfo->WIS=WIS;
		pCharInfo->SavePoison = PR;
		pCharInfo->SaveMagic = MR;
		pCharInfo->SaveDisease = DR;
		pCharInfo->SaveCorruption = CRR;
		pCharInfo->SaveFire = FR;
		pCharInfo->SaveCold = CR;
		pCharInfo2->Mana = Mana;
		pCharInfo2->BaseHP = BaseHP;
		pCharInfo2->Level = Level;
		pCharInfo2->AAPointsSpent = AA;
		pCharInfo2->Plat = Plat;
}
 
Good work, raistlin8989.

Be really cool if there was a GUI tied to this.
 
Pretty cool. I assume a few of these would actually be helpful too. Would cranking up strength prevent you from becoming encumbered, for example? What else is client side and dependent on stats? Fizzle? ...
 
jimbo said:
Pretty cool. I assume a few of these would actually be helpful too. Would cranking up strength prevent you from becoming encumbered, for example? What else is client side and dependent on stats? Fizzle? ...

Just use docrack :p
 
Would it be possible to add in something to change the colors of the stats to blue, or yellow, or something, so that I know that a stat has been change?
 
anyone know if this still works? or is there an updated version that i am missing out on?
 
MQ2RStats (Increase stats clientside)

Users who are viewing this thread

Back
Top
Cart