var int shield_equipped_buddler;
var int shield_equipped_orry;
var int shield_equipped_scatty;
var int shield_equipped_scorpio;
var int shield_equipped_cutter;
var int shield_equipped_214_torwache;
var int shield_equipped_215_torwache;
var int shield_equipped_216_torwache;
var int shield_equipped_217_torwache;
var int shield_equipped_218_gardist;
var int shield_equipped_245_gardist;
var int shield_equipped_cord;
var int shield_equipped_727_soeldner;
var int shield_equipped_728_jarvis;
var int shield_equipped_702_soeldner;
var int shield_equipped_723_soeldner;
var int shield_equipped_731_soeldner;
var int shield_equipped_732_soeldner;
var int shield_equipped_751_soeldner;
var int shield_equipped_757_soeldner;
var int shield_equipped_ebr_101_scar;
func void b_cycle_function()
{
var C_Npc her;
her = Hlp_GetNpc(PC_Hero);
if((hero.aivar[45] == TRUE) && (Npc_HasItems(hero,itmi_compass) >= 1))
{
PrintScreen(compass_forhero(),2,2,"COMPASS_LINE128.tga",1);
};
if((Npc_GetDistToNpc(hero,EBR_101_Scar) < 5000) && (Npc_HasItems(EBR_101_Scar,it_shield_rhobar) == 0) && (SHIELD_EQUIPPED_EBR_101_SCAR == 0))
{
Mdl_RemoveOverlayMds(EBR_101_Scar,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_EBR_101_SCAR = 1;
}
else if(Npc_GetDistToNpc(hero,EBR_101_Scar) > 5000)
{
SHIELD_EQUIPPED_EBR_101_SCAR = 0;
};
if((Npc_GetDistToNpc(hero,VLK_534_Buddler) < 5000) && (Npc_HasItems(VLK_534_Buddler,it_shield_round_broken_01) == 0) && (SHIELD_EQUIPPED_BUDDLER == 0))
{
Mdl_RemoveOverlayMds(VLK_534_Buddler,"SHIELD_ST1.MDS");
SHIELD_EQUIPPED_BUDDLER = 1;
}
else if(Npc_GetDistToNpc(hero,VLK_534_Buddler) > 5000)
{
SHIELD_EQUIPPED_BUDDLER = 0;
};
if((Npc_GetDistToNpc(hero,GRD_254_Orry) < 5000) && (Npc_HasItems(GRD_254_Orry,it_shield_tower_01) == 0) && (SHIELD_EQUIPPED_ORRY == 0))
{
Mdl_RemoveOverlayMds(GRD_254_Orry,"SHIELD_ST2.MDS");
SHIELD_EQUIPPED_ORRY = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_254_Orry) > 5000)
{
SHIELD_EQUIPPED_ORRY = 0;
};
if((Npc_GetDistToNpc(hero,GRD_210_Scatty) < 5000) && (Npc_HasItems(GRD_210_Scatty,it_shield_tower_01) == 0) && (SHIELD_EQUIPPED_SCATTY == 0))
{
Mdl_RemoveOverlayMds(GRD_210_Scatty,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_SCATTY = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_210_Scatty) > 5000)
{
SHIELD_EQUIPPED_SCATTY = 0;
};
if((Npc_GetDistToNpc(hero,GRD_205_Scorpio) < 5000) && (Npc_HasItems(GRD_205_Scorpio,it_shield_tower_01) == 0) && (SHIELD_EQUIPPED_SCORPIO == 0))
{
Mdl_RemoveOverlayMds(GRD_205_Scorpio,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_SCORPIO = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_205_Scorpio) > 5000)
{
SHIELD_EQUIPPED_SCORPIO = 0;
};
if((Npc_GetDistToNpc(hero,GRD_208_Cutter) < 5000) && (Npc_HasItems(GRD_208_Cutter,it_shield_tower_02) == 0) && (SHIELD_EQUIPPED_CUTTER == 0))
{
Mdl_RemoveOverlayMds(GRD_208_Cutter,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_CUTTER = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_208_Cutter) > 5000)
{
SHIELD_EQUIPPED_CUTTER = 0;
};
if((Npc_GetDistToNpc(hero,GRD_214_Torwache) < 5000) && (Npc_HasItems(GRD_214_Torwache,it_shield_tower_02) == 0) && (SHIELD_EQUIPPED_214_TORWACHE == 0))
{
Mdl_RemoveOverlayMds(GRD_214_Torwache,"SHIELD_ST2.MDS");
SHIELD_EQUIPPED_214_TORWACHE = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_214_Torwache) > 5000)
{
SHIELD_EQUIPPED_214_TORWACHE = 0;
};
if((Npc_GetDistToNpc(hero,GRD_215_Torwache) < 5000) && (Npc_HasItems(GRD_215_Torwache,it_shield_tower_02) == 0) && (SHIELD_EQUIPPED_215_TORWACHE == 0))
{
Mdl_RemoveOverlayMds(GRD_215_Torwache,"SHIELD_ST2.MDS");
SHIELD_EQUIPPED_215_TORWACHE = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_215_Torwache) > 5000)
{
SHIELD_EQUIPPED_215_TORWACHE = 0;
};
if((Npc_GetDistToNpc(hero,GRD_216_Torwache) < 5000) && (Npc_HasItems(GRD_216_Torwache,it_shield_tower_02) == 0) && (SHIELD_EQUIPPED_216_TORWACHE == 0))
{
Mdl_RemoveOverlayMds(GRD_216_Torwache,"SHIELD_ST2.MDS");
SHIELD_EQUIPPED_216_TORWACHE = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_216_Torwache) > 5000)
{
SHIELD_EQUIPPED_216_TORWACHE = 0;
};
if((Npc_GetDistToNpc(hero,GRD_217_Torwache) < 5000) && (Npc_HasItems(GRD_217_Torwache,it_shield_tower_02) == 0) && (SHIELD_EQUIPPED_217_TORWACHE == 0))
{
Mdl_RemoveOverlayMds(GRD_217_Torwache,"SHIELD_ST2.MDS");
SHIELD_EQUIPPED_217_TORWACHE = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_217_Torwache) > 5000)
{
SHIELD_EQUIPPED_217_TORWACHE = 0;
};
if((Npc_GetDistToNpc(hero,Grd_218_Gardist) < 5000) && (Npc_HasItems(Grd_218_Gardist,it_shield_tower_02) == 0) && (SHIELD_EQUIPPED_218_GARDIST == 0))
{
Mdl_RemoveOverlayMds(Grd_218_Gardist,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_218_GARDIST = 1;
}
else if(Npc_GetDistToNpc(hero,Grd_218_Gardist) > 5000)
{
SHIELD_EQUIPPED_218_GARDIST = 0;
};
if((Npc_GetDistToNpc(hero,GRD_245_Gardist) < 5000) && (Npc_HasItems(GRD_245_Gardist,it_shield_tower_02) == 0) && (SHIELD_EQUIPPED_245_GARDIST == 0))
{
Mdl_RemoveOverlayMds(GRD_245_Gardist,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_245_GARDIST = 1;
}
else if(Npc_GetDistToNpc(hero,GRD_245_Gardist) > 5000)
{
SHIELD_EQUIPPED_245_GARDIST = 0;
};
if((Npc_GetDistToNpc(hero,Sld_709_Cord) < 5000) && (Npc_HasItems(Sld_709_Cord,it_shield_tower_04) == 0) && (SHIELD_EQUIPPED_CORD == 0))
{
Mdl_RemoveOverlayMds(Sld_709_Cord,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_CORD = 1;
}
else if(Npc_GetDistToNpc(hero,Sld_709_Cord) > 5000)
{
SHIELD_EQUIPPED_CORD = 0;
};
if((Npc_GetDistToNpc(hero,SLD_727_Soeldner) < 5000) && (Npc_HasItems(SLD_727_Soeldner,it_shield_tower_04) == 0) && (SHIELD_EQUIPPED_727_SOELDNER == 0))
{
Mdl_RemoveOverlayMds(SLD_727_Soeldner,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_727_SOELDNER = 1;
}
else if(Npc_GetDistToNpc(hero,SLD_727_Soeldner) > 5000)
{
SHIELD_EQUIPPED_727_SOELDNER = 0;
};
if((Npc_GetDistToNpc(hero,SLD_728_Jarvis) < 5000) && (Npc_HasItems(SLD_728_Jarvis,it_shield_round_01) == 0) && (SHIELD_EQUIPPED_728_JARVIS == 0))
{
Mdl_RemoveOverlayMds(SLD_728_Jarvis,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_728_JARVIS = 1;
}
else if(Npc_GetDistToNpc(hero,SLD_728_Jarvis) > 5000)
{
SHIELD_EQUIPPED_728_JARVIS = 0;
};
if((Npc_GetDistToNpc(hero,SLD_702_Soeldner) < 5000) && (Npc_HasItems(SLD_702_Soeldner,it_shield_tower_04) == 0) && (SHIELD_EQUIPPED_702_SOELDNER == 0))
{
Mdl_RemoveOverlayMds(SLD_702_Soeldner,"SHIELD_ST2.MDS");
SHIELD_EQUIPPED_702_SOELDNER = 1;
}
else if(Npc_GetDistToNpc(hero,SLD_702_Soeldner) > 5000)
{
SHIELD_EQUIPPED_702_SOELDNER = 0;
};
if((Npc_GetDistToNpc(hero,SLD_723_Soeldner) < 5000) && (Npc_HasItems(SLD_723_Soeldner,it_shield_tower_04) == 0) && (SHIELD_EQUIPPED_723_SOELDNER == 0))
{
Mdl_RemoveOverlayMds(SLD_723_Soeldner,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_723_SOELDNER = 1;
}
else if(Npc_GetDistToNpc(hero,SLD_723_Soeldner) > 5000)
{
SHIELD_EQUIPPED_723_SOELDNER = 0;
};
if((Npc_GetDistToNpc(hero,SLD_731_Soeldner) < 5000) && (Npc_HasItems(SLD_731_Soeldner,it_shield_tower_04) == 0) && (SHIELD_EQUIPPED_731_SOELDNER == 0))
{
Mdl_RemoveOverlayMds(SLD_731_Soeldner,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_731_SOELDNER = 1;
}
else if(Npc_GetDistToNpc(hero,SLD_731_Soeldner) > 5000)
{
SHIELD_EQUIPPED_731_SOELDNER = 0;
};
if((Npc_GetDistToNpc(hero,SLD_732_Soeldner) < 5000) && (Npc_HasItems(SLD_732_Soeldner,it_shield_tower_04) == 0) && (SHIELD_EQUIPPED_732_SOELDNER == 0))
{
Mdl_RemoveOverlayMds(SLD_732_Soeldner,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_732_SOELDNER = 1;
}
else if(Npc_GetDistToNpc(hero,SLD_732_Soeldner) > 5000)
{
SHIELD_EQUIPPED_732_SOELDNER = 0;
};
if((Npc_GetDistToNpc(hero,SLD_751_Soeldner) < 5000) && (Npc_HasItems(SLD_751_Soeldner,it_shield_tower_04) == 0) && (SHIELD_EQUIPPED_751_SOELDNER == 0))
{
Mdl_RemoveOverlayMds(SLD_751_Soeldner,"SHIELD_ST2.MDS");
SHIELD_EQUIPPED_751_SOELDNER = 1;
}
else if(Npc_GetDistToNpc(hero,SLD_751_Soeldner) > 5000)
{
SHIELD_EQUIPPED_751_SOELDNER = 0;
};
if((Npc_GetDistToNpc(hero,SLD_757_Soeldner) < 5000) && (Npc_HasItems(SLD_757_Soeldner,it_shield_round_01) == 0) && (SHIELD_EQUIPPED_757_SOELDNER == 0))
{
Mdl_RemoveOverlayMds(SLD_757_Soeldner,"SHIELD_ST3.MDS");
SHIELD_EQUIPPED_757_SOELDNER = 1;
}
else if(Npc_GetDistToNpc(hero,SLD_757_Soeldner) > 5000)
{
SHIELD_EQUIPPED_757_SOELDNER = 0;
};
Wld_SendTrigger("CYCLE_TRIGGER");
};