the point is .. if ${FindItem[Hammer of Delusions].Timer} is always 1 or more
1 - 20 ( 120 sec recast ) 20 tick..
you will never know when to use the REAL spell and not the item
/if ( !${FindItem[Hammer of Delusions].Timer} && ${FindItem[Hammer of Delusions].ID} ) {
/call Cast "Hammer of Delusions" item 2s
} else {
/call Cast Euphoria gem1 20s
}
unless you do it this way. but that would work if thats thay why it is ment to work.
/if ( ${FindItem[Hammer of Delusions].Timer} == 1 && ${FindItem[Hammer of Delusions].ID} ) {
/call Cast "Hammer of Delusions" item 2s
} else {
/call Cast Euphoria gem1 20s
}
Fixes Item.Timer returning 0 too
early tels me that is not the case.
dont_know_at_all wrote:Change:
Code:
Dest.DWord=GetItemTimer(pItem)/6;
to
Code:
Dest.DWord=(5+GetItemTimer(pItem))/6;
Shouldn't it be that way anyway? Round up to the tic?
Dest.DWord=(5+GetItemTimer(pItem))/6; <--- works 0 - 20 ticks