Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. // Author: Hawt
  2. // Description: Snoop all pouches and bag types within the closest persons backpack automatically.
  3. //====== Will not pop trapped pouches on Uoforever if Greed gave me the right hue.
  4. //==========================================
  5. // List of Bags/Pouches. No Chests or Crates.
  6. if not listexists 'containers'
  7. @createlist 'containers'
  8. endif
  9. if list 'containers' == 0
  10. @pushlist 'containers' 0xe79
  11. @pushlist 'containers' 0xe76
  12. @pushlist 'containers' 0xe75
  13. @pushlist 'containers' 0xe74
  14. @pushlist 'containers' 0xe78
  15. @pushlist 'containers' 0xe7d
  16. @pushlist 'containers' 0xe77
  17. endif
  18. // Gets Closest Anything To SNoop.
  19. getenemy 'friend' 'innocent' 'murderer' 'enemy' 'criminal' 'gray' 'closest' 'humanoid'
  20. if @inrange 'enemy' 1 and @findlayer 'enemy' 21
  21. @setalias 'bag' 'found'
  22. useobject! 'bag'
  23. pause 600
  24. if @findtype 0x1ce1 0 'bag'
  25. useskill 'Stealing'
  26. waitfortarget 3000
  27. target! 'found'
  28. headmsg 'Head Acquired'
  29. endif
  30. ignoreobject 'found'
  31. // Opens Person Main backpack and "pops" or opens all bags/POuches.
  32. for 0 to 'containers'
  33. while @findtype containers[] 'any' 'bag'
  34. @setalias 'inside' 'found'
  35. ignoreobject 'inside'
  36. // This is going to skip any pouches that are the hue 38
  37. if graphic 'found' == 0xe79 and color 'found' == 38
  38. continue
  39. endif
  40. if graphic 'found' == 0xe79 and color 'found' == 1161
  41. continue
  42. endif
  43. useobject! 'inside'
  44. pause 600
  45. if @findtype 0x1ce1 0 'inside'
  46. useskill 'Stealing'
  47. waitfortarget 3000
  48. target! 'found'
  49. headmsg 'Head Acquired'
  50. endif
  51. ignoreobject 'found'
  52. while @findtype containers[] 'any' 'inside'
  53. ignoreobject 'found'
  54. // This is going to skip any pouches that are the hue 38
  55. if graphic 'found' == 0xe79 and color 'found' == 38
  56. continue
  57. endif
  58. useobject! 'found'
  59. pause 600
  60. endwhile
  61. endwhile
  62. endfor
  63. // If any pouches were trapped run again and it will now open the trapped pouches to see what items were in them
  64. endif
  65. clearignorelist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement