Script: I want to train tinkering
Subs I will need (not in any specific order right now):
1. Setup
2. Check tools
3. Check resources
3. Find and set secures and possibly trashcan
4. Move resources from secure
5. Move items to secure
6. Move items to trashcan
7. Gump wait
8. Crafting
9. Menu
10. Make tinker tools
12. Training list of items to make and what skill to make them
13, Skill check sub
Lets look at some of the subs:
sub ClearPackIngots
finditem %ingots C_ , #backpackid
if #findcnt < 1
return
for #findindex 1 #findcnt
{
exevent drag #findid #findstack
wait 20
exevent dropc %ResourceSecure
wait 20
}
return
This one checks in the character backpack for ingots "finditem %ingots C_ , #backpackid" and then if it can't locate any ingots the sub is done "if #findcnt < 1" If it finds ingots it moves them to the resource secure. "exevent drag #findid #findstack exevent dropc %ResourceSecure"
sub ClearPackNotGarbage
finditem %notgarbage C_ , #backpackid
if #findcnt < 0
return
for #findindex 1 #findcnt
{
exevent drag #findid #findstack
wait 20
exevent dropc %StorageSecure
wait 20
}
return
This one works similarly, in your setup you will identify which items you may want to keep such as lockpicks and they will be in a list something like this "set %notgarbage NWH" If it does not find any it will move on, if it finds them then it drop them in the StorageSecure for safe keeping.
sub ClearPackGarbage
_cleargarbageloop:
{
finditem %garbage C_ , #backpackid
if #findcnt > 0
}
for %ItemToDump 1 #findcnt
{
Set #FindIndex %ItemToDump
exevent drag #findid #findstack
wait 20
exevent dropc %trashbarrel
wait 20
}
return
This one looks for items predefined as garbage that would look something like this "set %garbage NQD_OBG_IJG_UJG_ZVH_CWH" If it does not find anything, then it moves on, if it does, then it sumps then on the trashbarrel.
Like I said earlier, sometimes when making a list you over look things and I overlooked these little babies. These same subs can be used at the beginning of the script and then while the script is going. I want the script to do these checks at the beginning so it clears the bag of any unwanted items. You could just skip it and have it do it later when you are getting overweight but it is up to you.