Download
(7 Kb)
Download
Updated: 02/13/23 04:04 PM
Compatibility:
Scribes of Fate (8.3.5)
Firesong (8.2.5)
Updated:02/13/23 04:04 PM
Created:09/10/22 12:24 AM
Monthly downloads:96
Total downloads:5,115
Favorites:16
MD5:
Grubmaster Food, Drink & EXP Auto Consume [Masteroshi430's branch]  Popular! (More than 5000 hits)
Version: 2023.02.13
by: Masteroshi430 [More]
NOTE:
The code of this addon has been implemented in PersonalAssistant if you prefer using an all-in-one addon
I'd likely update the code in Personal Assistant rather than this addon but we'll see how thing goes in the future.

This is Grubmaster by aethronx maintained by Masteroshi430.

Description:
This addon allows a food or drink to be easily chosen from inventory and used automatically whenever the player's current food buff is nearing expiration, an experience buff food/drink or an experience scroll can also be easily chosen from inventory and used automatically whenever the player's current experience buff has expired.

To select a food/drink or experience buff item to use automatically, right click on it in inventory and chose the "Consume Automatically" option.

After selecting a food/drink, it will be used immediately if no food/drink buff is active. If a food/drink buff is active, it will be used when the buff is nearing expiration (5 minutes before by default), same goes for experience buffs except it is after their expiration (1 second after by default).

Right clicking the selected food/drink or experience buff item in inventory again will show an option to stop automatic consumption.

A message will be shown in the chat window when food/drink or exp buff item is used. When the item count reaches 5 or less in player inventory, a low inventory warning will be shown in chat. When item count is 0 and the expiration buffer has been reached, a warning will be shown in chat every minute. This can be turned off by using the appropriate slash command (see below).

Food, drinks or experience buff items cannot be used automatically while in combat. This is a limitation of the game's API. If a food cannot be used for any reason, it will try again 10 seconds later.

Using any food/drink or experience buff item manually at any time while Grubmaster is running is perfectly fine.


Experience buffs (non stackable between each other) are considered experience buffs and use the same timer:
  • Any Experience Scroll
  • Psijic Ambrosia, Aetherial Ambrosia, Mythic Aetherial Ambrosia
  • Colovian War Torte, Molten War Torte, White-Gold War Torte

Regular food/drink buffs (non stackable between each other):
all other food/drinks buffs are on the other timer, which means you can have experience buff auto consumption and food/drink buff auto consumption running at the same time.


Available Slash Commands
Turns food/drink auto consumption on if food/drink has been previously selected: /grubmasterfoodon
Turns food/drink auto consumption off if food/drink has been previously selected: /grubmasterfoodoff

Turns EXP buff auto consumption on if EXP buff has been previously selected: /grubmasterexpon
Turns EXP buff auto consumption off if EXP buff has been previously selected: /grubmasterexpoff

Shows the current EXP buff settings including EXP buff selected, expiration buffer, and current bag count : /grubmastershowexpsettings
Shows the current food/drink settings including food/drink selected, expiration buffer, and current bag count : /grubmastershowfoodsettings

Shows the current Food/drink buffer in seconds, or optionally changes it. Can be a number between 0 and 600. (seconds before buff expiration): /grubmasterfoodbufferseconds (optional number)
Shows the current EXP buff buffer in seconds, or optionally changes it. Can be a negative number between 0 and -600. (seconds after buff expiration): /grubmasterexpbufferseconds (optional negative number)



Required Libraries:
NOTE:
The code of this addon has been implemented in PersonalAssistant if you prefer using an all-in-one addon ;)
I'd likely update the code in Personal Assistant rather than this addon but we'll see how thing goes in the future.
2023.02.13
- Bumped api to 101037

2023.01.06
- Avoid triggering during a tales of tribute match : Rewrote that part of code to be 100% sure because a user reported it not working but it is working for me without problem since version 2022.09.10 ...

2022.10.19
- After 10 "[GM] You have set xxx to Consume Automatically but have 0 in your bag." chat warnings with no action from user, auto consume exp buff or food auto sets to off.

2022.10.02
- Fixed a bug where "You have set x to x but have 0 in your bag." was written in the chat when one of the two autoconsume food/exp was indeed disabled.

2022.09.20
- Bumped api to 101036 (tested on PTS week 1)

2022.09.18
- Fixed a bug where "x has been consumed" was written in the chat when x was delayed because it couldn't have been consumed.

2022.09.15
- Improved detection of active Experience buffs abilityIds (This time I created a dump file to be sure to have up to date data)

2022.09.13
- Improved detection of active Experience buffs

