35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
//
|
|
void main()
|
|
{
|
|
object o_ayla = GetObjectByTag("Ayla");
|
|
object o_house1 = GetObjectByTag("AylaHouse1");
|
|
object o_house2 = GetObjectByTag("AylaHouse2");
|
|
object o_house3 = GetObjectByTag("AylaHouse3");
|
|
object o_house4 = GetObjectByTag("AylaHouse4");
|
|
object o_house5 = GetObjectByTag("AylaHouse5");
|
|
object o_house6 = GetObjectByTag("AylaHouse6");
|
|
object o_house7 = GetObjectByTag("AylaHouse7");
|
|
int i_captaindead = GetLocalInt(o_ayla, "captaindead");
|
|
int i_countdown = GetLocalInt(o_ayla, "resetcountdown");
|
|
int i_countdown2;
|
|
if (i_captaindead == 1)
|
|
{
|
|
i_countdown2 = i_countdown + 1;
|
|
SetLocalInt(o_ayla, "resetcountdown", i_countdown2);
|
|
}
|
|
if(i_countdown > 1200)
|
|
{
|
|
DeleteLocalInt(o_ayla, "captaindead");
|
|
DeleteLocalInt(o_ayla, "resetcountdown");
|
|
DeleteLocalInt(o_ayla, "attacktime");
|
|
DeleteLocalInt(o_house1, "i_spawnonce");
|
|
DeleteLocalInt(o_house2, "i_spawnonce");
|
|
DeleteLocalInt(o_house3, "i_spawnonce");
|
|
DeleteLocalInt(o_house4, "i_spawnonce");
|
|
DeleteLocalInt(o_house5, "i_spawnonce");
|
|
DeleteLocalInt(o_house6, "i_spawnonce");
|
|
DeleteLocalInt(o_house7, "i_spawnonce");
|
|
SetLocalInt(o_ayla, "dest_villagers", 1);
|
|
}
|
|
}
|