added prc death
added animation onenter to offset prc death animation, moved entry point to upper level of sarum castle
This commit is contained in:
@@ -11,6 +11,7 @@ sPrint =sPrint + "\n";
|
||||
PrintString(sPrint);
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
ActionPlayAnimation(ANIMATION_FIREFORGET_SALUTE);
|
||||
// log in/out
|
||||
if (GetLocalInt(oPC,"PCDead")==1)
|
||||
{
|
||||
|
@@ -47,6 +47,7 @@ SetLocalInt(oPlayer,"dungeon_died",1);
|
||||
Stolen(oPlayer);
|
||||
|
||||
AssignCommand(oPlayer, ClearAllActions());
|
||||
AssignCommand(oPlayer, SurrenderToEnemies());
|
||||
SetStandardFactionReputation(STANDARD_FACTION_COMMONER, 74, oPlayer);
|
||||
SetStandardFactionReputation(STANDARD_FACTION_MERCHANT, 74, oPlayer);
|
||||
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 74, oPlayer);
|
||||
@@ -57,6 +58,7 @@ SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 74, oPlayer);
|
||||
}
|
||||
else
|
||||
{
|
||||
DelayCommand(5.0, PopUpGUIPanel(oPlayer,GUI_PANEL_PLAYER_DEATH));
|
||||
//SurrenderToEnemies();
|
||||
DelayCommand(3.0,ExecuteScript("prc_ondeath",oPlayer));
|
||||
}
|
||||
}
|
||||
|
@@ -9,7 +9,10 @@
|
||||
void main()
|
||||
{
|
||||
SendMessageToPC (GetEnteringObject(), "This server is under active development and could go down arbitrarily. Admin will try to give notice beforehand.");
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
ExecuteScript("prc_onenter", OBJECT_SELF);
|
||||
ExecuteScript("_oncliententer", OBJECT_SELF);
|
||||
AssignCommand(oPC, DelayCommand (1.0, ClearAllActions(TRUE)));
|
||||
AssignCommand(oPC, DelayCommand(1.2, PlayAnimation(ANIMATION_LOOPING_TALK_NORMAL, 1.0, 0.5)));
|
||||
}
|
||||
|
@@ -8,6 +8,10 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastPlayerDying();
|
||||
AssignCommand(oPC, ClearAllActions());
|
||||
effect eSanctuary = EffectSanctuary(80);
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSanctuary, oPC);
|
||||
ExecuteScript("prc_ondying", OBJECT_SELF);
|
||||
ExecuteScript("nw_o0_dying", OBJECT_SELF);
|
||||
//ExecuteScript("nw_o0_dying", OBJECT_SELF);
|
||||
}
|
||||
|
Reference in New Issue
Block a user