2025/09/05 Update

Fixed random hang at log on for single player.
Fixed class title function in Markshire Nomenclature script.
Fixed faction melee that ensued if player was killed by defender faction in town.
Updated most humanoids to use new class title function.
Full compile.
This commit is contained in:
Jaysyn904
2025-09-05 21:48:32 -04:00
parent 8b0ac05535
commit 7b3c31175e
24 changed files with 1833 additions and 203 deletions

View File

@@ -1,10 +1,24 @@
#include "prc_inc_racial"
#include "utl_i_sqluuid"
#include "utl_i_sqlocals"
#include "nw_i0_plot"
void GetKiller();
void Raise(object oPlayer)
void ClearAllFactionMembers(object oMember, object oPlayer)
{
// AssignCommand(oMember, SpeakString("here"));
AdjustReputation(oPlayer, oMember, 100);
SetLocalInt(oPlayer, "NW_G_Playerhasbeenbad", 10); // * Player bad
object oClear = GetFirstFactionMember(oMember, FALSE);
while (GetIsObjectValid(oClear) == TRUE)
{
ClearPersonalReputation(oPlayer, oClear);
oClear = GetNextFactionMember(oMember, FALSE);
}
}
/* void EN4_Raise(object oPlayer)
{
effect eVisual = EffectVisualEffect(VFX_IMP_RESTORATION);
@@ -37,6 +51,7 @@ void Raise(object oPlayer)
SignalEvent(oPlayer, EventSpellCastAt(OBJECT_SELF, SPELL_RESTORATION, FALSE));
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual, oPlayer);
}
*/
void main()
{
@@ -81,8 +96,25 @@ if (SQLocalsUUID_GetInt(oPlayer,"PCHardcore") == 0 && SQLocalsUUID_GetInt(oPlaye
{ SQLocalsUUID_SetInt(oPlayer, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 80, oPlayer);
}
//:: Clears bad rep with Neutral faction.
ClearAllFactionMembers(GetObjectByTag("en4_evilstarter"), oPlayer);
//:: Hopefully stops the melee in Hightop if a player respawns after attacking Defenders or Citizens.
object oGuard = GetObjectByTag("en4_cityguard4");
object oCitizen = GetObjectByTag("en4_wcitizen");
object oMerchant = GetObjectByTag("en4_merchant6");
AdjustFactionReputation(oGuard, oCitizen, 100);
AdjustFactionReputation(oCitizen, oGuard, 100);
AdjustFactionReputation(oMerchant, oCitizen, 100);
AdjustFactionReputation(oCitizen, oMerchant, 100);
AdjustFactionReputation(oGuard, oMerchant, 100);
AdjustFactionReputation(oMerchant, oGuard, 100);
DelayCommand(2.0, PopUpDeathGUIPanel(oPlayer,TRUE, TRUE,0,"Death has taken you."));
DelayCommand(2.0, PopUpDeathGUIPanel(oPlayer,TRUE, TRUE,0,"You are dead."));
}
void GetKiller()