Initial commit

Initial commit.
This commit is contained in:
Jaysyn904
2024-08-02 23:18:00 -04:00
parent 779bee26ec
commit adeff59f82
3413 changed files with 2837434 additions and 0 deletions

37
_module/nss/on_pcdie.nss Normal file
View File

@@ -0,0 +1,37 @@
/********************************************************/
/* OnPlayerDeath. This basically just sets the location */
/* on the module of the PC's death spot, for use in the */
/* "OnPlayerRespawn" event of the module */
/********************************************************/
/* Created by: Osthman */
/* Date: Saturday, 9/14/02 */
/********************************************************/
void main()
{
object oPC = GetLastPlayerDied();
SetLocalLocation(GetModule(),""+GetName(oPC)+" Death",GetLocation(oPC));
DelayCommand(2.5, PopUpGUIPanel(oPC,GUI_PANEL_PLAYER_DEATH));
// * make friendly to Each of the 3 common factions
AssignCommand(oPC, ClearAllActions());
// * Note: waiting for Sophia to make SetStandardFactionReptuation to clear all personal reputation
if (GetStandardFactionReputation(STANDARD_FACTION_COMMONER, oPC) <= 10)
{ SetLocalInt(oPC, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_COMMONER, 80, oPC);
}
if (GetStandardFactionReputation(STANDARD_FACTION_MERCHANT, oPC) <= 10)
{ SetLocalInt(oPC, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_MERCHANT, 80, oPC);
}
if (GetStandardFactionReputation(STANDARD_FACTION_DEFENDER, oPC) <= 10)
{ SetLocalInt(oPC, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 80, oPC);
}
}