arkayenro / arkinventory

A World of Warcraft Inventory mod for Retail, Burning Crusade, and Classic
108 stars 14 forks source link

Implement character awareness rules #734

Open spiralofhope opened 9 years ago

spiralofhope commented 9 years ago

I'd like to have my rules be quite a bit smarter, to help reduce the horrendeous load times I'm having.

The things I can think of are:

Some examples of use:

Perhaps some of these features would be best implemented within the main rules edit window, next to the 'enabled' checkbox.

syserr0r commented 8 years ago

https://gist.github.com/syserr0r/75246817f76101daef02d8f4e22fdb2b

My implementation of character level function, cl(minlevel, maxlevel) (based on v3.07.00 BETA3)

I can now do something like:

equip() and cl(10,20) and ilvl(1,10)
or equip() and cl(21,30) and ilvl(1,20)
or equip() and cl(31,40) and ilvl(1,30)
or equip() and cl(41,50) and ilvl(1,40)
or equip() and cl(51,59) and ilvl(1,50)
or equip() and cl(60,64) and ilvl(1,80)
or equip() and cl(65,69) and ilvl(1,100)
or equip() and cl(70,74) and ilvl(1,130)
or equip() and cl(75,79) and ilvl(1,150)
or equip() and cl(80,82) and ilvl(1,270)
or equip() and cl(83,84) and ilvl(1,300)
or equip() and cl(85,87) and ilvl(1,360)
or equip() and cl(88,89) and ilvl(1,400)
or equip() and cl(90,95) and ilvl(1,480)
or equip() and cl(95,100) and ilvl(1,520)

Which allows me to categorize stuff that isn't apropriate for my item level.

It would be really nice if this could be merged into release so I don't have to keep modding my ArkInventoryRules.lua -- It's really just a copy of the characterlevelrange function.

syserr0r commented 8 years ago

Updated for 3.07.02:

https://gist.github.com/syserr0r/578600dd0d452348b14947f63c07434b

If there is a more convienent way to provide modifications then please let me know (patch/diff maybe?)