day = {} dayofmonth = {} hour = {} hunger = {} minute = {} month = {} nbBarbare = {} nbDrunk = {} nbWizzard = {} obj = {} objectif = {} time2 = {} years = {} function gui5_init(e) Hide(e) adrenaline = 98 adrenaline1 = 0 cash = 0 day = 214 dayofmonth = 0 eau = 87 eau1 = 0 hour = 19 hunger = 88 hunger1 = 0 minute = 35 minute2 = 5 time2 = 0 time3 = 0 years = 1000 trousse = 0 end function gui5_main(e) if g_KeyPressE == 0 then -- E pressed_E = 0 end time2 = math.floor(GetTimer(e)/1000) if hunger >= 100 then hunger = 100 end if hunger <= 0 then hunger = 0 HurtPlayer(-1,1) end if eau >= 100 then eau = 100 end if eau <= 0 then eau = 0 HurtPlayer(-1,1) end if adrenaline >= 100 then adrenaline = 100 end if adrenaline <= 0 then adrenaline = 0 HurtPlayer(-1,1) end if trousse >= 1 then if g_PlayerHealth <= 70 then AddPlayerHealth(e) trousse = trousse - 1 end end if minute >= 60 then hour = hour + 1 minute = minute - 60 end if hour >= 24 then hour = hour - 24 day = day + 1 end if day == 365 then year = year + 1 day = 0 end if day <= 30 then month = "Janvier" dayofmonth = day + 1 end if day <= 58 and day > 30 then month = "Fevrier" dayofmonth = day + 1 - 31 end if day <= 89 and day > 58 then month = "Mars" dayofmonth= day+1-59 end if day <= 119 and day > 89 then month = "Avril" dayofmonth = day + 1 - 90 end if day <= 150 and day > 119 then month = "Mai" dayofmonth = day + 1 - 120 end if day <= 180 and day > 150 then month = "Juin" dayofmonth = day + 1 - 151 end if day <= 211 and day > 180 then month = "Juillet" dayofmonth= day+1-182 end if day <= 242 and day > 211 then month = "Aout" dayofmonth = day + 1 - 213 end if day <= 272 and day > 242 then month = "Septembre" dayofmonth = day + 1 - 243 end if day <= 304 and day > 272 then month = "Octobre" dayofmonth = day + 1 - 273 end if day <= 334 and day > 304 then month = "Novembre" dayofmonth = day + 1 - 303 end if day <= 365 and day > 334 then month = "Decembre" dayofmonth = day + 1 - 334 end if hour <= 9 then if minute <= 9 then Text(75,53,1,"Date locale: "..dayofmonth.." "..month.." "..years.." 0"..hour..":0"..minute.."") else Text(75,53,1,"Date locale: "..dayofmonth.." "..month.." "..years.." 0"..hour..":"..minute.."") end end if hour > 9 then if minute <= 9 then Text(75,53,1,"Date locale: "..dayofmonth.." "..month.." "..years.." "..hour..":0"..minute.."") else Text(75,53,1,"Date locale: "..dayofmonth.." "..month.." "..years.." "..hour..":"..minute.."") end end Text(75,56,1,"heure GMT: ") Text(82,56,1,os.date("%H:%M")) Text(75,62,1,"Cash: "..cash.."$") adrenaline1 = math.floor(adrenaline) hunger1 = math.floor(hunger) eau1 = math.floor(eau) Text(4,7,3,"nourriture:") Text(4,10,3,""..hunger1.." %") Text(4,13,3,"eau:") Text(4,16,3,""..eau1.." %") Text(4,19,3,"adrenaline:") Text(4,22,3,""..adrenaline1.." %") end