Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. if not findalias 'meta'
  2. headmsg 'Select Meta pet'
  3. promptalias 'meta'
  4. endif
  5. if not timerexists 'attack'
  6. createtimer 'attack'
  7. endif
  8. if not @findobject 'mob'
  9. @unsetalias 'mob'
  10. getenemy 'gray''closest'
  11. if @findobject 'enemy'
  12. @setalias 'mob' found
  13. msg 'all kill'
  14. target 'mob'
  15. endif
  16. endif
  17. if timer 'attack' > 10000
  18. msg 'all kill'
  19. target 'mob'
  20. settimer 'attack' 0
  21. endif
  22. if not @inrange 'meta' 1
  23. if @x 'meta' > x 'self' and @y 'meta' > y 'self'
  24. walk 'Southeast'
  25. elseif @x 'meta' < x 'self' and @y 'meta' > y 'self'
  26. walk 'Southwest'
  27. elseif @x 'meta' > x 'self' and @y 'meta' < y 'self'
  28. walk 'Northeast'
  29. elseif @x 'meta' < x 'self' and @y 'meta' < y 'self'
  30. walk 'Northwest'
  31. elseif @x 'meta' > x 'self' and @y 'meta' == y 'self'
  32. walk 'East'
  33. elseif @x 'meta' < x 'self' and @y 'meta' == y 'self'
  34. walk 'West'
  35. elseif @x 'meta' == x 'self' and @y 'meta' > y 'self'
  36. walk 'South'
  37. elseif @x 'meta' == x 'self' and @y 'meta' < y 'self'
  38. walk 'North'
  39. endif
  40. endif
  41. if not timerexists 'feed'
  42. createtimer 'feed'
  43. endif
  44. if timer 'feed' > 600000
  45. if @inrange 'meta' 1
  46. headmsg 'Feeding Meta!!!'
  47. pause 600
  48. feed 'meta' '0x9f1' 'any' '1'
  49. settimer 'feed' 0
  50. endif
  51. endif
  52. if hits 'meta' < 100
  53. elseif not @injournal! 'You begin applying the bandages' 'system'
  54. if inrange 'meta' 1
  55. bandage
  56. autotargetobject 'meta'
  57. endif
  58. pause 600
  59. elseif @injournal! 'You finish applying the bandages' 'system'
  60. @clearjournal!
  61. if inrange 'meta' 1
  62. bandage
  63. autotargetobject 'meta'
  64. endif
  65. pause 600
  66. elseif @injournal! 'You apply the bandages, but they barely help' 'system'
  67. @clearjournal!
  68. if inrange 'meta' 1
  69. bandage
  70. autotargetobject 'meta'
  71. endif
  72. pause 600
  73. elseif @injournal! 'You are able to resurrect the creature' 'system'
  74. @clearjournal!
  75. if inrange 'meta' 1
  76. bandage
  77. autotargetobject 'meta'
  78. endif
  79. pause 600
  80. elseif @injournal! 'You heal what little damage your patient had' 'system'
  81. @clearjournal!
  82. if inrange 'meta' 1
  83. bandage
  84. autotargetobject 'meta'
  85. endif
  86. pause 600
  87. elseif @injournal! 'You fail to resurrect the creature' 'system'
  88. @clearjournal!
  89. if inrange 'meta' 1
  90. bandage
  91. autotargetobject 'meta'
  92. endif
  93. pause 600
  94. elseif @injournal! 'That being is not damaged' 'system'
  95. @clearjournal!
  96. if inrange 'meta' 1
  97. bandage
  98. autotargetobject 'meta'
  99. endif
  100. pause 600
  101. else
  102. //@headmsg! 'Prior Bandage running'
  103. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement