Jump to content

No /roll function?


Recommended Posts

  • Replies 239
  • Created
  • Last Reply

Top Posters In This Topic

yeah they really need to add a /roll function. and make a way to override that auto loot distribution in regular ops. i really hate when i get a piece of gear im already wearing when my sorc healer could really use it. it makes it very hard to gear up a guild for HM/NM
Link to comment
Share on other sites

I'm a software engineer.

 

int roll(int max) {
 return rand() % (max) + 1;
}

int roll() {
 return roll(100);
}

 

 

That code will cost you $200.

 

Thanks :)

 

If you're a software engineer, then you should know that taking the modulo of a pseudo-random number is a very bad way to generate a random number. Depending on the method used to generate the "random" number, it may be that the number returned by the system always alternates between an odd and an even number. If you then did roll(2), you would always alternate between 1 and 2.

 

The "proper" way to do it would be:

int roll(int max) {
 return (int) (rand() / (RAND_MAX) * max + 1);
}

 

Additionally, many random functions in modern languages return a float between 0 and 1, so the act of multiplying by RAND_MAX is not needed, and many of those languages also provide built-in random functions that return integers between two specified numbers.

Link to comment
Share on other sites

It is here

 

Darthinfimus: Do you plan to implement a /roll or /random command for use in master looter situations?

 

Damion Schubert: Diceslingers of the world rejoice! /roll has already been implemented on our internal development servers and should be coming to you guys Real Soon Now (in an upcoming weekly patch).

Link to comment
Share on other sites

Hey guys, didnt read this whole thread to see if this was mentioned already, but if your guild is using Teamspeak instead of Ventrillo, then there is an addon for the Teamspeak chat window that gives you dice rolling functionality

 

http://addons.teamspeak.com/directory/plugins/miscellaneous/Dice-Bot.html

 

Only one person has to actually install the addon, probably the raid leader, or master looter.

 

I agree SWTOR should have this built in, its quite simple, but until they do, this could make things easier for you.

 

 

EDIT -

Also, upon updating TS, this stopped working, but there are a few other dice addons for TS, one's a LUA script, it works

 

http://addons.teamspeak.com/directory/plugins/miscellaneous/Dice-Rolling-Lua-Script.html

 

This one you would just use the command (d100) in TS chat to roll for 100. Everyone in TS can see the rolls, should suffice until SWTOR gets it together.

Edited by Wanabrutbeer
Link to comment
Share on other sites

Not reading all the way through this thread, but adding my voice to this...

 

What a bone-head move this was. Seriously? No roll?

 

Here's my "constructive" criticism:

 

Whoever overlooked this, or let it go without something so simple, yet so crucial.....should be taken outside and flogged.

 

What a total joke.

Link to comment
Share on other sites

×
×
  • Create New...