Advertisement
DavidJSGardner

Enticement

May 15th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. ;Enticement macro for Pangaea-world.dk
  2.  
  3. set %FoodTimer #SCNT
  4.  
  5. Event Sysmessage Target your pet for training!
  6. Set #TargCurs 1
  7.  
  8. While #TargCurs <> 0
  9. wait 1
  10.  
  11. Set %Pet #LTargetID
  12.  
  13. GoSub FoodSetup
  14.  
  15. While #True
  16. {
  17. if #SCNT >= %FoodTimer
  18. {
  19. GoSub FeedPet
  20. }
  21.  
  22. Set #LTargetID %Pet
  23. gosub performaction 13 15 22 10s
  24. }
  25.  
  26. Sub FeedPet
  27. finditem %FoodType C_ , #BackPackID
  28. If #FindStack > 0
  29. {
  30. exevent drag #findid 1
  31. wait 10
  32. exevent dropc %Pet
  33. wait 10
  34. set %FoodTimer #SCNT + 600
  35. }
  36. else
  37. {
  38. Display ok You are out of Food! $ Halting
  39. halt
  40. }
  41. return
  42.  
  43. Sub FoodSetup
  44. event sysmessage Select Food Type
  45. Set #TARGCURS 1
  46. while #TARGCURS = 1
  47. wait 1
  48.  
  49. FindItem #LTargetID
  50. Set %FoodType #FindType
  51. return
  52.  
  53. ;========================================
  54. ; Script Name: Janus' Perform Skill/Spell Sub
  55. ; Author: Janus
  56. ; Version: 1.2
  57. ; Client Tested with: 4.0.1a client
  58. ; EUO version tested with: 1.42 B0094
  59. ; Shard OSI / FS: Local Pol Server
  60. ; Revision Date: 08-03-04
  61. ; Public Release: 08-03-04
  62. ; Purpose: you can perform multiple skills/spells in a few gosubs, useful for a combat macro or multi skill trainer
  63. ;========================================
  64. sub performaction
  65. event macro %1 %2
  66. if %1 = 13 2
  67. if G in #charstatus
  68. event macro 6 0
  69. if %3 <> 0 2
  70. target 10s
  71. event macro %3 0
  72. wait %4
  73. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement