The prices of drugs in the game are set prices in each city...here is the code that I have now:
CODE
if ($location == "USA"){
$sputnit = 1225;
$skunk = 4200;
$ecstacy = 5250;
$cocaine = 7525;
}elseif ($location == "New Zealand"){
$sputnit = 875;
$skunk = 3150;
$ecstacy = 4550;
$cocaine = 7000;
}elseif ($location == "Australia"){
$sputnit = 525;
$skunk = 2275;
$ecstacy = 3325;
$cocaine = 4550;
}elseif ($location == "England"){
$sputnit = 1400;
$skunk = 4550;
$ecstacy = 5950;
$cocaine = 8750;
}elseif ($location == "South Africa"){
$sputnit = 525;
$skunk = 700;
$ecstacy = 3750;
$cocaine = 6500;
}elseif ($location == "Cuba"){
$sputnit = 350;
$skunk = 875;
$ecstacy = 2275;
$cocaine = 4200;
}
$sputnit = 1225;
$skunk = 4200;
$ecstacy = 5250;
$cocaine = 7525;
}elseif ($location == "New Zealand"){
$sputnit = 875;
$skunk = 3150;
$ecstacy = 4550;
$cocaine = 7000;
}elseif ($location == "Australia"){
$sputnit = 525;
$skunk = 2275;
$ecstacy = 3325;
$cocaine = 4550;
}elseif ($location == "England"){
$sputnit = 1400;
$skunk = 4550;
$ecstacy = 5950;
$cocaine = 8750;
}elseif ($location == "South Africa"){
$sputnit = 525;
$skunk = 700;
$ecstacy = 3750;
$cocaine = 6500;
}elseif ($location == "Cuba"){
$sputnit = 350;
$skunk = 875;
$ecstacy = 2275;
$cocaine = 4200;
}
Here is what I would like to have. I would like each of the cities prices, for each drug, randomized between a certain set of numbers but I would like those prices to change again at certain intervals (say every 30mins or so). I kind of know about the RAND function but not enough to really fix my issue. Any help or guidance would be greatly appreciated.
Thanks for your time,
Mack