Initial commit
Initial commit.
This commit is contained in:
37
_module/nss/on_pcdie.nss
Normal file
37
_module/nss/on_pcdie.nss
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user