For this to work, move the quest to the main list, name it "fenix", and also set IsInitialyActive and IsInitialyVisible to false, Kind = MANUAL, and name the hut itself "seer".function defeatFenix(hero)
if GetObjectiveState('fenix') == OBJECTIVE_UNKNOWN then
SetObjectiveState('fenix', OBJECTIVE_ACTIVE)
startThread(checkFenix)
elseif GetObjectiveState('fenix') == OBJECTIVE_COMPLETED then
Trigger(4, 'seer', nil)
AddHeroCreatures(hero, CREATURE_ANGEL, 45)
end
end
function checkFenix()
while 1 do
if not IsObjectExists('Phoenix1') then
SetObjectiveState('fenix', OBJECTIVE_COMPLETED)
break
end
sleep(10)
end
end
SetObjectEnabled('seer', nil)
Trigger(4, 'seer', 'defeatFenix')
Added 10 minutes later
For this to work, move the quest to the main list, name it "fenix", and also set IsInitialyActive and IsInitialyVisible to false, Kind = MANUAL, and name the hut itself "seer".function defeatFenix(hero)
if GetObjectiveState('fenix') == OBJECTIVE_UNKNOWN then
SetObjectiveState('fenix', OBJECTIVE_ACTIVE)
startThread(checkFenix)
elseif GetObjectiveState('fenix') == OBJECTIVE_COMPLETED then
Trigger(4, 'seer', nil)
AddHeroCreatures(hero, CREATURE_ANGEL, 45)
end
end
function checkFenix()
while 1 do
if not IsObjectExists('Phoenix1') then
SetObjectiveState('fenix', OBJECTIVE_COMPLETED)
break
end
sleep(10)
end
end
SetObjectEnabled('seer', nil)
Trigger(4, 'seer', 'defeatFenix')

Прокрастинирую...
"...Завтра станет лучше
но солнце так и не взошло..."