lillhomie
Junior Member
Posts: 9 Likes: 3
Currently Offline
Last Online: Oct 25, 2017 22:16:34 GMT
View Profile
Registered On: Oct 11, 2017 1:10:41 GMT
|
Post by lillhomie on Oct 12, 2017 16:51:19 GMT
Im looking for someone to help me create a HUD that counts the items that i (the bot with the looting option) pick up from monster. The game that i play dos not have and "default channel" so its not possible to read the drop messages.
Example:
Item1 : amount * price Item2 : amount * price Item3.. : amount * price
Profit: All items * price
Item1 : amount * price Item2 : amount * price
Waste: total waste from used "pots" but in this game they are caled pills so just one item that i waste on.
So basically this is a normal HUD that i want just cant figure out how the bot should count the items without the chat. So basically count from picked up items.
If you need the names from the items and id just tell me. Its around 15-20 items in total.
|
|
|
Post by Darth Maul on Oct 12, 2017 20:40:11 GMT
|
|
lillhomie
Junior Member
Posts: 9 Likes: 3
Currently Offline
Last Online: Oct 25, 2017 22:16:34 GMT
View Profile
Registered On: Oct 11, 2017 1:10:41 GMT
|
Post by lillhomie on Oct 13, 2017 19:05:43 GMT
The game that i play dos not have any* "default channel".
I know how to make the bot to count what i have in my open backpacks. But its not what im looking for. So i add that so there is no missunderstanding.
Atm im using this as HUD. Just basic information.
auto 1 dontlist | setpos [$screenright + 20] [$screentop - 20] | setcolor 66 CC FF | displaytext 'CAVEBOT INFO'
auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 20] [$screentop - 50] | displaytext 'Level: $level' auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 165] [$screentop - 50] | displaytext 'Mlvl: $mlevel' auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 13] [$screentop - 33] | displaytext ________________________ auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 80] [$screentop - 50] | displaytext \../ Skills \../ auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 13] [$screentop - 58] | displaytext ________________________
auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 20] [$screentop - 75] | displaytext 'Exp till level : $formatnum.$exptnl' auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 20] [$screentop - 90] | displaytext 'Exp k/h: $formatnum.$exph' auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 20] [$screentop - 105] | displaytext 'Tid till lvl: $formattime.$timetnl' auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 20] [$screentop - 120] | displaytext 'Gained this session: $expgained' auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 20] [$screentop - 135] | displaytext 'Online: $formattime.$deltatime'
I would like to have the loot and thing under it.
Hope someone is willing to make this ás fast as possible.
|
|
|
Post by Darth Maul on Oct 14, 2017 15:04:13 GMT
Something like this should work for a single item.
auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 20] [$screentop - 175] | set $rhgp '30000' | set $rhit '3392' | Countitems '$rhit' | displaytext 'Royal Helmets looted: $count (Profit: [$count*$rhgp]'
|
|
lillhomie
Junior Member
Posts: 9 Likes: 3
Currently Offline
Last Online: Oct 25, 2017 22:16:34 GMT
View Profile
Registered On: Oct 11, 2017 1:10:41 GMT
|
Post by lillhomie on Oct 14, 2017 16:37:13 GMT
Sadly it dos not. :S i tried it and it dos not count anything :S changed it to just basic gold coins so when i was killing mobs it picked it up but nothing happenes. Also tried with basic meat and ham. :S and its spaming the item
|
|
|
Post by Darth Maul on Oct 14, 2017 17:29:43 GMT
Ok, damn.
This works. Place this into your persistent hotkeys:
auto 100 | dontlist | Countitems '$rhit' | wait 10000 |
Then place this either in your persistent hotkeys, if you want it to always display, or as a normal hotkey/shortkey.
auto 1 dontlist | setcolor 66 CC FF | setpos [$screenright + 20] [$screentop - 175] | displaytext 'Royal Helmets looted: $count (Profit: [$count*$rhgp]' | set $rhgp '30000' | set $rhit '3031' |
This will actively count how many Gold Coins you have in any of your backpacks every 10seconds. You can adjust the value of the item, or add more items to be checked by repeating the scripts.
|
|
lillhomie
Junior Member
Posts: 9 Likes: 3
Currently Offline
Last Online: Oct 25, 2017 22:16:34 GMT
View Profile
Registered On: Oct 11, 2017 1:10:41 GMT
|
Post by lillhomie on Oct 14, 2017 23:28:45 GMT
Thanks. So its not possible for the bot to count picked up items without to have all the backpacks open ? Iv seen they added a channel caled "party" where u can see what the monster drops. If the hud can only work by counting the items in my backpack and not from picked up items or the new "party" that's fine I guess..
|
|
|
Post by Darth Maul on Oct 17, 2017 3:58:45 GMT
If elfbot can't detect the messages from the loot, then you can't count them using the messages. This might be useful to determining if elfbot can detect the message: elfbotscripts.freeforums.net/post/1002
|
|
lillhomie
Junior Member
Posts: 9 Likes: 3
Currently Offline
Last Online: Oct 25, 2017 22:16:34 GMT
View Profile
Registered On: Oct 11, 2017 1:10:41 GMT
|
Post by lillhomie on Oct 17, 2017 12:11:32 GMT
Thank you.
|
|