Czarman
Well-known member
- Joined
- Apr 28, 2005
- RedCents
- 1,381¢
Revised this one I found a while ago.....should keep the faerune even crossing zones. One of the few plugins that is clientside :P
Rich (BB code):
/*
Plugin: MQ2Faerunesong originally written by Fossil on Kenetixeq.
Updated by Czarman/Wickedmofo
Desc: Gives you faerune in the bottom slot on your character's bard song slot - clientside only.
Faerune (see invis/ultravision/enduring breath)
*/
#include "../MQ2Plugin.h"
PreSetup("MQ2Faerune");
// Called once, when the plugin is to initialize
PLUGIN_API VOID InitializePlugin(VOID)
{
DebugSpewAlways("Initializing MQ2Faerune");
}
// Called once, when the plugin is to shutdown
PLUGIN_API VOID ShutdownPlugin(VOID)
{
DebugSpewAlways("Shutting down MQ2Faerune");
}
// Called once directly after initialization, and then every time the gamestate changes
PLUGIN_API VOID SetGameState(DWORD GameState)
{
int Slot;
if (GameState==GAMESTATE_INGAME) {
if ((ppCharData) && (pCharData)) {
//Faerune (see invis/ultravision/enduring breath)
Slot = 30;
PSPELL pSpell = GetSpellByName("Faerune");
GetCharInfo2()->Buff[Slot].Unknown0x00 = (BYTE)2;
GetCharInfo2()->Buff[Slot].Level = (BYTE)65;
GetCharInfo2()->Buff[Slot].Modifier = (CHAR)100;
GetCharInfo2()->Buff[Slot].DamageShield = (CHAR)0;
GetCharInfo2()->Buff[Slot].SpellID = (DWORD)pSpell->ID;
GetCharInfo2()->Buff[Slot].Duration = (DWORD)9990;
GetCharInfo2()->Buff[Slot].DamageAbsorbRemaining = (DWORD)0;
}
}
}
Last edited:

