View unanswered posts | View active topics It is currently Thu May 23, 2019 9:20 am



Reply to topic  [ 2 posts ] 
Haveitem and Trigger 
Author Message
Paying User

Joined: Thu Jun 23, 2016 7:59 am
Posts: 318
Location: East Coast U.S.
Reply with quote
The haveitem<x:trigger:x command isn't working right it seems.

haveitem>X:trigger:Y

haveitem<1:trigger:1

The haveitem trigger can be used to trigger an action when the casting slot of the action has the specified amount of items in it. I.e. if you add this to a drinking macro and you run out of water, an action with the specified trigger ID can be cast, i.e. a mage can conjure new water. This condition only applies to item usage (either with use: or cast:)!

Using this on a drink command will not trigger conjure water - it does not recognize conjure water or food. The bot stands still.

//Drink
use:drink
mana<41
haveitem<2:triggers:4
!incombat

//Conjure Water
cast:65
triggeredby:4


Even adding a channelingtime and cooldown to drink does not help. Removed it to make it sure was an issue. Does not trigger cast. Triggers 1-3 work perfect in the profile.


Edit: Thank you - that makes perfect sense why it was doing what it was.


Last edited by garbear121 on Thu May 16, 2019 6:16 pm, edited 1 time in total.



Wed May 15, 2019 10:36 pm
Profile
Site Admin

Joined: Fri Feb 08, 2013 5:24 pm
Posts: 2830
Reply with quote
Switch them around. Triggeredby: should always come before the actual trigger happens. Even though the triggeredby action has higher priority, by logic it can not happen before the trigger is actually activated.

The haveitem trigger is a special case that interrupts further checking of the profile actions and starts from the beginning. But you don't have a triggeredby action that changes the status quo before it reaches the haveitem check again so it will end up in a loop.


Thu May 16, 2019 2:04 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Baidu [Spider] and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software