Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. sub RaiseAlchemy()
  2. var counter
  3. UO.UseType('0x0E9B')
  4. wait(1000)
  5. While NOT UO.Dead()
  6. UO.DeleteJournal()
  7. counter = 0
  8. UO.LClick(273,109)
  9. repeat
  10. counter = counter + 1
  11. if counter == 3 then
  12. drinkns()
  13. endif
  14. wait(150)
  15. Until UO.InJournal('You put the') OR (counter>5)
  16. If UO.Count('0x0F8D')<200 then
  17. restockss()
  18. wait(2000)
  19. Endif
  20. If UO.Count('0x0F0E')<100 then
  21. restockeb()
  22. wait(2000)
  23. Endif
  24. If UO.Count('0x0F06')>250 then
  25. dropns()
  26. endif
  27. If UO.Count('0x0F06')<1 then
  28. checkns_pots()
  29. endif
  30. wend
  31. endsub
  32. sub restockss()
  33. UO.FindType(0x0F8D,-1,'0x40142CAC')
  34. if UO.FindCount()>0 then
  35. UO.Moveitem('finditem','200','backpack')
  36. wait(1000)
  37. else
  38. checkns_pots()
  39. wait(1000)
  40. endif
  41. endsub
  42. sub restockeb()
  43. UO.FindType(0x0F0E,-1, '0x40142CAC')
  44. UO.Moveitem('finditem','200','backpack')
  45. wait(1000)
  46. endsub
  47. sub dropns()
  48. UO.FindType(0x0F06,-1, 'backpack')
  49. UO.Moveitem('finditem','200','0x40142CAC')
  50. wait(1000)
  51. endsub
  52. sub checkns_pots()
  53. if UO.Count('0x0F06')<50 then
  54. UO.FindType(0x0F06,-1,'0x40142CAC')
  55. UO.Moveitem('finditem','200','backpack')
  56. wait(1000)
  57. endif
  58. endsub
  59. sub drinkns()
  60. uo.usetype('0x0F06')
  61. if UO.Count('0x0F0E') > 250 then
  62. dropeb()
  63. endif
  64. endsub
  65. sub dropeb()
  66. UO.FindType(0x0F0E,-1, 'backpack')
  67. UO.Moveitem('finditem','200','0x40142CAC')
  68. wait(1000)
  69. endsub
Add Comment
Please, Sign In to add comment