function WaitForTown takes integer towns, integer townid returns nothing
local integer i = 0
loop
call Sleep(10)
exitwhen TownCount(townid) >= towns
set i = i + 1
exitwhen i == 12
endloop
endfunction
Please login using your WC3Modding.info account