PoA_PRC8/_module/nss/sucked2.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

20 lines
658 B
Plaintext

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!"));
}
}