integral Posted February 13, 2012 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 167 Reputation: 4 Joined: 02/01/12 Last Seen: August 20, 2017 Share Posted February 13, 2012 Is it possible to trigger a random event? Example: A disguise event will trigger anytime of the day. Thank you. Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted February 13, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share Posted February 13, 2012 Yes, it's possible. Check the script commands for OnClock and donpcevent. Quote Link to comment Share on other sites More sharing options...
Matheus Posted February 13, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 63 Reputation: 6 Joined: 11/15/11 Last Seen: December 13, 2013 Share Posted February 13, 2012 OnClockXXXX: callfunc("randAndCall"); In the function, you put: switch(rand(0,1)){ case 0: // here you call you event case 1: break; default: break; } I think this works o_o Quote Link to comment Share on other sites More sharing options...
integral Posted February 14, 2012 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 167 Reputation: 4 Joined: 02/01/12 Last Seen: August 20, 2017 Author Share Posted February 14, 2012 What if I want the event to trigger when a certain number of ip address are connected? Quote Link to comment Share on other sites More sharing options...
Matheus Posted February 14, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 63 Reputation: 6 Joined: 11/15/11 Last Seen: December 13, 2013 Share Posted February 14, 2012 In OnPCLoginEvent label, make the script check the user IP (save in one variable) and if the IP be equal the 'IP to Activate', you use callfunc (better to control). Quote Link to comment Share on other sites More sharing options...
Question
integral
Is it possible to trigger a random event?
Example: A disguise event will trigger anytime of the day.
Thank you.
Link to comment
Share on other sites
4 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.