Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Author: Hawt
- // Description: Snoop all pouches and bag types within the closest persons backpack automatically.
- //====== Will not pop trapped pouches on Uoforever if Greed gave me the right hue.
- //==========================================
- // List of Bags/Pouches. No Chests or Crates.
- if not listexists 'containers'
- @createlist 'containers'
- endif
- if list 'containers' == 0
- @pushlist 'containers' 0xe79
- @pushlist 'containers' 0xe76
- @pushlist 'containers' 0xe75
- @pushlist 'containers' 0xe74
- @pushlist 'containers' 0xe78
- @pushlist 'containers' 0xe7d
- @pushlist 'containers' 0xe77
- endif
- // Gets Closest Anything To SNoop.
- getenemy 'friend' 'innocent' 'murderer' 'enemy' 'criminal' 'gray' 'closest' 'humanoid'
- if @inrange 'enemy' 1 and @findlayer 'enemy' 21
- @setalias 'bag' 'found'
- useobject! 'bag'
- pause 600
- if @findtype 0x1ce1 0 'bag'
- useskill 'Stealing'
- waitfortarget 3000
- target! 'found'
- headmsg 'Head Acquired'
- endif
- ignoreobject 'found'
- // Opens Person Main backpack and "pops" or opens all bags/POuches.
- for 0 to 'containers'
- while @findtype containers[] 'any' 'bag'
- @setalias 'inside' 'found'
- ignoreobject 'inside'
- // This is going to skip any pouches that are the hue 38
- if graphic 'found' == 0xe79 and color 'found' == 38
- continue
- endif
- if graphic 'found' == 0xe79 and color 'found' == 1161
- continue
- endif
- useobject! 'inside'
- pause 600
- if @findtype 0x1ce1 0 'inside'
- useskill 'Stealing'
- waitfortarget 3000
- target! 'found'
- headmsg 'Head Acquired'
- endif
- ignoreobject 'found'
- while @findtype containers[] 'any' 'inside'
- ignoreobject 'found'
- // This is going to skip any pouches that are the hue 38
- if graphic 'found' == 0xe79 and color 'found' == 38
- continue
- endif
- useobject! 'found'
- pause 600
- endwhile
- endwhile
- endfor
- // If any pouches were trapped run again and it will now open the trapped pouches to see what items were in them
- endif
- clearignorelist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement