Initial Upload
Initial Upload
This commit is contained in:
18
_module/nss/port_irda.nss
Normal file
18
_module/nss/port_irda.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
object oTarget = GetWaypointByTag("irdaport");
|
||||
location lTarget = GetLocation(oTarget);
|
||||
|
||||
if (GetItemPossessedBy(oPC, "IrdaStone")!= OBJECT_INVALID && GetHitDice(oPC)>=18)
|
||||
{
|
||||
AssignCommand(oPC, ClearAllActions());
|
||||
DelayCommand(2.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DEATH_WARD),lTarget);
|
||||
}
|
||||
else
|
||||
{
|
||||
string sDeny="You must posses an Irda Stone and be 18th level to use this portal";
|
||||
SendMessageToPC(oPC, sDeny);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user