Skip to content
#2627
Auto-translated
I've rewritten this script a bit.
function new_day() local day = GetDate(DAY_OF_WEEK) if day == 2 and IsObjectInRegion('kan','kopt') then CreateMonster( 'kan', 91, 5,81, 122, 0, MONSTER_MOOD_WILD, MONSTER_COURAGE_CAN_FLEE_JOIN, 0)--creates a phoenix elseif day==2 then CreateMonster( 'kcn', 49, 5,81, 122, 0, MONSTER_MOOD_WILD, MONSTER_COURAGE_CAN_FLEE_JOIN, 0)-- creates druids end end Trigger(NEW_DAY_TRIGGER,'new_day')
However, in the end, neither druids nor phoenixes appear, although, according to the logic, only druids should be created.