2022.09.11-3
- Improved detection of active War Torte buffs

2022.09.11-2
- Added War Torte buffs

2022.09.11
- Improved to include all experience scroll types

2022.09.10-3
- Entered wrong data on previous update, it should now work properly

2022.09.10-2
- EXP scrolls & EXP food/drinks should now be detected and work for any language

2022.09.10
- Removed the embedded libraries
- Bumped api to 101035 "lost depths"
- Avoid triggering during a tales of tribute match
- You can now auto consume EXP scrolls independently from drink & food (there's a second timer for them), Psijic Ambrosia, Aetherial Ambrosia, Mythic Aetherial Ambrosia should also work but they may possibly replace or being replaced by the food/drink buff if both are enabled at the same time, so be careful (I don't know how the game behaves regarding this indeed).
EXP scrolls have been tested, EXP food/drinks have not been tested (waiting for your feedback)
The EXP stuff may not work for non english languages, I need feedback on this.
Archived Files (13)
File Name
Version
Size
Uploader
Date
2023.02.13
7kB
Masteroshi430
01/06/23 07:38 AM
2022.10.19
7kB
Masteroshi430
10/19/22 03:04 PM
2022.10.02
7kB
Masteroshi430
10/02/22 06:08 AM
2022.09.20
7kB
Masteroshi430
09/20/22 05:41 AM
2022.09.18
7kB
Masteroshi430
09/18/22 03:48 PM
2022.09.15
7kB
Masteroshi430
09/15/22 05:32 AM
2022.09.13
7kB
Masteroshi430
09/13/22 02:23 PM
2022.09.11-3
7kB
Masteroshi430
09/11/22 10:25 AM
2022.09.11-2
7kB
Masteroshi430
09/11/22 03:56 AM
2022.09.11
7kB
Masteroshi430
09/10/22 05:29 PM
2022.09.10-3
7kB
Masteroshi430
09/10/22 02:04 PM
2022.09.10-2
7kB
Masteroshi430
09/10/22 09:53 AM
2022.09.10
7kB
Masteroshi430
09/10/22 12:59 AM


Post A Reply Comment Options
Unread 03/21/23, 02:45 PM  
Thekla

Forum posts: 0
File comments: 5
Uploads: 0
Danke schön. Es funktioniert super jetzt
Report comment to moderator  
Reply With Quote
Unread 03/21/23, 11:57 AM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 667
Uploads: 19
Originally Posted by Thekla
Vielen Dank für die Antwort. Ich habe festgestellt, dass ich noch das ursprüngliche AddOn von aethronx (letztes Update aus 2020) hatte . Nun habe ich dieses überarbeitete drauf. Ich melde mich, falls nochmal was passiert. Danke.
Das würde mich verblüffen, viel Spaß mit diesem aktualisierten Addon. :-)
Report comment to moderator  
Reply With Quote
Unread 03/21/23, 11:34 AM  
Thekla

Forum posts: 0
File comments: 5
Uploads: 0
Vielen Dank für die Antwort. Ich habe festgestellt, dass ich noch das ursprüngliche AddOn von aethronx (letztes Update aus 2020) hatte . Nun habe ich dieses überarbeitete drauf. Ich melde mich, falls nochmal was passiert. Danke.
Report comment to moderator  
Reply With Quote
Unread 03/21/23, 04:16 AM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 667
Uploads: 19
Originally Posted by Thekla
Hallo, wenn ich in "Ruhmesgeschichten" bin und Grupmaster füllt mein Buff-Foof auf, bricht das Kartenspiel ab und ich erhalte eine Sperre für das Verlassen des Spieles. Das hatte ich nun gestern und heute. Ist da etwas bekannt?
Dies ist ein Problem das seit Beginn dieser Version behoben wurde, normalerweise sollte es nicht passieren, sind Sie sicher, dass Sie dieselbe Version installiert haben? Kannst du die Versionsnummer nennen?
Last edited by Masteroshi430 : 03/21/23 at 04:18 AM.
Report comment to moderator  
Reply With Quote
Unread 03/21/23, 04:10 AM  
Thekla

Forum posts: 0
File comments: 5
Uploads: 0
Hallo, wenn ich in "Ruhmesgeschichten" bin und Grupmaster füllt mein Buff-Foof auf, bricht das Kartenspiel ab und ich erhalte eine Sperre für das Verlassen des Spieles. Das hatte ich nun gestern und heute. Ist da etwas bekannt?
Report comment to moderator  
Reply With Quote
Unread 01/06/23, 07:22 AM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 667
Uploads: 19
Re: Tales of Tribute

