AutoRoller
/action logic
Action can be none, need, greed, or disenchant
Logic can be any lua statement that evaluates to true or false
Add --
at the beginning of the line to disable:
--/need purple
Constants
poor | 0 |
common | 1 |
uncommon | 2 |
rare | 3 |
epic | 4 |
legendary | 5 |
artifact | 6 |
heirloom | 7 |
silver | 100 |
gold | 10000 |
Variables
raid | boolean | true if you are in a raid |
party | boolean | false if you are in a raid |
combat | boolean | true if you are in combat |
quality | number | 0 to 7, use constants above |
itype | string | Armor, Weapon, etc |
subtype | string | see http://www.wowwiki.com/ItemType |
ilvl | number | item level |
reqlvl | number | required level to equip |
name | string | name of item, case sensitive |
id | number | itemID |
boe | boolean | true if item is bind on equip |
bop | boolean | true if item is bind on pickup |
zone | string | current zone from GetZoneText() |
subzone | string | current sub zone from GetSubZoneText() |
value | number | vender cost of an item in copper |
green | boolean | true if uncommon |
blue | boolean | true if rare |
purple | boolean | true if epic |
need | boolean | true if you can roll need |
greed | boolean | true if you can roll greed |
disenchant | boolean | true if you can roll disenchant |
betterilvl | boolean | true if the item's ilvl is higher than equipped |
GearScore or GearScoreLite required
gearscore | number | gearscore of the item |
bettergs | boolean | true if item's gearscore is higher than equipped |
The following is the filter set I use on one of my alts.
/none (subtype == "Pet") or (subtype == 'Mount') /need (name == "Battered Hilt") /disenchant green /greed (name == 'Frozen Orb') or not (need or disenchant) /disenchant party and blue and (value < (7 * gold)) and not betterilvl /greed party and blue and not betterilvl
For example:
BOE <-- NEED
BOP <-- NEED
BOE <-- DE
BOP <-- DE
the second 2 DE's will never get reached, even if the first 2 rules are unsuccessful. There are certain items you cant need on, so it should automatically fall back to DE for those items.
1. bool rule <-- function, return 1 for success 0 for fail
2. Check to see if you rolled anything
3. Return 1 for success and 0 for fail
4. if 0 go to next rule (check for null or segfault!)
good work so far btw, saves me the hassle of clicking stuff.
what am i doing wrong? how do yu add rules? is there a guide? explanation somewhere maybe? remember im not a coder i don't know all this stuff.
ALso how do i set it up so it rolls need on frozen orbs only? i want it to roll greed on everything else but frozen orbs i want need roll since everyone else rolls need on them. as i have it no it rolls greed and i lose every time.
You need to add a new rule with: name == "Frozen Orb"
and set the action to Need. Make sure you move that rule to the top.
Regards,
Highend
I, do however, get the confirmation dialog on every boss loot.
AutoRollerDB = {
["profileKeys"] = {
["Siaka - Cenarius"] = "Default",
["Sambe - Cenarius"] = "Default",
["Omawd - Cenarius"] = "Default",
["Kendis - Cenarius"] = "Default",
["Clotha - Cenarius"] = "Default",
["Demesne - Cenarius"] = "Default",
["Kency - Cenarius"] = "Default",
["Loail - Cenarius"] = "Default",
},
["profiles"] = {
["Default"] = {
["rules"] = {
{
["logic"] = "boe and ( quality == rare or quality == uncommon )",
}, -- [1]
{
["enabled"] = false,
}, -- [2]
{
["enabled"] = false,
}, -- [3]
},
["chat"] = false,
},
},
}