• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Problem - AverageMana check for condition checking.

kaen01

I am not a complete idiot!..some parts are missing
Creator
Joined
Jun 12, 2015
RedCents
58,244¢
Version of KissAssist.mac?
kiss11
When did your problem start?
allwyas
Character Role?
  1. Assist
What class is having this issue?
  1. Beastlord
How often does this issue occur?
Always
Can you reproduce the issue?
yes
was looking for a way to check for average mana of the group.

came up with this
C-like:
Sub ManaStuff
    /declare i int local 0
    /declare c int local 0
    /declare GroupMana int local 0
    /declare AvgMana int outer 0
    /for i 0 to 5
        /if (${Group.Member[${i}].PctMana} && ${Group.Member[${i}].Present} && !${Group.Member[${i}].Hovering}) {
        /varcalc c ${c}+1
        /varcalc GroupMana ${GroupMana}+${Group.Member[${i}].PctMana}
        }
    /next i
    /varcalc AvgMana ${GroupMana}/${c}
/return

then we could do

cond10= ${AvgMana} < 80
to see if groups avgmana was under 80

maybe add another variable ${ManaCheck} < 60 which would return true if anyone was under 60% mana

just an idea for some checks that dont exist as tlos like avghp, and injured etc.
 
Code:
cond12=(!${Select[${Group.Member[${0}].Class.ShortName},WAR,MNK,ROG,BER]} && ${Group.Member[${0}].PctMana}<=50 && ${Group.Member[${0}].PctMana}>0 && ${Group.Member[${0}].Present} && !${Group.Member[${0}].Hovering}) ||
(!${Select[${Group.Member[${1}].Class.ShortName},WAR,MNK,ROG,BER]} && ${Group.Member[${1}].PctMana}<=50 && ${Group.Member[${1}].PctMana}>0 && ${Group.Member[${1}].Present} && !${Group.Member[${1}].Hovering}) ||
(!${Select[${Group.Member[${2}].Class.ShortName},WAR,MNK,ROG,BER]} && ${Group.Member[${2}].PctMana}<=50 && ${Group.Member[${2}].PctMana}>0 && ${Group.Member[${2}].Present} && !${Group.Member[${2}].Hovering}) ||
(!${Select[${Group.Member[${3}].Class.ShortName},WAR,MNK,ROG,BER]} && ${Group.Member[${3}].PctMana}<=50 && ${Group.Member[${3}].PctMana}>0 && ${Group.Member[${3}].Present} && !${Group.Member[${3}].Hovering}) ||
(!${Select[${Group.Member[${4}].Class.ShortName},WAR,MNK,ROG,BER]} && ${Group.Member[${4}].PctMana}<=50 && ${Group.Member[${4}].PctMana}>0 && ${Group.Member[${4}].Present} && !${Group.Member[${4}].Hovering}) ||
(!${Select[${Group.Member[${5}].Class.ShortName},WAR,MNK,ROG,BER]} && ${Group.Member[${5}].PctMana}<=50 && ${Group.Member[${5}].PctMana}>0 && ${Group.Member[${5}].Present} && !${Group.Member[${5}].Hovering})


Really need a way to check group members min/mana or average mana for conditions to be used in DPS section. Or @eqmule core mq2 really needs Group.AvgMana and Group.AvgEndurance please.
 
Problem - AverageMana check for condition checking.

Users who are viewing this thread

Back
Top
Cart