Advertisement
Guest User

Untitled

a guest
May 27th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. @cleartargetqueue
  2. if not listexists 'mounts'
  3. createlist 'mounts'
  4. // Swamp Dragon
  5. pushlist 'mounts' 0x31f
  6. pushlist 'mounts' 0x31a
  7. // Nightmare
  8. pushlist 'mounts' 0x74
  9. pushlist 'mounts' 0xb2
  10. pushlist 'mounts' 0xb3
  11. pushlist 'mounts' 0xb4
  12. pushlist 'mounts' 0x76
  13. //warhorse
  14. pushlist 'mounts' 0x79
  15. // Kirin
  16. pushlist 'mounts' 0x84
  17. // Skeletal Mount
  18. pushlist 'mounts' 0x319
  19. // Unicorn
  20. pushlist 'mounts' 0x7a
  21. // Cu Sidhe
  22. pushlist 'mounts' 0x115
  23. //horse
  24. pushlist 'mounts' 0xe4
  25. pushlist 'mounts' 0xcc
  26. pushlist 'mounts' 0xc8
  27. pushlist 'mounts' 0xe2
  28. //beetle
  29. pushlist 'mounts' 0x317
  30. //reptalon
  31. pushlist 'mounts' 0x114
  32. //fire steed
  33. pushlist 'mounts' 0xbe
  34. endif
  35. @unsetalias 'target'
  36. for 0 to 'mounts'
  37. // Check for mounts in range of 10 tiles
  38. while @findtype 'mounts[]' 'any' 'ground' 1 10
  39. ignoreobject 'found'
  40. // Mount should not be dead or current enemy
  41. if dead 'found' or @serial 'enemy' == serial 'found'
  42. continue
  43. endif
  44. // Skip if mount is "green" or in friend list
  45. if friend 'found' or infriendlist 'found'
  46. continue
  47. endif
  48. // msg 'yo'
  49. // continue
  50. /// endif
  51. // Mount must be tamed or bonded
  52. waitforproperties 'found' 500
  53. if not @property 'tame' 'found' and not @property 'bonded' 'found'
  54. continue
  55. endif
  56. @setalias 'target' 'found'
  57. break
  58. endwhile
  59. // Check if target is defined before next item of mount list
  60. if @findalias 'target'
  61. @setalias 'enemy' 'target'
  62. @setalias 'last' 'target'
  63. break
  64. endif
  65. endfor
  66. if not @findalias 'target'
  67. if @findobject 'enemy'
  68. @unsetalias 'enemy'
  69. clearignorelist
  70. replay
  71. endif
  72. sysmsg 'Enemy mount not found!' 30
  73. else
  74. @setalias 'enemy' 'target'
  75. headmsg '[Enemy]' 1153 'enemy'
  76. target 'last'
  77. endif
  78. setalias 'last' 'enemy'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement