Please use the following :
function script endower {
if (!.@Endo){
specialeffect2 583;
sc_start SC_FIREWEAPON,300000,1;
set .@Endo, 1;
end;
}
if (SC_FIREWEAPON)
{
callsub createEndo,257,"SC_WindWeapon"; break;
}
else if (SC_WINDWEAPON){
callsub createEndo,116,"SC_WATERWEAPON"; break;
}
else if (SC_WATERWEAPON){
callsub createEndo,79,"SC_EARTHWEAPON"; break;
}
else if (SC_EARTHWEAPON){
callsub createEndo,571,"SC_SHADOWWEAPON"; break;
}
else if (SC_SHADOWWEAPON){
callsub createEndo,583,"SC_FIREWEAPON"; break;
}
createEndo:
specialeffect2,getarg(0); //Create Effect
sc_start getarg(1),300000,1; //Create whatever this is.
set .@Endo, 0; //Reset Endo?
end;
}
Than, To use the function.
callfunc "endower";
We could just make it give a random Endo, rather than it being totally predictable though. Just message me if you want me to do it.