Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
Download
Updated: 04-22-14 09:28 PM
Compatibility:
Siege of Orgrimmar (5.4)
Escalation (5.3)
Updated:04-22-14 09:28 PM
Created:08-29-12 07:13 PM
Downloads:659
Favorites:3
MD5:

EVAL (A chat based calculator)

Version: 1.0.50400c
by: Zanthra [More]

This provides a simple chat window calculator.

This program responds to requests in Whispers, Party, Raid, and Guild chat messages starting with a # symbol. It evaluates them as a math function and provides the result. It is very simple to use:

To [Amberton]: #8*8
[Amberton] whispers: 8*8 = 64

To [Amberton]: #1-(1-.01)^30
[Amberton] whispers: 1-(1-.01)^30 = 0.26029962661172

It also allows other players to request calculations.

Note that this addon does produce a lambda function from the text, but also uses setfenv() to limit the functions that can be used to those related to math (sin, cos, sqrt, log, factorial, etc...), and the word "function" anywhere in the equation will fail (to prevent someone writing you into an infinite loop). If you don't trust these protections don't install the addon. If you find a vulnerability in this, please contact me at zanthra@gmail.com so i can fix it.

1.0.50400c :

* Removed some debugging print statements.

1.0.50400b :

* Fixed an issue with not properly Ambiguating player names.


1.0.50400 :

* Changed the Addon Compatability to 50400.
* Added a few more comments.
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Author
Date
1.0.50400b
3kB
Zanthra
04-22-14 09:17 PM
1.0.50400
3kB
Zanthra
04-22-14 03:15 PM
1.0
3kB
Zanthra
08-29-12 07:13 PM


There have been no comments posted to this file.
Be the first to add one.



Category Jump: