TheBigChief Posted March 2, 2009 Posted March 2, 2009 Is there a way to get the outcome of a crime give a random item rather than a specific item? Quote
AlabamaHit Posted March 3, 2009 Posted March 3, 2009 Re: [V2] Quick Question - Crimes yes its possible lol....with quite alot of modifiying Quote
TMan Posted March 3, 2009 Posted March 3, 2009 Re: [V2] Quick Question - Crimes go to docrime.php find: if($r['crimeSUCCESSITEM']) { item_add($userid, $r['crimeSUCCESSITEM'], 1); } i believe this is where item is added to the user for success of the crime. maybe you could do random item ID or Item type (you may want item type for crimes) im not going to make the mod for you as i do not need a mod like this. Quote
POG1 Posted March 3, 2009 Posted March 3, 2009 Re: [V2] Quick Question - Crimes $items = array(1,2,4,12,8); item_add($userid, $items[mt_rand(0,4)], 1); Quote
TheBigChief Posted March 6, 2009 Author Posted March 6, 2009 Re: [V2] Quick Question - Crimes So impressed that this worked!!!! 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.