SHARE
TWEET

Untitled

matsamilla Feb 19th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Item ID
  2. skillTimer = 1200
  3. dragTime = 600
  4. msgColor = 45
  5.  
  6. sellBag = Target.PromptTarget('Select Sell to NPC Bag')
  7. keepBag = Target.PromptTarget('Select Good Stuff Bag')
  8. idStuff = Target.PromptTarget('Select container to ID stuff in')
  9.  
  10. testProp = 'Indestructable\/Invulnerability'
  11.  
  12. keepProps = ['Indestructable/Invulnerability','Exceptional/Indestruct','Poison','Power/Supremely Accurate',
  13. 'Power/Exceedingly Accurate','Power/Eminently Accurate','Vanquishing',
  14. 'Silver','Undead','Snake','Lizardman','Dragon','Reptile','Terathan','Scorpion','Spider','Orc Slaying',
  15. 'Ogre','Water','Earth','Elemental','Flame','Vacuum','Repond','Fey','Gargoyle','Daemon','Exorcism']
  16. #keepProps = ['Exceptional/Indestruct','Indestructable/Invulnerability','Poison','Power/Supremely Accurate','Power/Exceedingly Accurate','Power/Eminently Accurate','Vanquishing']
  17. #slayerProps = ['Silver','Undead','Snake','Lizardman','Dragon','Reptile','Terathan','Scorpion','Spider','Orc Slaying','Ogre','Water','Earth','Elemental','Flame','Vacuum','Repond','Fey','Gargoyle','Daemon','Exorcism']
  18.  
  19. armor = [0x1b72,0x1b73,0x1b7b,0x1b74,0x1b79,0x1b7a,0x1b76,0x1408,0x1410,0x1411,0x1412,0x1413,0x1414,0x1415,
  20. 0x140a,0x140c,0x140e,0x13bb,0x13be,0x13bf,0x13ee,0x13eb,0x13ec,0x13f0,0x13da,0x13db,0x13d5,0x13d6,0x13dc,
  21. 0x13c6,0x13cd,0x13cc,0x13cb,0x13c7,0x1db9,0x1c04,0x1c0c,0x1c02,0x1c00,0x1c08,0x1c06,0x1c0a,]
  22.  
  23. boneArmor = [0x1450,0x1f0b,0x1452,0x144f,0x1451,0x144e]
  24.  
  25. weps = [0xf62,0x1403,0xe87,0x1405,0x1401,0xf52,0x13b0,0xdf0,0x1439,0x1407,0xe89,0x143d,0x13b4,0xe81,0x13f8,
  26. 0xf5c,0x143b,0x13b9,0xf61,0x1441,0x13b6,0xec4,0x13f6,
  27. 0xf5e,0x13ff,0xec3,0xf43,0xf45,0xf4d,0xf4b,0x143e,0x13fb,0x1443,0xf47,0xf49,0xe85,0xe86,0x13fd,0xf50,0x13b2,]
  28.  
  29.  
  30. idContainer = Items.FindBySerial(idStuff)
  31. Items.UseItem(idContainer)
  32. Misc.Pause(dragTime)
  33. Items.UseItem(keepBag)
  34. Misc.Pause(dragTime)
  35. Items.UseItem(sellBag)
  36. Misc.Pause(dragTime)
  37. Items.WaitForContents(idContainer, 50)
  38. Misc.Pause(50)
  39.  
  40. def checkWeight():
  41.     if Player.Weight >= Player.MaxWeight:
  42.         Player.HeadMessage(msgColor, 'Go Sell this shit')
  43.         Stop
  44.  
  45. for i in idContainer.Contains:
  46.     if i.ItemID in armor:
  47.         Journal.Clear()
  48.         Player.UseSkill('Item ID')
  49.         Target.WaitForTarget(1500)
  50.         Target.TargetExecute(i.Serial)
  51.         Misc.Pause(400)
  52.         Items.SingleClick(i)
  53.  
  54.         if any(Journal.Search(keep) for keep in keepProps):
  55.             #** Good Stuff Move**
  56.             Items.Move(i, keepBag, 0)
  57.             Player.HeadMessage(msgColor, keep)
  58.             Misc.Pause(dragTime)
  59.             Journal.Clear()
  60.             checkWeight()
  61.         elif Journal.Search(testProp):
  62.             #** Good Stuff Move**
  63.             Items.Move(i, keepBag, 0)
  64.             Player.HeadMessage(msgColor, testProp)
  65.             Misc.Pause(dragTime)
  66.             Journal.Clear()
  67.             checkWeight()
  68.         else:
  69.             #*Bad Stuff Move**
  70.             Items.Move(i, sellBag, 0)
  71.             Misc.Pause(dragTime)
  72.             Player.HeadMessage(msgColor, 'Meh')
  73.             Journal.Clear()
  74.             checkWeight()
  75.            
  76.         Misc.Pause(skillTimer)
  77. Player.HeadMessage(msgColor, 'Chest Cleared')
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