shado360 Posted December 27, 2010 Author Share Posted December 27, 2010 Hi, Im using EO, and I'd like to make a random roll command like the ones in big online games. For instance, I'd type: /roll, and it would display this: (Player Name) has rolled a (Number Between 1-10). I'd use this command for things like group boss fights, and when the players would kill it, they would roll to see who gets the loot. ;D Is this possible?Thanks,Païn Link to comment Share on other sites More sharing options...
VitinhooxD Posted December 27, 2010 Share Posted December 27, 2010 That is possible . A rnd should do that. Link to comment Share on other sites More sharing options...
shado360 Posted December 27, 2010 Author Share Posted December 27, 2010 @[Cake:> Woods ™ link=topic=67323.msg726182#msg726182 date=1293481646]> That is possible . A rnd should do that.What is that?~Païn Link to comment Share on other sites More sharing options...
Yxxe Posted December 27, 2010 Share Posted December 27, 2010 rnd() is random. Link to comment Share on other sites More sharing options...
VitinhooxD Posted December 27, 2010 Share Posted December 27, 2010 Damn you Lightning you're so quick xD Link to comment Share on other sites More sharing options...
shado360 Posted December 27, 2010 Author Share Posted December 27, 2010 So… how would i go about making that a command?Like this?:Case "/roll"Call MsgBox("You have rolled a" rnd(1-10))Like that?~Païn Link to comment Share on other sites More sharing options...
Yxxe Posted December 27, 2010 Share Posted December 27, 2010 @[Cake:> Woods â„¢ link=topic=67323.msg726187#msg726187 date=1293482082]> Damn you Lightning you're so quick xDAs fast as Lightning! Sorry, I'll just go… ;D@Päïñ:> So… how would I go about making that a command?> Like this?:> > Case "/roll"> Call MsgBox("You have rolled a" rnd(1-10))> > Like that?> > ~PaïnRandom = rnd(10) Link to comment Share on other sites More sharing options...
shado360 Posted December 27, 2010 Author Share Posted December 27, 2010 This is soooo confusing >_< Could you show me how the whole command would look, please?Thanks,Païn Link to comment Share on other sites More sharing options...
VitinhooxD Posted December 27, 2010 Share Posted December 27, 2010 Case "/roll"Dim lol as longlol = rnd(10)AddText GetPlayerName(MyIndex) & " rolled " &lol , QBColor(Yellow) Link to comment Share on other sites More sharing options...
Robin Posted December 27, 2010 Share Posted December 27, 2010 That'll only show it for the person who rolled it. Link to comment Share on other sites More sharing options...
shado360 Posted December 27, 2010 Author Share Posted December 27, 2010 @Robin:> That'll only show it for the person who rolled it.How would i make it show for everyone on the map?~Païn Link to comment Share on other sites More sharing options...
Robin Posted December 27, 2010 Share Posted December 27, 2010 Send a packet to the client to trigger a map message. Link to comment Share on other sites More sharing options...
shado360 Posted December 27, 2010 Author Share Posted December 27, 2010 @Robin:> Send a packet to the client to trigger a map message.*Sigh* I need to stop asking questions that I won't understand the answer to…. :(~Païn Link to comment Share on other sites More sharing options...
VitinhooxD Posted December 27, 2010 Share Posted December 27, 2010 Google is your friend. Link to comment Share on other sites More sharing options...
SawQuart Posted December 27, 2010 Share Posted December 27, 2010 You know what a package is, right? I don't program and even I understood what he's saying. Link to comment Share on other sites More sharing options...
VitinhooxD Posted December 27, 2010 Share Posted December 27, 2010 packet* Link to comment Share on other sites More sharing options...
Aydan Posted December 27, 2010 Share Posted December 27, 2010 A "packet" is basically data sent from the server to the client I believe. Link to comment Share on other sites More sharing options...
Robin Posted December 27, 2010 Share Posted December 27, 2010 ITT: The blind leading the blind. Link to comment Share on other sites More sharing options...
Aydan Posted December 27, 2010 Share Posted December 27, 2010 ![](http://i1229.photobucket.com/albums/ee475/AydanWatkins/Reactions/1224470147721gs3.jpg) 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