Quess Posted June 16, 2011 Author Share Posted June 16, 2011 How can I make resources' item rewards have some chance to get them? Not every time.I've found this line but don't really know what to do with it:```GiveInvItem index, Resource(Resource_index).ItemReward, 1```Also tried to play with RAND function but this doesn't help there. Link to comment Share on other sites More sharing options...
Drummerpete Posted June 16, 2011 Share Posted June 16, 2011 This is a tutorial about [Multiple NPC Item Drop and Percentile Chances](http://www.touchofdeathforums.com/smf/index.php/topic,61133.0.html).I'm not 100% sure this will help but I'm pretty sure you could use it as a starting point. Link to comment Share on other sites More sharing options...
Quess Posted June 17, 2011 Author Share Posted June 17, 2011 Thanks it really helped me ^^``` rndNum = RAND(1, 10)If rndNum >= 8 Then GiveInvItem index, Resource(Resource_index).ItemReward, 1End If``` Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now