int nInt;
object oTarget;
void main()
{
object oPC = GetExitingObject();
if(!GetIsPC(oPC)) return;
if(GetLocalString(oPC,"Ser Red Ronnet Connington"))
{
AssignCommand(GetObjectByTag("SerRedRonnetConnington"), ActionSpeakString("The master of this realm has left!!!", TALKVOLUME_SHOUT));
oTarget = GetObjectByTag("SerRedRonnetConnington");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SWINGING_BLADE), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SWINGING_BLADE), GetLocation(oTarget));
DestroyObject(oTarget, 3.0);
}
if(GetLocalString(oPC,"DemonRot"))
{
AssignCommand(GetObjectByTag("masteravatar"), ActionSpeakString("Master Avatar has left!!!", TALKVOLUME_SHOUT));
oTarget = GetObjectByTag("masteravatar");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SWINGING_BLADE), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SWINGING_BLADE), GetLocation(oTarget));
DestroyObject(oTarget, 3.0);
}
if(GetLocalString(oPC,"God of Ruin"))
{
AssignCommand(GetObjectByTag("masterbane"), ActionSpeakString("Master Bane has left!!!", TALKVOLUME_SHOUT));
oTarget = GetObjectByTag("masterbane");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SWINGING_BLADE), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SWINGING_BLADE), GetLocation(oTarget));
DestroyObject(oTarget, 3.0);
}
}
This is what i did to the onclientleave. It wont compile, an integer error.