Advertisement
Guest User

uos spellbook sorter

a guest
May 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. //setup
  2. unsetalias 'sortcont'
  3. unsetalias 'junkcont'
  4. unsetalias 'slayercont'
  5. unsetalias 'keepcont'
  6. if not @findobject 'junkcont'
  7. promptalias 'junkcont'
  8. headmsg 'Select Junk Container' 33
  9. endif
  10. if not @findobject 'sortcont'
  11. promptalias 'sortcont'
  12. headmsg 'Select container to sort'
  13. endif
  14. if not @findobject 'slayercont'
  15. promptalias 'slayercont'
  16. headmsg 'Select Slayer Container' 33
  17. endif
  18. if not @findobject 'keepcont'
  19. promptalias 'keepcont'
  20. headmsg 'Select Keep Container' 33
  21. endif
  22. // MODS
  23. @removelist 'modcount'
  24. @createlist 'modcount'
  25. for 0 to 125
  26. if @findtype 0xefa 'any' 'sortcont'
  27. waitforproperties 'found' 5000
  28. if @property 'spell damage increase' 'found'
  29. pushlist 'modcount' 'sdi'
  30. endif
  31. if @property 'lower reagent cost' 'found'
  32. pushlist 'modcount' 'lrc'
  33. endif
  34. if @property 'lower mana cost' 'found'
  35. pushlist 'modcount' 'lmc'
  36. endif
  37. if @property 'mana regeneration' 'found'
  38. pushlist 'modcount' 'mr'
  39. endif
  40. if @property 'mana increase' 'found'
  41. pushlist 'modcount' 'mi'
  42. endif
  43. if @property 'intelligence bonus' 'found'
  44. pushlist 'modcount' 'int'
  45. endif
  46. if @property 'magery' 'found'
  47. pushlist 'modcount' 'mage'
  48. endif
  49. if @property 'evaluate intelligence' 'found'
  50. pushlist 'modcount' 'eval'
  51. endif
  52. if @property 'resisting spells' 'found'
  53. pushlist 'modcount' 'res'
  54. endif
  55. if @property 'meditation' 'found'
  56. pushlist 'modcount' 'med'
  57. endif
  58. if @property 'faster casting' 'found'
  59. pushlist 'modcount' 'fc'
  60. endif
  61. if @property 'faster cast recovery' 'found'
  62. pushlist 'modcount' 'fcr'
  63. endif
  64. //slayers:
  65. if @property 'arachnid' 'found'
  66. pushlist 'modcount' 'slayer'
  67. endif
  68. if @property 'blood elemental' 'found'
  69. pushlist 'modcount' 'slayer'
  70. endif
  71. if @property 'demon' 'found'
  72. pushlist 'modcount' 'slayer'
  73. endif
  74. if @property 'dragon' 'found'
  75. pushlist 'modcount' 'slayer'
  76. endif
  77. if @property 'earth elemental' 'found'
  78. pushlist 'modcount' 'slayer'
  79. endif
  80. if @property 'elemental' 'found'
  81. pushlist 'modcount' 'slayer'
  82. endif
  83. if @property 'poison elemental' 'found'
  84. pushlist 'modcount' 'slayer'
  85. endif
  86. if @property 'repond' 'found'
  87. pushlist 'modcount' 'slayer'
  88. endif
  89. if @property 'reptile' 'found'
  90. pushlist 'modcount' 'slayer'
  91. endif
  92. if @property 'scorpion' 'found'
  93. pushlist 'modcount' 'slayer'
  94. endif
  95. if @property 'snake' 'found'
  96. pushlist 'modcount' 'slayer'
  97. endif
  98. if @property 'spider' 'found'
  99. pushlist 'modcount' 'slayer'
  100. endif
  101. if @property 'undead' 'found'
  102. pushlist 'modcount' 'slayer'
  103. endif
  104. \\ main sort script
  105. if list 'modcount' < 1
  106. moveitem 'found' 'junkcont'
  107. pause 550
  108. elseif list 'modcount' <= 1
  109. if @property 'slayer' 'found'
  110. moveitem 'found' 'slayercont'
  111. pause 550
  112. endif
  113. elseif list 'modcount' >= 2
  114. moveitem 'found' 'keepcont'
  115. endif
  116. endif
  117. endif
  118. endfor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement