SHARE
TWEET

ID Skill Sorting Improved

a guest Mar 19th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Author: Experience (Edited from Burger's version)
  2. // Description: Auto-ID items in a bag, sort out awesome weapons
  3. // to a seperate bag
  4. // Important:
  5. // 1) frombag is your bag of unidentified items, tobag is the bag of crap you
  6. //    are going to sell, usually it's in my backpack so there is a weight check..
  7. //    awesomebag is for weapons I want to keep or look closer at..
  8. // 3) comment the next 3 lines to make it not prompt you for new bags each time
  9. unsetalias 'frombag'
  10. //unsetalias 'toawesomebag'
  11. if not @findobject 'frombag'
  12.   headmsg 'Select From Bag'
  13.   promptalias 'frombag'
  14. endif
  15. pause 700
  16. if not @findalias 'toawesomebag'
  17.   headmsg 'Select Awesome Bag'
  18.   promptalias 'toawesomebag'
  19. endif
  20. pause 700
  21. if not listexists 'ItemTypes'
  22.   createlist 'ItemTypes'
  23. endif
  24. useobject 'frombag'
  25. useobject 'toawesomebag'
  26. clearlist 'ItemTypes'
  27. //Shields
  28. @pushlist 'ItemTypes' 0x1b72 //BronzeShields
  29. @pushlist 'ItemTypes' 0x1b73 //Buckler
  30. @pushlist 'ItemTypes' 0x1b7b //MetalShield
  31. @pushlist 'ItemTypes' 0x1b74 //Metal Kite Shield
  32. @pushlist 'ItemTypes' 0x1b79 //Tear Kite Shield
  33. @pushlist 'ItemTypes' 0x1b7a //WoodenShield
  34. @pushlist 'ItemTypes' 0x1b76 //HeaterShield
  35. //Platemail
  36. @pushlist 'ItemTypes' 0x1408 //Close Helmet
  37. @pushlist 'ItemTypes' 0x1410 //Platemail Arms
  38. @pushlist 'ItemTypes' 0x1411 //Platemail Legs
  39. @pushlist 'ItemTypes' 0x1412 //Plate Helm
  40. @pushlist 'ItemTypes' 0x1413 //Plate Gorget
  41. @pushlist 'ItemTypes' 0x1414 //Platemail Gloves
  42. @pushlist 'ItemTypes' 0x1415 //Plate Chest
  43. @pushlist 'ItemTypes' 0x140a //Helmet
  44. @pushlist 'ItemTypes' 0x140c //Bascinet
  45. @pushlist 'ItemTypes' 0x140e //Norse Helm
  46. //Chainmail
  47. @pushlist 'ItemTypes' 0x13bb //Chainmail Coif
  48. @pushlist 'ItemTypes' 0x13be //Chainmail Leggins
  49. @pushlist 'ItemTypes' 0x13bf //Chainmail Tunic
  50. //Ringmail
  51. @pushlist 'ItemTypes' 0x13ee //Ringmail Sleeves
  52. @pushlist 'ItemTypes' 0x13eb //Ringmail Gloves
  53. @pushlist 'ItemTypes' 0x13ec //Ringmail Tunic
  54. @pushlist 'ItemTypes' 0x13f0 //Ringmail Leggins
  55. //Studded
  56. @pushlist 'ItemTypes' 0x13da //Studded Leggings
  57. @pushlist 'ItemTypes' 0x13db //Studded Tunic
  58. @pushlist 'ItemTypes' 0x13d5 //Studded Gloves
  59. @pushlist 'ItemTypes' 0x13d6 //Studded Gorget
  60. @pushlist 'ItemTypes' 0x13dc //Studded Sleeves
  61. //Leather
  62. @pushlist 'ItemTypes' 0x13c6 //Leather Gloves
  63. @pushlist 'ItemTypes' 0x13cd //Leather Sleeves
  64. @pushlist 'ItemTypes' 0x13cc //Leather Tunic
  65. @pushlist 'ItemTypes' 0x13cb //Leather Pants
  66. @pushlist 'ItemTypes' 0x13c7 //Leather Gorget
  67. @pushlist 'ItemTypes' 0x1db9 //Leather Cap
  68. //Female Armor
  69. @pushlist 'ItemTypes' 0x1c04 //Female Plate
  70. @pushlist 'ItemTypes' 0x1c0c //Female Studded Bustier
  71. @pushlist 'ItemTypes' 0x1c02 //Female Studded Armor
  72. @pushlist 'ItemTypes' 0x1c00 //Female Leather Shorts
  73. @pushlist 'ItemTypes' 0x1c08 //Female Leather Skirt
  74. @pushlist 'ItemTypes' 0x1c06 //Female Leather Armor
  75. @pushlist 'ItemTypes' 0x1c0a //Female Leather Bustier
  76. //Fencing
  77. @pushlist 'ItemTypes' 0xf62  //Spear
  78. @pushlist 'ItemTypes' 0x1403 //Short Spear
  79. @pushlist 'ItemTypes' 0xe87  //Pitchfork
  80. @pushlist 'ItemTypes' 0x1401 //Kryss
  81. @pushlist 'ItemTypes' 0xf52  //Dagger
  82. //Macing
  83. @pushlist 'ItemTypes' 0x13b0 //War axe
  84. @pushlist 'ItemTypes' 0xdf0  //Black Staff
  85. @pushlist 'ItemTypes' 0x1439 //War Hammer
  86. @pushlist 'ItemTypes' 0x1407 //War Mace
  87. @pushlist 'ItemTypes' 0xe89  //Quarter Staff
  88. @pushlist 'ItemTypes' 0x143d //Hammer Pick
  89. @pushlist 'ItemTypes' 0x13b4 //Club
  90. @pushlist 'ItemTypes' 0xe81  //Shepherds Crook
  91. @pushlist 'ItemTypes' 0x13f8 //Gnarled Staff
  92. @pushlist 'ItemTypes' 0xf5c  //Mace
  93. @pushlist 'ItemTypes' 0x143b //Maul
  94. //Swords
  95. @pushlist 'ItemTypes' 0x13b9 //Viking Sword
  96. @pushlist 'ItemTypes' 0xf61  //Longsword
  97. @pushlist 'ItemTypes' 0x1441 //Cutlass
  98. @pushlist 'ItemTypes' 0x13b6 //Scimitar
  99. @pushlist 'ItemTypes' 0xec4  //Skinning Knife
  100. @pushlist 'ItemTypes' 0x13f6 //Butcher Knife
  101. @pushlist 'ItemTypes' 0xf5e  //Broadsword
  102. @pushlist 'ItemTypes' 0x13ff //Katana
  103. @pushlist 'ItemTypes' 0xec3  //Cleaver
  104. //Axes
  105. @pushlist 'ItemTypes' 0xf45 //Executioner's Axe
  106. @pushlist 'ItemTypes' 0xf4d //Bardiche
  107. @pushlist 'ItemTypes' 0xf4b  //Double Axe
  108. @pushlist 'ItemTypes' 0x143e //Halberd
  109. @pushlist 'ItemTypes' 0x13fb //Large Battle Axe
  110. @pushlist 'ItemTypes' 0x1443 //Two Handed Axe
  111. @pushlist 'ItemTypes' 0xf47  //Battle Axe
  112. @pushlist 'ItemTypes' 0xf49  //Axe
  113. @pushlist 'ItemTypes' 0xe85  //Pickaxe
  114. @pushlist 'ItemTypes' 0xe86  //Pickaxe
  115. //Bows
  116. @pushlist 'ItemTypes' 0x13fd //HeavyXbow
  117. @pushlist 'ItemTypes' 0xf50  //Xbow
  118. @pushlist 'ItemTypes' 0x13b2 //bow
  119. for 0 to 'ItemTypes'
  120.   while @findtype 'ItemTypes[]' 'any' 'frombag'
  121.     @clearjournal
  122.     //note: I had to move items to the tobag id'ing else it id's twice
  123.     moveitem found 'backpack'
  124.     //note I tried to use clickobject and injournal to see if the object was [Unidentified] and it doesn't seem to work.. dunno why?
  125.     useskill 'Item Identification'
  126.     pause 1500
  127.     if @injournal 'This item is out of charges.' 'system'
  128.       moveitem found 'frombag'
  129.       sysmsg 'I need a new wand!'
  130.       headmsg 'I need a new wand!'
  131.       stop
  132.     elseif @injournal 'not found' 'system'
  133.       sysmsg 'I need a wand!'
  134.       headmsg 'I need a wand!'
  135.       stop
  136.     else
  137.       waitfortarget 15000
  138.       target! found
  139.     endif
  140.     pause 1500
  141.     if @injournal 'Silver' 'system'
  142.       if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  143.         moveitem found 'toawesomebag'
  144.         headmsg 'Silver'
  145.         @clearjournal
  146.       elseif @injournal 'Vanquishing' 'system'
  147.         moveitem found 'toawesomebag'
  148.         headmsg 'Vanquishing'
  149.         @clearjournal
  150.       elseif @injournal 'Exorcism' 'system'
  151.         if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  152.           moveitem found 'toawesomebag'
  153.           headmsg 'Exorcism'
  154.           @clearjournal
  155.         elseif @injournal 'Fey' 'system'
  156.           if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  157.             moveitem found 'toawesomebag'
  158.             headmsg 'Fey'
  159.             @clearjournal
  160.           elseif @injournal 'Repond' 'system'
  161.             if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  162.               moveitem found 'toawesomebag'
  163.               headmsg 'Respond'
  164.               @clearjournal
  165.             elseif @injournal 'Elemental' 'system'
  166.               if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  167.                 moveitem found 'toawesomebag'
  168.                 headmsg 'Elemental'
  169.                 @clearjournal
  170.               elseif @injournal 'Arachnid' 'system'
  171.                 if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  172.                   moveitem found 'toawesomebag'
  173.                   headmsg 'Arachnid'
  174.                   @clearjournal
  175.                 elseif @injournal 'Terathan' 'system'
  176.                   if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  177.                     moveitem found 'toawesomebag'
  178.                     headmsg 'Terathan'
  179.                     @clearjournal
  180.                   elseif @injournal 'Reptilian' 'system'
  181.                     if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  182.                       moveitem found 'toawesomebag'
  183.                       headmsg 'Reptile'
  184.                       @clearjournal
  185.                     elseif @injournal 'Ophidian' 'system'
  186.                       if @injournal 'Power' 'system' or @injournal 'Vanquishing' 'system'
  187.                         moveitem found 'toawesomebag'
  188.                         headmsg 'Ophidan'
  189.                         @clearjournal
  190.                       elseif @injournal 'Invulnerability' 'system'
  191.                         if @injournal 'Fortification' 'system' or @injournal 'Indestructible' 'system'
  192.                           moveitem found 'toawesomebag'
  193.                           headmsg 'Invulnerability'
  194.                           @clearjournal
  195.                         endif
  196.                         @clearjournal
  197.                         if weight >= maxweight
  198.                           headmsg 'Go and sell this crap'
  199.                           stop
  200.                         endif
  201.                       endwhile
  202.                     endfor
  203.                     stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top