1. function pickItem(item)
  2. if item.BaseItem == "pk2" then --Key of Hate
  3. return 8
  4. elseif item.BaseItem == "pk1" then --Key of Terror
  5. return 8
  6. elseif item.BaseItem == "pk3" then --Key of Destruction
  7. return 8
  8. elseif item.BaseItem == "r33" then --Zod
  9. return 10
  10. elseif item.BaseItem == "r32" then --Cham
  11. return 10
  12. elseif item.BaseItem == "r31" then --Jah
  13. return 10
  14. elseif item.BaseItem == "r30" then --Ber
  15. return 10
  16. elseif item.BaseItem == "r29" then --Sur
  17. return 10
  18. elseif item.BaseItem == "r28" then --Lo
  19. return 10
  20. elseif item.BaseItem == "r27" then --Ohm
  21. return 10
  22. elseif item.BaseItem == "r26" then --Vex
  23. return 10
  24. elseif item.BaseItem == "r25" then --Gul
  25. return 8
  26. elseif item.BaseItem == "r24" then --Ist
  27. return 10
  28. elseif item.BaseItem == "r23" then --Mal
  29. return 10
  30. elseif item.BaseItem == "r22" then --Um
  31. return 9
  32. elseif item.BaseItem == "r21" then --Pul
  33. return 8
  34. elseif item.BaseItem == "r20" then --Lem
  35. return 7
  36. elseif item.BaseItem == "r19" then --Fal
  37. return 7
  38. elseif item.BaseItem == "r18" then --Ko
  39. return 6
  40. elseif item.BaseItem == "r15" then --Hel
  41. return 5
  42. elseif item.BaseItem == "jew" and (item.Quality == Unique) then --Magic Jewels or Rainbow Facet
  43. return 9
  44. elseif item.BaseItem == "cm1" and item.Quality == Magic then --Magic Small Charms
  45. return 8
  46. elseif item.BaseItem == "cm3" and item.Quality == Magic then --Magic Grand Charms
  47. return 8
  48. elseif item.BaseItem == "rin" and item.Quality == Unique then --Unique Ring
  49. return 7
  50. elseif item.BaseItem == "amu" and item.Quality == Unique then --Unique Amulet
  51. return 7
  52. elseif item.BaseItem == "ci3" and item.Quality == Unique then --Griffon's Eye
  53. return 10
  54. elseif item.BaseItem == "uap" and item.Quality == Unique then --Shako
  55. return 8
  56. elseif item.BaseItem == "uhm" and item.Quality == Unique then --Nightwing's Veil, Veil of Steel
  57. return 8
  58. elseif item.BaseItem == "urn" and item.Quality == Unique then --CoA
  59. return 10
  60. elseif item.BaseItem == "usk" and item.Quality == Unique and item.Flags.Ethereal == 1 then --Andy's Mask
  61. return 9
  62. elseif item.BaseItem == "xh9" and item.Quality == Unique then --Vamp Gaze
  63. return 5
  64. elseif item.BaseItem == "uh9" and item.Quality == Unique and item.Flags.Socketed == 1 then --Giant Skull
  65. return 8
  66. elseif item.BaseItem == "xhm" and item.Quality == Unique then --Valkyrie Wing
  67. return 7
  68. elseif item.BaseItem == "ci0" and item.Quality == Magic then --Magic Circlet
  69. return 8
  70. elseif item.BaseItem == "ci1" and item.Quality == Magic then --Magic Coronet
  71. return 8
  72. elseif item.BaseItem == "ci2" and item.Quality == Magic then --Magic Tiara
  73. return 8
  74. elseif item.BaseItem == "ci3" and item.Quality == Magic then --Magic Diadem
  75. return 8
  76. elseif item.BaseItem == "ulc" and item.Quality == Unique and item.Flags.Ethereal == 0 then --Arach's
  77. return 10
  78. elseif item.BaseItem == "umc" and item.Quality == Unique and item.Flags.Ethereal == 0 then --Verdungo's
  79. return 9
  80. elseif item.BaseItem == "zhb" and item.Quality == Unique and item.Flags.Ethereal == 0 then --TGod's
  81. return 9
  82. elseif item.BaseItem == "ztb" and item.Quality == Unique and item.Flags.Ethereal == 0 then --Snowclash
  83. return 5
  84. elseif item.BaseItem == "tgl" and item.Quality == Unique and item.Flags.Ethereal == 0 then --Magefist
  85. return 6
  86. elseif item.BaseItem == "uvg" and item.Quality == Unique and item.Flags.Ethereal == 0 then --Drac's
  87. return 9
  88. elseif item.BaseItem == "uvb" and item.Quality == Unique and item.Flags.Ethereal == 1 then --Sand Treks
  89. return 10
  90. elseif item.BaseItem == "xtb" and item.Quality == Unique and item.Flags.Ethereal == 0 then --War Travs
  91. return 6
  92. elseif item.BaseItem == "xvb" and item.Quality == Unique and item.Flags.Ethereal == 0 then --Waterwalk
  93. return 8
  94. elseif item.BaseItem == "umb" and item.Quality == Unique and item.Flags.Ethereal == 0 then --Marrow's
  95. return 9
  96. elseif item.BaseItem == "uhb" and item.Quality == Unique and item.Flags.Ethereal == 0 then --Shadow Dancer
  97. return 8
  98. elseif item.BaseItem == "upl" and item.Quality == Unique and item.Flags.Ethereal == 1 then --Arkaine's Valor
  99. return 7
  100. elseif item.BaseItem == "uar" and item.Quality == Unique then --Tyrael's Might or Templar's Might
  101. return 7
  102. elseif item.BaseItem == "xhn" and item.Quality == Unique and item.Flags.Ethereal == 1 then --Shaftshop
  103. return 6
  104. elseif item.BaseItem == "obc" and item.Quality == Unique then --Eschuta's
  105. return 10
  106. elseif item.BaseItem == "obf" and item.Quality == Unique then --Death Fathom
  107. return 10
  108. elseif item.BaseItem == "7gw" and item.Quality == Unique then --Death Web
  109. return 10
  110. elseif item.BaseItem == "6cs" and item.Quality == Unique then --Ondal's Wisdom
  111. return 8
  112. elseif item.BaseItem == "6ws" and item.Quality == Unique then --Mang Song's
  113. return 8
  114. elseif item.BaseItem == "uit" and item.Quality == Unique then --Stormshield
  115. return 7
  116. elseif item.BaseItem == "pa9" and item.Quality == Unique then --HoZ
  117. return 10
  118. elseif item.BaseItem == "nef" and item.Quality == Unique then --Darkforce
  119. return 10
  120. elseif item.BaseItem == "nea" and item.Quality == Unique then --Homunculus
  121. return 9
  122. elseif item.BaseItem == "gld" and item.GoldAmount > 500 then
  123. return 3
  124. elseif (item.BaseItem == "uar" or item.BaseItem == "ucl" or item.BaseItem == "uea" or item.BaseItem == "uhn" or item.BaseItem == "ula" or item.BaseItem == "uld" or item.BaseItem == "ult" or item.BaseItem == "ung" or item.BaseItem == "upl" or item.BaseItem == "urs" or item.BaseItem == "uth" or item.BaseItem == "utp" or item.BaseItem == "utu" or item.BaseItem == "uui" or item.BaseItem == "uul") and (item.Quality == Inferior or item.Quality == Normal or item.Quality == Superior or item.Quality == Magic or item.Quality == Rare) then --All Elite Armors (they are to be sold using my sellItem)
  125. return 2
  126. elseif item.BaseItem == "7wa" and item.Quality == Superior then --Sup Berserker Axe for runes
  127. return 6
  128. elseif item.BaseItem == "7cr" and item.Quality == Superior then --Sup Phase Blade for runes
  129. return 6
  130. elseif item.BaseItem == "7gd" and item.Quality == Superior and item.Flags.Ethereal == 1 then --Sup Eth Colossus Blade for runes
  131. return 7
  132. elseif item.BaseItem == "utp" and item.Quality == Superior then --Sup Archon Plate for runes
  133. return 6
  134. elseif item.BaseItem == "uui" and item.Quality == Superior then --Sup Dusk Shroud for runes
  135. return 6
  136. elseif item.BaseItem == "xtp" and item.Quality == Superior then --Sup Mage Plate for runes
  137. return 6
  138. elseif item.BaseItem == "ult" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Norm Eth Hellforge Plate for glitching
  139. return 7
  140. elseif item.BaseItem == "uth" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Norm Eth Laquered Plate for glitching
  141. return 7
  142. elseif item.BaseItem == "uul" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Norm Eth Shadow Plate for glitching
  143. return 7
  144. elseif item.BaseItem == "uar" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Norm Eth Sacred Armor for glitching
  145. return 7
  146. elseif item.BaseItem == "uit" and item.Quality == Superior then --Sup Monarch for runes
  147. return 7
  148. elseif item.BaseItem == "pab" and item.Quality == Superior then --Sup STarge for runes
  149. return 5
  150. elseif item.BaseItem == "pac" and item.Quality == Superior then --Sup SRondache for runes
  151. return 5
  152. elseif item.BaseItem == "ush" and item.Quality == Superior then --Sup Trolls for runes
  153. return 5
  154. elseif item.BaseItem == "7vo" and (item.Quality == Normal or item.Quality == Superior) and item.Flags.Ethereal == 1 then --Eth C Voulge for runes
  155. return 7
  156. elseif item.BaseItem == "7pa" and (item.Quality == Normal or item.Quality == Superior) and item.Flags.Ethereal == 1 then --Eth C Axe for runes
  157. return 7
  158. elseif item.BaseItem == "pab" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Normal Eth STarge for glitching
  159. return 8
  160. elseif item.BaseItem == "pac" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Normal Eth SRondache for glitching
  161. return 8
  162. elseif item.BaseItem == "paf" and item.Quality == Normal and item.Flags.Ethereal == 1 and item.Flags.Socketed == 0 then --Normal Eth Vortex for glitching
  163. return 8
  164. elseif item.BaseItem == "crs" and item.Quality == Rare and item.Flags.Ethereal == 1 then --Eth Rare Crystal Sword, if upped into a Pb, it can be pretty badass
  165. return 5
  166. else
  167. return 0
  168. end
  169. end
  170.