I can tell you what mistakes you made in the bot so you can fix it, it's a pretty long post btw.
In the pet label:
First of all, Grimoire has problems with this command some times it works, other times it just doesn't, closing and opening grimoire again fixes this for me some times, but other times no matter what I do it just won't work.
1) There is no need to put the buyback command twice, as this command will disconnect you from the game so the bot will restart.
2) There is no need for the check of "if tendurr is not in inv" since if the command buys back the item, you will get disconnected and the bot will restart so it would never reach that command anyway, and if it doesn't it would loop in the pet label infinetily.
3) There is no need to accept the quest again since it gets accepted as soon as the bot starts.
4) If some times the buyback doesn't work with the bot, you could also just make it farm it with dark makais if it fails.
So it should just look like this and woul do pretty much the same:
In the fragments label:
1) There is no need to put multiple kill commands, as you can simply use a kill for command, where you put the item for it to farm and the amount need for it to stop.
2) There is no need for the get drop command if you had already put the item in the drops whitelist.
3) You did put a kill for command after the 10 kill commands, so there is really no necessity for all the commands above it.
4) There is no need to check if the 80 fragments are not in inv, as you used a kill for command that would not stop until it got them.
5) Instead of Join: map-123123, you can do map-1e99 and it does the same and looks cleaner in my opinion.
Also since you are using this for fragment of chaos there is actually a problem and it's that you need a max stack of it, and grimoire sometimes doesn't grab the items instantly as they drop so it can get stuck with 79/80 fragments.
So instead of doing kill for 80 of it, you can do kill for 79, and add a kill command and a get drop command, with a check if 80 are in inv that makes it loop.
Also it's not broekn baldes, it's broken blades, but that doesn't really matter.
So it ends up like this:
In the broken blades label:
1) Pretty much al the same as before, you could just use a kill for temp item, instead of multiple kill commands, and it would just go to the last label as soon as it gets all 8.
2) Also you forgot to put the name of the item in the "item is not in temp inv" statement, you left it as "item name".
So it should simply be like this:
In the quest sec label:
1) No need to check for the item is not in inv if you use kill for as I said before.
2) You are already in evilwarnul so the join command would actually do nothing.
3) There is no need to accept the quest again at the end, as it would get accepted when the bot goes back to the start.
So it should only be a complete quest command:
And the final tip, there is already a bot for this so you could have just used that:
https://www.mpgh.net/forum/showthread.php?t=1359821