Advertisement
Maespark

Auto-Tamer

May 11th, 2019
781
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. ////////////////////////////
  2. //Title: Macro for taming the closest animal
  3. //Author: Maelune
  4. //
  5. //Requirements: Taming!
  6. //A pet leash!
  7. //
  8. //Instructions: Stand near a thing you want to tame and start up this macro.
  9. //Do not have loop checked. If it is a hostile mob, you may need
  10. //to slowly walk away to avoid it hitting you with physical dmg
  11. //and thus hitting itself with reflecting damage and interrupting
  12. //the taming process.
  13. //
  14. //Notes: Still in beta, if something doesn't seem to be working,
  15. //contact author!
  16. ////////////////////////////
  17. clearjournal
  18. @unsetalias 'tamable'
  19. if not findalias 'tamable'
  20. @getenemy 'murderer' 'enemy' 'gray' 'criminal' 'closest'
  21. @setalias 'tamable' 'enemy'
  22. endif
  23. while findalias 'tamable'
  24. while not @injournal 'start to tame' or @injournal 'to continue taming'
  25. useskill 'animal taming'
  26. waitfortarget 5000
  27. target! 'tamable'
  28. warmode 'on'
  29. warmode 'off'
  30. warmode 'on'
  31. if property 'Loyalty' 'tamable' == "Wonderfully Happy"
  32. pause 150
  33. msg 'All stop'
  34. pause 500
  35. usetype 0x1374 'any' 'backpack'
  36. waitfortarget 5000
  37. target! 'tamable'
  38. pause 250
  39. clearjournal
  40. elseif not @findobject 'tamable'
  41. unsetalias 'tamable'
  42. clearjournal
  43. stop
  44. endif
  45. endwhile
  46. //clearjournal
  47. //endwhile
  48. if property 'Loyalty' 'tamable' == "Wonderfully Happy"
  49. pause 150
  50. msg 'All stop'
  51. pause 500
  52. usetype 0x1374 'any' 'backpack'
  53. waitfortarget 5000
  54. target! 'tamable'
  55. pause 250
  56. @unsetalias 'tamable'
  57. endif
  58. if not @findobject 'tamable'
  59. @unsetalias 'tamable'
  60. endif
  61. endwhile
  62. clearjournal
  63. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement