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.
Is there a way to make a function run every week without rewriting the code multiple times with a variable?
Code:
SetObjectEnabled("tav", nil)
function Army(heroname)
MessageBox("Maps/SingleMissions/Revenge of the/qwe.txt")
QuestionBox("Maps/SingleMissions/Revenge of the/rtyui.txt", "arm")
Trigger(OBJECT_TOUCH_TRIGGER, "tav", "nil")
end
function arm(heroname)
sleep(2)
gold= GetPlayerResource(1, 6)
sleep(1)
if gold<6000 then
sleep(1)
MessageBox("Maps/SingleMissions/Revenge of the/rtyu.txt")
else
gold= GetPlayerResource(1, 6)
sleep(1)
if gold>=6000 then
SetPlayerResource(1, GOLD, gold - 6000)
AddHeroCreatures("Godric", 2, 80)
MessageBox("Maps/SingleMissions/Revenge of the/aer.txt")
end
end
end