PoA_PRC8/_module/nss/sucked2.nss

20 lines
658 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object oPC = GetEnteringObject();
int hd = GetHitDice(oPC);
location loc = GetLocation(oPC);
location sucked = GetLocation(GetWaypointByTag("sucked2"));
if (GetIsPC(oPC) && !GetIsDM(oPC) && hd >= 14){
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_IMPLOSION), loc, 3.0);
DelayCommand(1.0, AssignCommand(oPC, JumpToLocation(sucked)));
DelayCommand(2.0, AssignCommand(oPC, TakeGoldFromCreature(30000, oPC, TRUE)));
DelayCommand(3.0, SendMessageToPC(oPC, "A strange portal has opened, and you have been sucked into it!"));
DelayCommand(4.0, SendMessageToPC(oPC, "Some of your gold has been turned to lead!"));
}
}