openkore icon indicating copy to clipboard operation
openkore copied to clipboard

[eventMacro] got bug with EventMacro condition (IsNotEquippedID)

Open oleokoong opened this issue 6 years ago • 1 comments

I already using latest eventMacro and openkore and also check this https://github.com/OpenKore/openkore/pull/920

and still reproduce the error

my eventMacro block

automacro buystunner { BaseLevel > 35 JobID 4, 8 Zeny > 65000 IsNotEquippedID rightHand 16008, rightHand 1522 ConfigKeyNot QuestPart3 bstunnerdone run-once 1 call { do conf buyweapon1.block Stunner do conf buyweapon1.npc morocc 37 65 do conf buyweapon1.price 60000 do conf buyweapon1.minAmount 0 do conf buyweapon1.maxAmount 1 do conf buyweapon1.disabled 0 do conf attackEquip_rightHand Stunner do iconf Stunner 1 0 0 do conf QuestPart3 bstunnerdone } }

[Jan 12 19:32:30 2020.85] [eventMacro] Printing values off all variables [Jan 12 19:32:30 2020.86] -------- Scalars -------- [Jan 12 19:32:30 2020.87] 1 - '$.ZenyLast' = '361283' [Jan 12 19:32:30 2020.88] 2 - '$.IsNotEquippedIDLastIsEmpty' = '0' [Jan 12 19:32:30 2020.89] 3 - '$.ConfigKeyNotLastKeyValue' = 'hjkhj' [Jan 12 19:32:30 2020.90] 4 - '$.IsNotEquippedIDLastSlot' = 'rightHand' [Jan 12 19:32:30 2020.92] 5 - '$.JobIDLast' = '8' [Jan 12 19:32:30 2020.93] 6 - '$.ConfigKeyNotLastWantedValue' = 'bstunnerdone' [Jan 12 19:32:30 2020.95] 7 - '$.JobIDLastListIndex' = '1' [Jan 12 19:32:30 2020.96] 8 - '$.ConfigKeyNotLastKey' = 'QuestPart3' [Jan 12 19:32:30 2020.98] 9 - '$.ConfigKeyNotLastMemberIndex' = '0' [Jan 12 19:32:30 2020.99] 10 - '$.caller' = 'buystunner' [Jan 12 19:32:31 2020.13] 11 - '$.BaseLevelLast' = '68'

look like its doest check the ID 16008 and 1522 and right hand is equiped with Stunner (1522)

at the moment i only can use "QuestPart3" to limit it run again

------------------ Openkore Issues Template ------------------

  • Openkore version git:
  • Server:
  • Bug Report / Feature Request:
  • Summary:

oleokoong avatar Jan 12 '20 08:01 oleokoong

i know a bug on this inventory and equipment conditions, that whenever is checking if the item/equip DO NOT exist (a.k.a has amount 0) problems will happen, because sometimes it gives a false positive.

the only workaround a found, is to always check for an item that you will always have in your inventory, like eden badge or something it helps

InInventoryID 6495 = 1 #Eden Merit Badge

Nipodemos avatar Jan 12 '20 16:01 Nipodemos