Release Notes:
- Replaced Coda's expression parser with a parser of my own that
converts the expression from infix to postfix using the
shunting-yard algorithm and then evaluates it.
- Added support for DnD3e character creation rolls.
- Removed Exalted dice rolls from the service, I'm not 100% sure they
were ever being done right.
- Used enums for the dice roll types and errors for easier usage.
- Fixed overflow checks.
- Allow for d% anywhere in an expression, suggested by Namegduf.
- Split apart parsing the expression and evaluating it, suggested by
Namegduf.
- Better buffer overflow checking, and removed check for the
expression being too long, the current parser can handle long
expressions unlike the last parser (no offense to Coda).
- Added support for the pen & paper RPG Earthdawn, suggested by
DukePyrolator.
- Added support for math functions. (such as sqrt, trunc, cos, etc.)
- Added support for the math constants of e and pi.
- Added a CALC command which is like ROLL but without rounding.
- Added configuration options for DiceServ's pseudo-client name as
well as giving a network-wide ability for channel operators to
set DiceServ channel ignores.
- Added functionality for a shorter extended output if showing the
results of each individual roll would be too long to display.
- Better way of determining when to display the extended output
buffer.
- Utilize the Mersenne Twister RNG (random number generator) instead
of Anope's RNG, it's faster but uses up a bit more memory. As a
result, Coda's algorithm used in the dice roller is not longer
used.
- Added support for dual-argument functions of max(), min, and rand().
Files:
- diceserv.cpp For Anope 1.9.4 - (1426 Downloads) [View In Browser]
- diceserv.cpp For Anope 1.9.3 - (1406 Downloads) [View In Browser]
- diceserv.c For Anope 1.9.1 - (1405 Downloads) [View In Browser]
- diceserv.c For Anope 1.9.2 - (1336 Downloads) [View In Browser]
- diceserv.c For Anope 1.9.0 - (1465 Downloads) [View In Browser]
- diceserv.c For Anope 1.8 (designed for 1.8.0 to 1.8.7) - (1803 Downloads) [View In Browser]