20 lines
658 B
Plaintext
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!"));
|
|
|
|
}
|
|
|
|
}
|
|
|