42 lines
910 B
Plaintext
42 lines
910 B
Plaintext
//Created by Guile 01/20/07
|
|
//Put this script OnUsed
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastUsedBy();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "godstate44")== OBJECT_INVALID)
|
|
return;
|
|
|
|
|
|
object oTarget;
|
|
location lTarget;
|
|
oTarget = GetWaypointByTag("statueway1");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
|
|
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
|
|
|
oTarget=GetFirstFactionMember(oPC, FALSE);
|
|
|
|
while (GetIsObjectValid(oTarget))
|
|
{
|
|
AssignCommand(oTarget, ClearAllActions());
|
|
|
|
AssignCommand(oTarget, ActionJumpToLocation(lTarget));
|
|
oTarget=GetNextFactionMember(oPC, FALSE);
|
|
}
|
|
|
|
oTarget = oPC;
|
|
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_PULSE_HOLY), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_PULSE_HOLY), GetLocation(oTarget));
|
|
|
|
}
|