Originally Posted by Nagolite
Love the addon, and have been using it for so long I forgot it was even there... until I started playing Tales of Tribute. Is there anyway to add a check sequence so that when you're in the Tales of Tribute interface the "auto consume" feature is paused? If the food/drink runs out during a game, then the "You cannot use this item while playing Tales of Tribute" error message (and audio prompt) are spammed every couple of seconds.

Thanks for all you've done with this!
Yep, I will see what I can do but I think it is doable
EDIT: I rewrote the code and uploaded a new version to be 100% sure but I already implemented it and it was working fine since my 1st version.
Last edited by Masteroshi430 : 01/06/23 at 07:39 AM.
Report comment to moderator  
Reply With Quote
Unread 01/06/23, 06:59 AM  
Nagolite
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 21
Uploads: 1
Tales of Tribute

Love the addon, and have been using it for so long I forgot it was even there... until I started playing Tales of Tribute. Is there anyway to add a check sequence so that when you're in the Tales of Tribute interface the "auto consume" feature is paused? If the food/drink runs out during a game, then the "You cannot use this item while playing Tales of Tribute" error message (and audio prompt) are spammed every couple of seconds.

Thanks for all you've done with this!
Last edited by Nagolite : 01/06/23 at 07:11 AM.
Report comment to moderator  
Reply With Quote
Unread 09/15/22, 08:05 AM  
hagermanj

Forum posts: 2
File comments: 367
Uploads: 0
Re: Re: Re: Re: Re: Bug Report

Just wanted to let you know the last update ( 2022.09.13 ) fixed the problem. I have been using the last two days and it has not been giving me any problems.

Thank you for being so patent me.
Last edited by hagermanj : 09/15/22 at 08:09 AM.
Report comment to moderator  
Reply With Quote
Unread 09/13/22, 11:18 AM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 667
Uploads: 19
Re: Re: Re: Re: Re: Bug Report

Originally Posted by hagermanj
I not sure what screen you are talking about. I copied the the Saved Variable file:

Code:
Grubmaster_SavedVariables =
{
    ["Default"] = 
    {
        ["@Easily_Lost"] = 
        {
            ["Eaisly Lost-S"] = 
            {
                ["isAutoEatFood"] = true,
                ["version"] = 1,
                ["foodLink"] = "|H0:item:64711:123:1:0:0:0:0:0:0:0:0:0:0:0:65:0:0:1:0:0:0|h|h",
                ["foodBufferSeconds"] = 300,
                ["EXPLink"] = "|H0:item:64537:124:1:0:0:0:0:0:0:0:0:0:0:0:65:36:0:1:0:0:0|h|h",
                ["isAutoConsumeEXP"] = true,
                ["EXPBufferSeconds"] = -1,
            },
        },
    },
}
The names are Crown Fortifying Meal ( this works ), Crown Experience Scroll ( this does not work )

Both are available through Daily Rewards or the Crown Store.

I hope this helps.
I'm talking about that screen, I need to see the experience buff and it's icon under "Active Effects" in order to fix it for you :
Last edited by Masteroshi430 : 09/13/22 at 01:32 PM.
Report comment to moderator  
Reply With Quote
Unread 09/13/22, 10:58 AM  
hagermanj

Forum posts: 2
File comments: 367
Uploads: 0
Re: Re: Re: Re: Bug Report

Originally Posted by Masteroshi430
Originally Posted by hagermanj
Originally Posted by Masteroshi430
Originally Posted by hagermanj
I downloaded yesterday ( Sat ). Turned on to Consume 'Crown Experience Scroll'.
It worked fine yesterday, when I logged in this morning it kept trying to consume the scroll every few seconds. I disabled the addon, then reenabled it and it continued trying to consume them every few seconds.

I will delete the saved variable file.

EDIT: Also I have enable auto consume 'Crown Fortifying Meal'.

When I logged into game, it was working fine. When I enabled 'Crown Fortifying Meal' It worked fine.
Then I enabled 'Crown Experience Scroll' it started tory try to consume every few seconds.
Try to install the latest version, I kind of mixed up things in the 1st versions.
I installed ver 2022.08.11-3 it still keeps on trying to auto consume scroll even though I still have one active.
It does that because It doesn't detect the current exp buff, can you go in the character menu where the current buffs are displayed and post a screenshot of the current buffs please ?
What are the exact name of the scroll and the food buff you use ?
I not sure what screen you are talking about. I copied the the Saved Variable file:

