Diss Posted October 31, 2013 Group: Members Topic Count: 67 Topics Per Day: 0.02 Content Count: 207 Reputation: 1 Joined: 05/01/13 Last Seen: July 23, 2016 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted October 31, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 16 hours ago Share 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 Link to comment Share on other sites More sharing options...
Diss Posted October 31, 2013 Group: Members Topic Count: 67 Topics Per Day: 0.02 Content Count: 207 Reputation: 1 Joined: 05/01/13 Last Seen: July 23, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted October 31, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 16 hours ago Share 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 Link to comment Share on other sites More sharing options...
Question
Diss
Change to code
Link to comment
Share on other sites
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.