Diss Posted October 31, 2013 Posted October 31, 2013 (edited) this is fishing script how can i change the chance to get the item else if (.@rhea_ran == 28) { getitem 4399,1; //Thanatos Card mapannounce "trinity","" + strcharinfo(0) + " has caught a Thanatos Card!!",bc_map,"0xff77ff"; } Edited October 31, 2013 by Patskie Change to code Quote
Patskie Posted October 31, 2013 Posted October 31, 2013 You mean something like this? n = number of chance (%) so if you put 20 on the n part it is 20% if ( rand(100) < n ) getitem 4399,1; Quote
Diss Posted October 31, 2013 Author Posted October 31, 2013 (edited) else if ( rand(100) < 20 ) { getitem 4399,1; //Thanatos Card mapannounce "trinity","" + strcharinfo(0) + " has caught a Thanatos Card!!",bc_map,"0xff77ff";} should i make it like this ? or like this else if ((.@rhea_ran > 28) && (.@rhea_ran < 20)) { Edited October 31, 2013 by Diss Quote
Patskie Posted October 31, 2013 Posted October 31, 2013 To be honest i don't know what does the .@rhea_ran means. Or if you want you can do the code you made in the else if statement else if ( rand(100) < 20 ) { getitem 4399,1; //Thanatos Card mapannounce "trinity","" + strcharinfo(0) + " has caught a Thanatos Card!!",bc_map,"0xff77ff"; } Quote
Question
Diss
Change to code
3 answers to this question
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.