So there is no way to change so it doesnt drop them ?
Actually, yes you can. I don't recommend that you do it without a)being comfortable reading and working in XML and b) knowing exactly why you're doing it and what the impact will be. Since I understand why the functionality is in there and when it occurs I'm surprised if this is an ongoing problem and not a freak one off. I also suggest bigger bags and a mailto toon. Or you could disable looting. Or get a plugin that deletes greys and other stuff you specify. Kick's profiles are extremely efficient and I rarely had to leave the field to go do tasks. His profiles typically force you to mail and sell when it takes you back to quest hubs.
However, you wanted to know if there is a way and there is. But since I believe in informed consent you have to get a lesson first!
As you know Kick's profiles are intended to carry you from area to area as you level up. In order to maximize efficiency it uses strategically placed checkpoints based on your level. When the bot determines you should move to a new area it runs a custom behavior that dumps your entire quest log. The reasoning is sound, if you are moving to a new area why should you clog up your quest log with green quests that you aren't planning on finishing or turning in? If it didn't clear them out it could end up failing to accept a quest because the log is full.
Profiles run only from top to bottom, they can't loop back on themselves nor do they remember where you left off last time. When you start the bot it starts reading at the beginning of the profile and jumps section by section until it finds a checkpoint criteria you meet. Then it starts executing the steps in that section. It keeps going down the list of steps and sections until it it runs out of stuff to do or you stop the bot. You will usually meet the next checkpoint criteria before you reach the next checkpoint line. That's intended. Now, if you stop the bot after having met the next checkpoint criteria without having actually reached the next checkpoint check you will set yourself up for the very issue you describe. What happens is when you restart the bot it starts at the beginning of the profile again and now skips right past the section you were working in when you stopped because you no longer meet the criteria for that checkpoint. It moves on to the next section and the first step in the new section is often to dump your quest log.
It shouldn't be dropping quests you already have just because you went to sell and then trying to reacquire those same quests. If its dumping your quest log its getting ready to take you to a new place so I suggest you let it. Now after all that if you still want to tweak the code like I did when I wanted to collect and keep grisly trophies while I was leveling up a bot here's what you do.
Find and comment out each occurrence of the following line:
Code:
<CustomBehavior File="RunMacro" Macro="/run for i=1,GetNumQuestLogEntries() do SelectQuestLogEntry(i); SetAbandonQuest(); AbandonQuest(); end" />
Make sure you save your edited profile with a new name or it will be overwritten when you update from Kick's SVN. And you will need to monitor your bot's progress and occasionally clean out the quest log if its moved on but still has green quests.
If you don't already know how to find and comment out items in a profile I recommend you just let the thing dump your quest log and move on.