View Single Post
  #6  
Unread 04-05-2009, 10:32 AM
sorinth sorinth is offline
A Griffon
 
Join Date: Jun 2006
Server: Najena
Posts: 160
Default

$mission_zone = $missions[$check_time%$mission_total][zone]; // get the mission zone name (% is a modulus -- Modulus is the remainder after the division)
$mission_quest = $missions[$check_time%$mission_total][quest]; // get the mission quest name (% is a modulus -- Modulus is the remainder after the division)

Well, check_time could be greater than 18, I was just unfamilir with how it would handle Mission_total (I told ya i been out of programming for a while).

So, that would limit the max to 18 and yet allow for expandabiliy. Nicely done! and thanx for the quick tutorial!
Reply With Quote