I've been trying to write a macro to trigger a pseudo autosell sell sequence which uses the @go command instead of calculating the route and walking all the way back. The biggest problem I have now is to trigger a macro based on the number of items in the inventory, ofcourse inventory trigger gives you the number of a particular item, however I would like to know the sum of all items. Is there a trigger (that I might have missed out from the macro plugin guide) which could do that?
Right now I am using the console message "Calculating route to..." to trigger the autosell and "Storage Closed" to return with a @warp command, but as a programmer that bugs me
Automacro: Number of inventory items
Moderator: Moderators
-
- Noob
- Posts: 7
- Joined: 25 Oct 2014, 17:12
- Noob?: No
Re: Automacro: Number of inventory items
$x = @eval (return $::char->inventory->size());
You don't need to use any automacro.
Read this :
http://forums.openkore.com/viewtopic.ph ... 72#p269172
You don't need to use any automacro.
Read this :
http://forums.openkore.com/viewtopic.ph ... 72#p269172
Learn rules
-
- Noob
- Posts: 7
- Joined: 25 Oct 2014, 17:12
- Noob?: No
Re: Automacro: Number of inventory items
Thanks that a breakthrough However anyway I could verify that in an automacro without using the "var" condition?
Re: Automacro: Number of inventory items
http://wiki.openkore.com/index.php/Macro_plugin
Eval condition.
Do u want to check and sum the amount of items in your inventory ? o.O Oh Lord
Eval condition.
Do u want to check and sum the amount of items in your inventory ? o.O Oh Lord
Learn rules