Posted: Fri Apr 29, 2005 1:37 am
You auto eat/drink when those are below 2900ish. (Somewhere between 2900 and 3000).
You can force eat/drink below 6000.
You can force eat/drink below 6000.
Need to talk about MacroQuest to other MacroQuest users?
https://mq64.org/phpBB3/
If you read the description in the first post it tells you that it eats/drinks when your hunger/thirst falls below 5000. Some Guy is right that EQ auto-consumes at around 3000.Twen wrote:is there a command to tell what your hunger and thirst currently is?and at what value do you auto eat?
Code: Select all
|Feedme.inc v2.3
#Event SetFeedMe "[MQ2] SetFeedMe#*#"
Sub FeedMeDeclares
/declare DoFeedMe int outer 1
/squelch /alias /feedme /echo SetFeedMe
/return
Sub FeedMe
/if (${Me.Casting.ID}) /return
/if (${DoFeedMe}==1) {
/if (${Me.Hunger}<=5000) /call Consume Food
/if (${Me.Thirst}<=5000) /call Consume Drink
}
/return
Sub Consume(string what)
/declare mypack string local
/declare myslot string local
/declare i int local
/declare foodcount int local
/declare food string local
/autoinventory
/if (${Cursor.ID}) /return
/varset foodcount ${Ini[feedme.ini,${what}].Count[${what}]}
/for i 1 to ${foodcount}
/varset food ${Ini[feedme.ini,${what},${what}${i}]}
/if (${FindItemCount[${food}]}>0) {
/varset mypack ${FindItem[${food}].InvSlot.Pack}
/varset myslot ${FindItem[${food}].InvSlot}
/if (${mypack}) {
/if (!${Window[${InvSlot[${mypack}].Name}].Open}) /nomodkey /itemnotify ${mypack} rightmouseup
:WaitForBagOpen
/nomodkey /ctrl /itemnotify ${myslot} leftmouseup
/if (!${Cursor.ID}) /goto :WaitForBagOpen
/nomodkey /itemnotify ${mypack} leftmouseup
/nomodkey /itemnotify ${mypack} rightmouseup
/nomodkey /itemnotify ${mypack} leftmouseup
} else {
/nomodkey /itemnotify ${myslot} rightmouseup
}
} else {
/next i
}
/return
Sub Event_SetFeedMe(string Line)
/if (!${Line.Arg[3].Length}) {
/if (${DoFeedMe}==1) {
/varset DoFeedMe 0
/echo Auto Force Feeding is now OFF
} else {
/varset DoFeedMe 1
/echo Auto Force Feeding is now ON
}
}
/if (${Line.Arg[3].Equal[ON]} || ${Line.Arg[3].Equal[TRUE]} || ${Line.Arg[3].Equal[1]}) {
/varset DoFeedMe 1
/echo Auto Force Feeding is now ON
}
/if (${Line.Arg[3].Equal[OFF]} || ${Line.Arg[3].Equal[FALSE]} || ${Line.Arg[3].Equal[0]}) {
/varset DoFeedMe 0
/echo Auto Force Feeding is now OFF
}
/return
Code: Select all
/if (!${Window[${InvSlot[${mypack}].Name}].Open}) /nomodkey /itemnotify ${mypack} rightmouseup well you could make a check if it is a combine container before opening and then I think it is CTRL + rightclick to open it and passing the new tradeskill windowSynicasm wrote:Had a minor problem with this last night and carrying a Large Sewing kit .
By default...
When you rt click on some carried Tradeskill containers they will open in the newer trade skill combine window ( the one with the recipies listed ).
When the macro tries to open the contaier via the following in the code ...it will freak out and continue to loop the errors for sometime untill a /endmacro or a /mqpause etc gets parsed.Code: Select all
/if (!${Window[${InvSlot[${mypack}].Name}].Open}) /nomodkey /itemnotify ${mypack} rightmouseup
The quickest and easiest fix is to open the container using the newer combine window ( with the recipe list etc. ) and there is a button at the bottom to change the window to be opened with ctrl Rt click. Once that is set the problem goes away.
Code: Select all
/if (${Window[TradeskillWnd].Open}) /nomodkey /notify TradeskillWnd ExperimentButton leftmouseup
/delay 5s !${Window[TradeskillWnd].Open}having a problem with bags closing after food is consumed. Was thinking maybe it's a spell_routines conflict. Was gonna try this first.jacensolo wrote:You should be able to change "i" to whatever you want, provided it doesn't match any other variable names and you change all the instances of "i". Just out of curiosity, why do you want to change "i"?
The one on page 1jacensolo wrote:The "i" isn't the problem. It's set as a local variable in both, so no possible conflict. Which version of FeedMe are you using?