Consume food for bots

bob_the_builder

Well-Known Member
Found a few additions such as AutoConsumeOn but I can not seem to get these to work.

Amadeus
09-13-2008, 09:33 PM
September 13, 2008 -- By Amadeus
[ISXEQ2-20080903.0053]
* Added new MEMBER to the 'item' datatype:
1. AutoConsumeOn (bool type)
2. IsFoodOrDrink (bool type)
3. IsAutoConsumeable (bool type)
4. CanBeRedeemed (bool type)
5. IsEquipped (bool type)
* Added new METHOD to the 'item' datatype:
1. ToggleAutoConsume [Works for anything that can be 'auto consumed', including food/drink]
* Fixed the "Consume" METHOD of the 'item' datatype:

Such as:

Me.Inventory[Crispy Fried King Prawn Heads]:Consume

I was able to identify the food item by Type and it reported Item.

Anyways, looking for a addition to my eq2bot class files to check the effect for Homemade Meal and Consume if no effect.

Any help? I just can't seem to get this working.

ob
 

Amadeus

The Maestro
Staff member
Me.Inventory[Crispy Fried King Prawn Heads]:Consume
this would not be right -- it would have to be equipped before it could be consumed. Your script would have to equip the item, then consume it, as you cannot consume food/drink that is not equipped.
 

Amadeus

The Maestro
Staff member
Code:
 Me:InitializeEffects
do
{
   waitframe
}
while ${Me.InitializingEffects}
echo ${Me.Effect[Homemade meal](exists)}
...something to that effect should work....or just consume it and see what it says in the effects window. There may not be a way of determining what EXACT food/drink is being consumed.
 

Valerian

ISX Specialist
Code:
   Me:InitializeEffects
   while ${Me.InitializingEffects}
      waitframe
   echo ${Me.Effect[Homemade meal](exists)}
KISS method of scripting :evil:
 
Top Bottom