Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Thank you, but I have another question – I wrote this script, but for some reason, it doesn't work. The error console doesn't show any errors.
function desentir() print("Desentirs!"); CreatureList = {CREATURE_PEASANT, CREATURE_MILITIAMAN, CREATURE_ARCHER, CREATURE_MARKSMAN, CREATURE_FOOTMAN, CREATURE_SWORDSMAN, CREATURE_PRIEST, CREATURE_CLERIC, CREATURE_CAVALIER, CREATURE_PALADIN}; for i=1,14 do if GetHeroCreatures("Hafad",CreatureList) > 5 then if i <= 4 then quantity = 1+random(6); end; if i > 4 and i <=10 then quantity = 1+random(2); end; if i > 10 then quantity = 1; end; RemoveHeroCreatures("Hafad",CreatureList,quantity); print("Hafad lost ",quantity," creatures. Creature ID = ",CreatureList); else print("Hero has less then 6 creatures this type. Creature ID = ",CreatureList); end; end; sleep(10); Trigger(NEW_DAY_TRIGGER,"desentir"); end;