- Joined
- Sep 26, 2009
- Messages
- 9,534
JASS:
function Work takes everything returns nothing
loop
exitwhen (hours > 8 + overtime)
call DoNothing( )
set hours = hours + 1
endloop
if DaysWorked = 10 then
call Payday( )
endif
set DaysWorked = DaysWorked + 1
endfunction