Code:
Grubmaster_SavedVariables =
{
    ["Default"] = 
    {
        ["@Easily_Lost"] = 
        {
            ["Eaisly Lost-S"] = 
            {
                ["isAutoEatFood"] = true,
                ["version"] = 1,
                ["foodLink"] = "|H0:item:64711:123:1:0:0:0:0:0:0:0:0:0:0:0:65:0:0:1:0:0:0|h|h",
                ["foodBufferSeconds"] = 300,
                ["EXPLink"] = "|H0:item:64537:124:1:0:0:0:0:0:0:0:0:0:0:0:65:36:0:1:0:0:0|h|h",
                ["isAutoConsumeEXP"] = true,
                ["EXPBufferSeconds"] = -1,
            },
        },
    },
}
The names are Crown Fortifying Meal ( this works ), Crown Experience Scroll ( this does not work )

Both are available through Daily Rewards or the Crown Store.

I hope this helps.
Report comment to moderator  
Reply With Quote
Unread 09/12/22, 05:50 AM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 667
Uploads: 19
Re: Re: Re: Bug Report

Originally Posted by hagermanj
Originally Posted by Masteroshi430
Originally Posted by hagermanj
I downloaded yesterday ( Sat ). Turned on to Consume 'Crown Experience Scroll'.
It worked fine yesterday, when I logged in this morning it kept trying to consume the scroll every few seconds. I disabled the addon, then reenabled it and it continued trying to consume them every few seconds.

I will delete the saved variable file.

EDIT: Also I have enable auto consume 'Crown Fortifying Meal'.

When I logged into game, it was working fine. When I enabled 'Crown Fortifying Meal' It worked fine.
Then I enabled 'Crown Experience Scroll' it started tory try to consume every few seconds.
Try to install the latest version, I kind of mixed up things in the 1st versions.
I installed ver 2022.08.11-3 it still keeps on trying to auto consume scroll even though I still have one active.
It does that because It doesn't detect the current exp buff, can you go in the character menu where the current buffs are displayed and post a screenshot of the current buffs please ?
What are the exact name of the scroll and the food buff you use ?
Report comment to moderator  
Reply With Quote
Unread 09/12/22, 05:38 AM  
hagermanj

Forum posts: 2
File comments: 367
Uploads: 0
Re: Re: Bug Report

Originally Posted by Masteroshi430
Originally Posted by hagermanj
I downloaded yesterday ( Sat ). Turned on to Consume 'Crown Experience Scroll'.
It worked fine yesterday, when I logged in this morning it kept trying to consume the scroll every few seconds. I disabled the addon, then reenabled it and it continued trying to consume them every few seconds.

I will delete the saved variable file.

EDIT: Also I have enable auto consume 'Crown Fortifying Meal'.

When I logged into game, it was working fine. When I enabled 'Crown Fortifying Meal' It worked fine.
Then I enabled 'Crown Experience Scroll' it started tory try to consume every few seconds.
Try to install the latest version, I kind of mixed up things in the 1st versions.
I installed ver 2022.08.11-3 it still keeps on trying to auto consume scroll even though I still have one active.
Report comment to moderator  
Reply With Quote
Unread 09/11/22, 09:29 AM  
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view AddOns

Forum posts: 185
File comments: 667
Uploads: 19
Re: Bug Report

Originally Posted by hagermanj
I downloaded yesterday ( Sat ). Turned on to Consume 'Crown Experience Scroll'.
It worked fine yesterday, when I logged in this morning it kept trying to consume the scroll every few seconds. I disabled the addon, then reenabled it and it continued trying to consume them every few seconds.

I will delete the saved variable file.

EDIT: Also I have enable auto consume 'Crown Fortifying Meal'.

When I logged into game, it was working fine. When I enabled 'Crown Fortifying Meal' It worked fine.
Then I enabled 'Crown Experience Scroll' it started tory try to consume every few seconds.
Try to install the latest version, I kind of mixed up things in the 1st versions.
Report comment to moderator  
Reply With Quote
Unread 09/11/22, 05:23 AM  
hagermanj

Forum posts: 2
File comments: 367
Uploads: 0
Bug Report

I downloaded yesterday ( Sat ). Turned on to Consume 'Crown Experience Scroll'.
It worked fine yesterday, when I logged in this morning it kept trying to consume the scroll every few seconds. I disabled the addon, then reenabled it and it continued trying to consume them every few seconds.

I will delete the saved variable file.

EDIT: Also I have enable auto consume 'Crown Fortifying Meal'.

When I logged into game, it was working fine. When I enabled 'Crown Fortifying Meal' It worked fine.
Then I enabled 'Crown Experience Scroll' it started tory try to consume every few seconds.
Last edited by hagermanj : 09/11/22 at 05:44 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: