|
Post by Experience on Apr 17, 2016 3:00:55 GMT
// Author: Experience (Edited from Burger's version)
// Description: Auto-ID items in a bag, sort out awesome weapons
// to a seperate bag
// Important:
// 1) frombag is your bag of unidentified items, tobag is the bag of crap you
// are going to sell, usually it's in my backpack so there is a weight check..
// awesomebag is for weapons I want to keep or look closer at..
// 3) comment the next 3 lines to make it not prompt you for new bags each time
unsetalias 'frombag'
unsetalias 'tobag'
unsetalias 'toawesomebag'
if not @findobject 'frombag'
headmsg 'Select From Bag'
promptalias 'frombag'
endif
pause 700
if not @findobject 'tobag'
headmsg 'Select Sell/To Bag'
promptalias 'tobag'
endif
pause 700
if not @findobject 'toawesomebag'
headmsg 'Select Awesome Bag'
promptalias 'toawesomebag'
endif
pause 700
if not listexists 'ItemTypes'
createlist 'ItemTypes'
endif
useobject 'frombag'
useobject 'tobag'
useobject 'toawesomebag'
clearlist 'ItemTypes'
//Shields
@pushlist 'ItemTypes' 0x1b72 //BronzeShields
@pushlist 'ItemTypes' 0x1b73 //Buckler
@pushlist 'ItemTypes' 0x1b7b //MetalShield
@pushlist 'ItemTypes' 0x1b74 //Metal Kite Shield
@pushlist 'ItemTypes' 0x1b79 //Tear Kite Shield
@pushlist 'ItemTypes' 0x1b7a //WoodenShield
@pushlist 'ItemTypes' 0x1b76 //HeaterShield
//Platemail
@pushlist 'ItemTypes' 0x1408 //Close Helmet
@pushlist 'ItemTypes' 0x1410 //Platemail Arms
@pushlist 'ItemTypes' 0x1411 //Platemail Legs
@pushlist 'ItemTypes' 0x1412 //Plate Helm
@pushlist 'ItemTypes' 0x1413 //Plate Gorget
@pushlist 'ItemTypes' 0x1414 //Platemail Gloves
@pushlist 'ItemTypes' 0x1415 //Plate Chest
@pushlist 'ItemTypes' 0x140a //Helmet
@pushlist 'ItemTypes' 0x140c //Bascinet
@pushlist 'ItemTypes' 0x140e //Norse Helm
//Chainmail
@pushlist 'ItemTypes' 0x13bb //Chainmail Coif
@pushlist 'ItemTypes' 0x13be //Chainmail Leggins
@pushlist 'ItemTypes' 0x13bf //Chainmail Tunic
//Ringmail
@pushlist 'ItemTypes' 0x13ee //Ringmail Sleeves
@pushlist 'ItemTypes' 0x13eb //Ringmail Gloves
@pushlist 'ItemTypes' 0x13ec //Ringmail Tunic
@pushlist 'ItemTypes' 0x13f0 //Ringmail Leggins
//Studded
@pushlist 'ItemTypes' 0x13da //Studded Leggings
@pushlist 'ItemTypes' 0x13db //Studded Tunic
@pushlist 'ItemTypes' 0x13d5 //Studded Gloves
@pushlist 'ItemTypes' 0x13d6 //Studded Gorget
@pushlist 'ItemTypes' 0x13dc //Studded Sleeves
//Leather
@pushlist 'ItemTypes' 0x13c6 //Leather Gloves
@pushlist 'ItemTypes' 0x13cd //Leather Sleeves
@pushlist 'ItemTypes' 0x13cc //Leather Tunic
@pushlist 'ItemTypes' 0x13cb //Leather Pants
@pushlist 'ItemTypes' 0x13c7 //Leather Gorget
@pushlist 'ItemTypes' 0x1db9 //Leather Cap
//Female Armor
@pushlist 'ItemTypes' 0x1c04 //Female Plate
@pushlist 'ItemTypes' 0x1c0c //Female Studded Bustier
@pushlist 'ItemTypes' 0x1c02 //Female Studded Armor
@pushlist 'ItemTypes' 0x1c00 //Female Leather Shorts
@pushlist 'ItemTypes' 0x1c08 //Female Leather Skirt
@pushlist 'ItemTypes' 0x1c06 //Female Leather Armor
@pushlist 'ItemTypes' 0x1c0a //Female Leather Bustier
//Fencing
@pushlist 'ItemTypes' 0xf62 //Spear
@pushlist 'ItemTypes' 0x1403 //Short Spear
@pushlist 'ItemTypes' 0xe87 //Pitchfork
@pushlist 'ItemTypes' 0x1405 //Warfork
@pushlist 'ItemTypes' 0x1401 //Kryss
@pushlist 'ItemTypes' 0xf52 //Dagger
//Macing
@pushlist 'ItemTypes' 0x13b0 //War axe
@pushlist 'ItemTypes' 0xdf0 //Black Staff
@pushlist 'ItemTypes' 0x1439 //War Hammer
@pushlist 'ItemTypes' 0x1407 //War Mace
@pushlist 'ItemTypes' 0xe89 //Quarter Staff
@pushlist 'ItemTypes' 0x143d //Hammer Pick
@pushlist 'ItemTypes' 0x13b4 //Club
@pushlist 'ItemTypes' 0xe81 //Shepherds Crook
@pushlist 'ItemTypes' 0x13f8 //Gnarled Staff
@pushlist 'ItemTypes' 0xf5c //Mace
@pushlist 'ItemTypes' 0x143b //Maul
//Swords
@pushlist 'ItemTypes' 0x13b9 //Viking Sword
@pushlist 'ItemTypes' 0xf61 //Longsword
@pushlist 'ItemTypes' 0x1441 //Cutlass
@pushlist 'ItemTypes' 0x13b6 //Scimitar
@pushlist 'ItemTypes' 0xec4 //Skinning Knife
@pushlist 'ItemTypes' 0x13f6 //Butcher Knife
@pushlist 'ItemTypes' 0xf5e //Broadsword
@pushlist 'ItemTypes' 0x13ff //Katana
@pushlist 'ItemTypes' 0xec3 //Cleaver
//Axes
@pushlist 'ItemTypes' 0xf43 //Hatchet
@pushlist 'ItemTypes' 0xf45 //Executioner's Axe
@pushlist 'ItemTypes' 0xf4d //Bardiche
@pushlist 'ItemTypes' 0xf4b //Double Axe
@pushlist 'ItemTypes' 0x143e //Halberd
@pushlist 'ItemTypes' 0x13fb //Large Battle Axe
@pushlist 'ItemTypes' 0x1443 //Two Handed Axe
@pushlist 'ItemTypes' 0xf47 //Battle Axe
@pushlist 'ItemTypes' 0xf49 //Axe
@pushlist 'ItemTypes' 0xe85 //Pickaxe
@pushlist 'ItemTypes' 0xe86 //Pickaxe
//Bows
@pushlist 'ItemTypes' 0x13fd //HeavyXbow
@pushlist 'ItemTypes' 0xf50 //Xbow
@pushlist 'ItemTypes' 0x13b2 //bow
for 0 to 'ItemTypes'
while @findtype 'ItemTypes[]' 'any' 'frombag'
@clearjournal
//note: I had to move items to the tobag id'ing else it id's twice
moveitem found 'tobag'
//note I tried to use clickobject and injournal to see if the object was [Unidentified] and it doesn't seem to work.. dunno why?
useskill 'Item Identification'
pause 1500
if @injournal 'This item is out of charges.' 'system'
moveitem found 'frombag'
sysmsg 'I need a new wand!'
headmsg 'I need a new wand!'
stop
elseif @injournal 'not found' 'system'
sysmsg 'I need a wand!'
headmsg 'I need a wand!'
stop
else
waitfortarget 15000
target! found
endif
pause 1500
if @injournal 'Silver' 'system'
moveitem found 'toawesomebag'
headmsg 'Silver'
@clearjournal
elseif @injournal 'Vanquishing' 'system'
moveitem found 'toawesomebag'
headmsg 'Vanquishing'
@clearjournal
elseif @injournal 'Power' 'system'
moveitem found 'toawesomebag'
headmsg 'Power'
@clearjournal
elseif @injournal 'Exorcism' 'system'
moveitem found 'toawesomebag'
headmsg 'Exorcisim'
@clearjournal
elseif @injournal 'Daemon' 'system'
moveitem found 'toawesomebag'
headmsg 'Daemon'
@clearjournal
elseif @injournal 'Gargoyle' 'system'
moveitem found 'toawesomebag'
headmsg 'Gargoyle'
@clearjournal
elseif @injournal 'Fey' 'system'
moveitem found 'toawesomebag'
headmsg 'Fey'
@clearjournal
elseif @injournal 'Respond' 'system'
moveitem found 'toawesomebag'
headmsg 'Respond'
@clearjournal
elseif @injournal 'Vacuum' 'system'
moveitem found 'toawesomebag'
headmsg 'Vacuum'
@clearjournal
elseif @injournal 'Flame' 'system'
moveitem found 'toawesomebag'
headmsg 'Flame'
@clearjournal
elseif @injournal 'Elemental' 'system'
moveitem found 'toawesomebag'
headmsg 'Elemental'
@clearjournal
elseif @injournal 'Earth' 'system'
moveitem found 'toawesomebag'
headmsg 'Earth'
@clearjournal
elseif @injournal 'Water' 'system'
moveitem found 'toawesomebag'
headmsg 'Water'
@clearjournal
elseif @injournal 'Ogre' 'system'
moveitem found 'toawesomebag'
headmsg 'Ogre'
@clearjournal
elseif @injournal 'Orc' 'system'
if not @injournal 'Force' 'system'
moveitem found 'toawesomebag'
headmsg 'Orc'
@clearjournal
endif
elseif @injournal 'Arachnid' 'system'
moveitem found 'toawesomebag'
headmsg 'Arachnid'
@clearjournal
elseif @injournal 'Spider' 'system'
moveitem found 'toawesomebag'
headmsg 'Spider'
@clearjournal
elseif @injournal 'Scorpion' 'system'
moveitem found 'toawesomebag'
headmsg 'Scorpion'
@clearjournal
elseif @injournal 'Terathan' 'system'
moveitem found 'toawesomebag'
headmsg 'Terathan'
@clearjournal
elseif @injournal 'Reptile' 'system'
moveitem found 'toawesomebag'
headmsg 'Reptile'
@clearjournal
elseif @injournal 'Dragon' 'system'
headmsg 'Dragon'
moveitem found 'toawesomebag'
@clearjournal
elseif @injournal 'Lizardman' 'system'
moveitem found 'toawesomebag'
headmsg 'Lizardman'
@clearjournal
elseif @injournal 'Ophidian' 'system'
moveitem found 'toawesomebag'
headmsg 'Ophidan'
@clearjournal
elseif @injournal 'Snake' 'system'
moveitem found 'toawesomebag'
headmsg 'Snake'
@clearjournal
elseif @injournal 'Undead' 'system'
moveitem found 'toawesomebag'
headmsg 'Undead'
@clearjournal
elseif @injournal 'Blood' 'system'
moveitem found 'toawesomebag'
headmsg 'Blood'
@clearjournal
elseif @injournal 'Poison' 'system'
moveitem found 'toawesomebag'
headmsg 'Poison'
@clearjournal
elseif @injournal 'Indestructable/Invulnerability' 'system'
moveitem found 'toawesomebag'
headmsg 'Indestructable/Invulnerability'
@clearjournal
endif
@clearjournal
if weight >= maxweight
headmsg 'Go and sell this crap'
stop
endif
endwhile
endfor
stop
|
|
|
Post by Naww on Feb 25, 2017 16:29:52 GMT
Hello ! I'm pretty sure that this one is perfectly working for you, but I got an issue with this macro. When I'm launching it (after selecting all bags) it crashes my game 
|
|
|
Post by nara on Apr 23, 2017 19:19:43 GMT
Same issue here
|
|
|
Post by Experience on Apr 23, 2017 23:29:18 GMT
Most likely something on your end...Or you need to make adjustments to meet your situation (ping and such)
|
|
|
Post by avalon on May 14, 2017 18:57:22 GMT
I made as light modification to this for my own purposes, thought I'd share.
// Author: Experience (Edited from Burger's version) edited again by Avalon Alduin // Description: Auto-ID items in a bag, sorting to Invuln, Power, Vanq, Slayer, and Crap to be sold bags. // to a seperate bag. NOTE: It occasionally crashes if you don't pre-open the bags first - probably should put a pause in during the open to fix that // Important: // 1) frombag is your bag of unidentified items, tobag is the bag of crap you // are going to sell, usually it's in my backpack so there is a weight check.. // 2) InvulnBag, PowerBag, VanqBag, SlayerBag - all self explanatory // 3) comment the next 3 lines to make it not prompt you for new bags each time unsetalias 'frombag' unsetalias 'tobag' unsetalias 'toinvulnbag' unsetalias 'topowerbag' unsetalias 'tovanqbag' unsetalias 'toslayerbag' if not @findobject 'frombag' headmsg 'Select From Bag' promptalias 'frombag' endif pause 700 if not @findobject 'tobag' headmsg 'Select Sell/To Bag' promptalias 'tobag' endif pause 700 if not @findobject 'toinvulnbag' headmsg 'Select Invuln Bag' promptalias 'toinvulnbag' endif pause 700 if not @findobject 'topowerbag' headmsg 'Select Power Bag' promptalias 'topowerbag' endif pause 700 if not @findobject 'tovanqbag' headmsg 'Select Vanq Bag' promptalias 'tovanqbag' endif pause 700 if not @findobject 'toslayerbag' headmsg 'Select Slayer Bag' promptalias 'toslayerbag' endif pause 700 if not listexists 'ItemTypes' createlist 'ItemTypes' endif useobject 'frombag' useobject 'tobag' useobject 'toinvulnbag' useobject 'topowerbag' useobject 'tovanqbag' useobject 'toslayerbag' clearlist 'ItemTypes' //Shields @pushlist 'ItemTypes' 0x1b72 //BronzeShields @pushlist 'ItemTypes' 0x1b73 //Buckler @pushlist 'ItemTypes' 0x1b7b //MetalShield @pushlist 'ItemTypes' 0x1b74 //Metal Kite Shield @pushlist 'ItemTypes' 0x1b79 //Tear Kite Shield @pushlist 'ItemTypes' 0x1b7a //WoodenShield @pushlist 'ItemTypes' 0x1b76 //HeaterShield //Platemail @pushlist 'ItemTypes' 0x1408 //Close Helmet @pushlist 'ItemTypes' 0x1410 //Platemail Arms @pushlist 'ItemTypes' 0x1411 //Platemail Legs @pushlist 'ItemTypes' 0x1412 //Plate Helm @pushlist 'ItemTypes' 0x1413 //Plate Gorget @pushlist 'ItemTypes' 0x1414 //Platemail Gloves @pushlist 'ItemTypes' 0x1415 //Plate Chest @pushlist 'ItemTypes' 0x140a //Helmet @pushlist 'ItemTypes' 0x140c //Bascinet @pushlist 'ItemTypes' 0x140e //Norse Helm //Chainmail @pushlist 'ItemTypes' 0x13bb //Chainmail Coif @pushlist 'ItemTypes' 0x13be //Chainmail Leggins @pushlist 'ItemTypes' 0x13bf //Chainmail Tunic //Ringmail @pushlist 'ItemTypes' 0x13ee //Ringmail Sleeves @pushlist 'ItemTypes' 0x13eb //Ringmail Gloves @pushlist 'ItemTypes' 0x13ec //Ringmail Tunic @pushlist 'ItemTypes' 0x13f0 //Ringmail Leggins //Studded @pushlist 'ItemTypes' 0x13da //Studded Leggings @pushlist 'ItemTypes' 0x13db //Studded Tunic @pushlist 'ItemTypes' 0x13d5 //Studded Gloves @pushlist 'ItemTypes' 0x13d6 //Studded Gorget @pushlist 'ItemTypes' 0x13dc //Studded Sleeves //Leather @pushlist 'ItemTypes' 0x13c6 //Leather Gloves @pushlist 'ItemTypes' 0x13cd //Leather Sleeves @pushlist 'ItemTypes' 0x13cc //Leather Tunic @pushlist 'ItemTypes' 0x13cb //Leather Pants @pushlist 'ItemTypes' 0x13c7 //Leather Gorget @pushlist 'ItemTypes' 0x1db9 //Leather Cap //Female Armor @pushlist 'ItemTypes' 0x1c04 //Female Plate @pushlist 'ItemTypes' 0x1c0c //Female Studded Bustier @pushlist 'ItemTypes' 0x1c02 //Female Studded Armor @pushlist 'ItemTypes' 0x1c00 //Female Leather Shorts @pushlist 'ItemTypes' 0x1c08 //Female Leather Skirt @pushlist 'ItemTypes' 0x1c06 //Female Leather Armor @pushlist 'ItemTypes' 0x1c0a //Female Leather Bustier //Fencing @pushlist 'ItemTypes' 0xf62 //Spear @pushlist 'ItemTypes' 0x1403 //Short Spear @pushlist 'ItemTypes' 0xe87 //Pitchfork @pushlist 'ItemTypes' 0x1405 //Warfork @pushlist 'ItemTypes' 0x1401 //Kryss @pushlist 'ItemTypes' 0xf52 //Dagger //Macing @pushlist 'ItemTypes' 0x13b0 //War axe @pushlist 'ItemTypes' 0xdf0 //Black Staff @pushlist 'ItemTypes' 0x1439 //War Hammer @pushlist 'ItemTypes' 0x1407 //War Mace @pushlist 'ItemTypes' 0xe89 //Quarter Staff @pushlist 'ItemTypes' 0x143d //Hammer Pick @pushlist 'ItemTypes' 0x13b4 //Club @pushlist 'ItemTypes' 0xe81 //Shepherds Crook @pushlist 'ItemTypes' 0x13f8 //Gnarled Staff @pushlist 'ItemTypes' 0xf5c //Mace @pushlist 'ItemTypes' 0x143b //Maul //Swords @pushlist 'ItemTypes' 0x13b9 //Viking Sword @pushlist 'ItemTypes' 0xf61 //Longsword @pushlist 'ItemTypes' 0x1441 //Cutlass @pushlist 'ItemTypes' 0x13b6 //Scimitar @pushlist 'ItemTypes' 0xec4 //Skinning Knife @pushlist 'ItemTypes' 0x13f6 //Butcher Knife @pushlist 'ItemTypes' 0xf5e //Broadsword @pushlist 'ItemTypes' 0x13ff //Katana @pushlist 'ItemTypes' 0xec3 //Cleaver //Axes @pushlist 'ItemTypes' 0xf43 //Hatchet @pushlist 'ItemTypes' 0xf45 //Executioner's Axe @pushlist 'ItemTypes' 0xf4d //Bardiche @pushlist 'ItemTypes' 0xf4b //Double Axe @pushlist 'ItemTypes' 0x143e //Halberd @pushlist 'ItemTypes' 0x13fb //Large Battle Axe @pushlist 'ItemTypes' 0x1443 //Two Handed Axe @pushlist 'ItemTypes' 0xf47 //Battle Axe @pushlist 'ItemTypes' 0xf49 //Axe @pushlist 'ItemTypes' 0xe85 //Pickaxe @pushlist 'ItemTypes' 0xe86 //Pickaxe //Bows @pushlist 'ItemTypes' 0x13fd //HeavyXbow @pushlist 'ItemTypes' 0xf50 //Xbow @pushlist 'ItemTypes' 0x13b2 //bow @pushlist 'ItemTypes' 0x1451 //bone head @pushlist 'ItemTypes' 0x1452 //bone legs @pushlist 'ItemTypes' 0x144e //bone arms @pushlist 'ItemTypes' 0x1f0b //bone helm @pushlist 'ItemTypes' 0x1450 //bone hands @pushlist 'ItemTypes' 0x144f //bone chest for 0 to 'ItemTypes' while @findtype 'ItemTypes[]' 'any' 'frombag' @clearjournal //note: I had to move items to the tobag id'ing else it id's twice moveitem found 'tobag' //note I tried to use clickobject and injournal to see if the object was [Unidentified] and it doesn't seem to work.. dunno why? useskill 'Item Identification' pause 1500 if @injournal 'This item is out of charges.' 'system' moveitem found 'frombag' sysmsg 'I need a new wand!' headmsg 'I need a new wand!' stop elseif @injournal 'not found' 'system' sysmsg 'I need a wand!' headmsg 'I need a wand!' stop else waitfortarget 15000 target! found endif pause 1500 if @injournal 'Silver' 'system' moveitem found 'toslayerbag' headmsg 'Silver' @clearjournal elseif @injournal 'Vanquishing' 'system' moveitem found 'tovanqbag' headmsg 'Vanquishing' @clearjournal elseif @injournal 'Power' 'system' moveitem found 'topowerbag' headmsg 'Power' @clearjournal elseif @injournal 'Exorcism' 'system' moveitem found 'toslayerbag' headmsg 'Exorcisim' @clearjournal elseif @injournal 'Daemon' 'system' moveitem found 'toslayerbag' headmsg 'Daemon' @clearjournal elseif @injournal 'Gargoyle' 'system' moveitem found 'toslayerbag' headmsg 'Gargoyle' @clearjournal elseif @injournal 'Fey' 'system' moveitem found 'toslayerbag' headmsg 'Fey' @clearjournal elseif @injournal 'Respond' 'system' moveitem found 'toslayerbag' headmsg 'Respond' @clearjournal elseif @injournal 'Vacuum' 'system' moveitem found 'toslayerbag' headmsg 'Vacuum' @clearjournal elseif @injournal 'Flame' 'system' moveitem found 'toslayerbag' headmsg 'Flame' @clearjournal elseif @injournal 'Elemental' 'system' moveitem found 'toslayerbag' headmsg 'Elemental' @clearjournal elseif @injournal 'Earth' 'system' moveitem found 'toslayerbag' headmsg 'Earth' @clearjournal elseif @injournal 'Water' 'system' moveitem found 'toslayerbag' headmsg 'Water' @clearjournal elseif @injournal 'Ogre' 'system' moveitem found 'toslayerbag' headmsg 'Ogre' @clearjournal elseif @injournal 'Orc' 'system' if not @injournal 'Force' 'system' moveitem found 'toslayerbag' headmsg 'Orc' @clearjournal endif elseif @injournal 'Arachnid' 'system' moveitem found 'toawesomebag' headmsg 'Arachnid' @clearjournal elseif @injournal 'Spider' 'system' moveitem found 'toslayerbag' headmsg 'Spider' @clearjournal elseif @injournal 'Scorpion' 'system' moveitem found 'toslayerbag' headmsg 'Scorpion' @clearjournal elseif @injournal 'Terathan' 'system' moveitem found 'toslayerbag' headmsg 'Terathan' @clearjournal elseif @injournal 'Reptile' 'system' moveitem found 'toslayerbag' headmsg 'Reptile' @clearjournal elseif @injournal 'Dragon' 'system' headmsg 'Dragon' moveitem found 'toslayerbag' @clearjournal elseif @injournal 'Lizardman' 'system' moveitem found 'toslayerbag' headmsg 'Lizardman' @clearjournal elseif @injournal 'Ophidian' 'system' moveitem found 'toslayerbag' headmsg 'Ophidan' @clearjournal elseif @injournal 'Snake' 'system' moveitem found 'toslayerbag' headmsg 'Snake' @clearjournal elseif @injournal 'Undead' 'system' moveitem found 'toslayerbag' headmsg 'Undead' @clearjournal elseif @injournal 'Blood' 'system' moveitem found 'toslayerbag' headmsg 'Blood' @clearjournal elseif @injournal 'Poison' 'system' moveitem found 'toslayerbag' headmsg 'Poison' @clearjournal elseif @injournal 'Indestructable/Invulnerability' 'system' moveitem found 'toinvulnbag' headmsg 'Indestructable/Invulnerability' @clearjournal endif @clearjournal if weight >= maxweight headmsg 'Go and sell this crap' stop endif endwhile endfor stop
|
|