2025/11/20 Update
Updated epic swashbucker tlk. Added notes on Martial Study. Updated Shadow Servant to scale with Shadow Master level, per PnP. Made Disciple of Baalzebul's CHA boost intrinsic. Swarm of Arrows is an Eldritch Knight epic bonus feat. Epic eldritch theurge is 11th level, not 21st level. Updated Shadowdancer weapon proficiencies. WP: Scythe was a usable feat for Warblade. Gaseous Form added to iprp_spells. Set Favoured Soul's Regen X Wounds spells to the correct spell level. Updated Twinfiend to not suck. Tweaked GetMaxPossibleHP for Undead & Constructs. Updated PRCIsFlying() for newer CEP2 wings. More fixes and updated for NUI levelup menu. (@Rakiov) Added support for de-leveling AMS classes (@Rakiov) Zakya Rakshasa have a claw & bite attack. Added check to end grapples after target death. Removed debug message in GetHighestSpellAvailableByDescriptor() Monsters won't summon uncontrolled undead. Added Signal Event to Luminous Armor. Corrected Signal Event on Shield of Faith.
This commit is contained in:
@@ -34,6 +34,28 @@ const string CHAT_COMMAND_INDICATOR_1 = "~~";
|
||||
const string CHAT_COMMAND_INDICATOR_2 = "..";
|
||||
const int CHAT_COMMAND_INDICATOR_LENGHT = 2;
|
||||
|
||||
void ForceRemoveAllSpells(object oPC)
|
||||
{
|
||||
int classId;
|
||||
for(classId = 1; classId < CLASS_TYPE_INVALID; classId++)
|
||||
{
|
||||
int j;
|
||||
for (j = 0; j <= 40; j++)
|
||||
{
|
||||
DelayCommand(0.0f, CallSpellUnlevelScript(oPC, classId, j));
|
||||
}
|
||||
}
|
||||
SendMessageToPC(oPC, "Finished removing spells.");
|
||||
}
|
||||
|
||||
void ResetCharacterXPAndRemoveSpells(object oPC)
|
||||
{
|
||||
int xp = GetXP(oPC);
|
||||
ForceRemoveAllSpells(oPC);
|
||||
SetXP(oPC, 1);
|
||||
SetXP(oPC, xp);
|
||||
}
|
||||
|
||||
int GetIsChatCommand(string sString)
|
||||
{
|
||||
string sTest = GetStringLeft(sString, CHAT_COMMAND_INDICATOR_LENGHT);
|
||||
@@ -111,6 +133,50 @@ void main()
|
||||
string firstWord = JsonGetString(JsonArrayGet(sCommandSplit, 0));
|
||||
|
||||
// if first word is /pa we are using the power attack interface
|
||||
if (firstWord == "/relevel")
|
||||
{
|
||||
int confirmed = GetLocalInt(oPC, "RelevelConfirm");
|
||||
if(confirmed)
|
||||
{
|
||||
SendMessageToPC(oPC, "Please wait as we relevel you, this may take some time...");
|
||||
DelayCommand(1.0f, ResetCharacterXPAndRemoveSpells(oPC));
|
||||
DeleteLocalInt(oPC, "RelevelConfirm");
|
||||
}
|
||||
else
|
||||
{
|
||||
SendMessageToPC(oPC, "This will relevel you back to level 1 while preserving XP, type /relevel again to confirm.");
|
||||
SetLocalInt(oPC, "RelevelConfirm", 1);
|
||||
CloseNUILevelUpWindow(oPC, TRUE);
|
||||
}
|
||||
SetPCChatMessage();
|
||||
}
|
||||
else
|
||||
{
|
||||
DeleteLocalInt(oPC, "RelevelConfirm");
|
||||
SetPCChatMessage();
|
||||
}
|
||||
if (firstWord == "/resetSpells")
|
||||
{
|
||||
int confirmed = GetLocalInt(oPC, "ResetSpellsConfirm");
|
||||
if (confirmed)
|
||||
{
|
||||
SendMessageToPC(oPC, "Please wait as we remove your spells, this may take some time...");
|
||||
DelayCommand(1.0f, ForceRemoveAllSpells(oPC));
|
||||
DeleteLocalInt(oPC, "ResetSpellsConfirm");
|
||||
CloseNUILevelUpWindow(oPC, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
SendMessageToPC(oPC, "This will reset all spell choices among all PRC classes. Type /resetSpells again to confirm.");
|
||||
SetLocalInt(oPC, "ResetSpellsConfirm", 1);
|
||||
}
|
||||
SetPCChatMessage();
|
||||
}
|
||||
else
|
||||
{
|
||||
DeleteLocalInt(oPC, "ResetSpellsConfirm");
|
||||
SetPCChatMessage();
|
||||
}
|
||||
if(firstWord == "/pa")
|
||||
{
|
||||
if(JsonGetLength(sCommandSplit) >= 2)
|
||||
@@ -147,17 +213,6 @@ void main()
|
||||
SetPCChatMessage();
|
||||
return;
|
||||
}
|
||||
if (firstWord == "/lvl")
|
||||
{
|
||||
if (JsonGetLength(sCommandSplit) >= 2)
|
||||
{
|
||||
int classPos = StringToInt(JsonGetString(JsonArrayGet(sCommandSplit, 1)));
|
||||
int nClass = GetClassByPosition(classPos, oPC);
|
||||
OpenNUILevelUpWindow(nClass, oPC);
|
||||
SetPCChatMessage();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Execute scripts hooked to this event for the player triggering it
|
||||
|
||||
Reference in New Issue
Block a user