marvin Posted October 30, 2011 Posted October 30, 2011 Can anyone help me make a simple mod so that each item I add also has a % chance of landing in the hospital for a set time I pick? The % I would like to be able to set too. The hospital risk would happen when item is used not bought. Quote
newttster Posted October 30, 2011 Posted October 30, 2011 Under itemuse.php ... try adding if item id == X $chance=rand(0,3) if $chance=1 $hosptime=rand(0,10) etc ... something along those lines should work. Quote
gurpreet Posted October 30, 2011 Posted October 30, 2011 As Dominion said, attempt to do this then ask around for help with errors and such. If you can't do this, then read up on php.net and tizag, maybe even w3schools Quote
marvin Posted October 30, 2011 Author Posted October 30, 2011 As Dominion said, attempt to do this then ask around for help with errors and such. If you can't do this, then read up on php.net and tizag, maybe even w3schools At this point in my life its easier to pay someone to do it. Im happy to do that for their time and help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.