Changed folder name.
Changed folder name.
This commit is contained in:
19
_module/nss/sucked2.nss
Normal file
19
_module/nss/sucked2.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
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!"));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user