28 lines
589 B
Plaintext
28 lines
589 B
Plaintext
|
#include "mn_unitele"
|
||
|
|
||
|
const string DESTINATION = "wp_tp_erono";
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC;
|
||
|
|
||
|
oPC = GetItemActivator();
|
||
|
|
||
|
RingTeleport( oPC, DESTINATION );
|
||
|
|
||
|
object oTarget=GetFirstFactionMember(oPC, FALSE);
|
||
|
|
||
|
while (GetIsObjectValid(oTarget))
|
||
|
{
|
||
|
if( TeleportStatus( oTarget ) > MN_TELE_NORESTRICT )
|
||
|
{
|
||
|
FloatingTextStringOnCreature( "Something intereferes in your teleportation of "+GetName( oTarget), oPC, FALSE );
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
RingTeleport( oTarget, DESTINATION );
|
||
|
oTarget=GetNextFactionMember(oPC, FALSE);
|
||
|
}
|
||
|
}
|
||
|
}
|