44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
|
|
||
|
void main()
|
||
|
{
|
||
|
//When PC enters the area, it will immediately 'fall' off into Velkynche'el
|
||
|
//appropriate damage is dealt
|
||
|
object oPC = GetEnteringObject();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
object oTarget;
|
||
|
location lTarget;
|
||
|
oTarget = GetWaypointByTag("PT_PCFALLPT_VELKYN");
|
||
|
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
|
||
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||
|
|
||
|
AssignCommand(oPC, ClearAllActions());
|
||
|
|
||
|
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
||
|
|
||
|
effect eEffect;
|
||
|
|
||
|
eEffect = EffectDamage(GetCurrentHitPoints(oPC) - 2, DAMAGE_TYPE_BLUDGEONING, DAMAGE_POWER_ENERGY);
|
||
|
|
||
|
DelayCommand(7.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC));
|
||
|
oTarget = oPC;
|
||
|
eEffect = EffectKnockdown();
|
||
|
DelayCommand(7.0, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 8.0f));
|
||
|
eEffect = EffectDazed();
|
||
|
DelayCommand(7.0, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 10.0f));
|
||
|
SendMessageToPC(oPC, "A wooden plank on the old bridge breaks under your weight, and you fall off it...");
|
||
|
if(GetGender(oPC) == GENDER_FEMALE)
|
||
|
{
|
||
|
//scream like Valsharess
|
||
|
DelayCommand(6.90, AssignCommand(oPC, PlaySound("vs_nx2matrf_dead")));
|
||
|
}
|
||
|
else
|
||
|
{ //or like someguy
|
||
|
DelayCommand(6.90, AssignCommand(oPC, PlaySound("vs_nprostm2_dead")));
|
||
|
}
|
||
|
|
||
|
}
|