c2greentea Posted October 13, 2014 Group: Members Topic Count: 68 Topics Per Day: 0.02 Content Count: 173 Reputation: 0 Joined: 06/07/14 Last Seen: December 17, 2014 Share Posted October 13, 2014 This is my poring race script http://upaste.me/r/008d15473b05f9c7d We noticed that almost all the time Marin wins every session. Maybe 75% since we used this script, Marin would always win. Is there something wrong with the script? Pls help Quote Link to comment Share on other sites More sharing options...
Winz Posted October 13, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted October 13, 2014 The winner is decided here: set $@win,rand(1,6); switch($@win) { case 1: donpcevent "Poring#race::OnPoringWin"; break; case 2: donpcevent "Drops#race::OnDropsWin"; break; case 3: donpcevent "Poporing#race::OnPoporingWin"; break; case 4: donpcevent "Marin#race::OnMarinWin"; break; case 5: donpcevent "Pouring#race::OnPouringWin"; break; default: donpcevent "Santa Poring#race::OnSantaWin"; break; } Therefore, it is really random. And I have no idea on how to modify this randomizing thing. if Marin wins 75% of the time in your server, then your server's mascot shall be Marin 1 Quote Link to comment Share on other sites More sharing options...
Question
c2greentea
This is my poring race script http://upaste.me/r/008d15473b05f9c7d
We noticed that almost all the time Marin wins every session. Maybe 75% since we used this script, Marin would always win. Is there something wrong with the script? Pls help
Link to comment
Share on other sites
1 answer 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.