Advertisement
bls000

Macro Pescaria Ash Vacum

Sep 2nd, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. # Ash Vaccuum fishing mini-quest macros by Revok
  2. # Untested, may have some kind of bugs.
  3.  
  4. automacro reachFishingSpot {
  5. location not mid_camp 61 135 68 129
  6. exclusive 1
  7. timeout 5
  8. call {
  9. do move mid_camp @rand(61,68) @rand(129,135)
  10. }
  11. }
  12.  
  13. automacro startFishing {
  14. location mid_camp 61 135 68 129
  15. inventory "Pedaço de Peixe" < 20
  16. timeout 2
  17. run-once 1
  18. call {
  19. do eval configModify('autoTalkCont', '1', silent => 1);
  20. do talk @npc(75 135)
  21. }
  22. }
  23.  
  24. # Ash Vaccuum fishing mini-quest macros by Revok
  25. # Untested, may have some kind of bugs.
  26. automacro storeFishes {
  27. location mid_camp 61 135 68 129
  28. inventory "Pedaço de Peixe" = 20
  29. exclusive 1
  30. call {
  31. do move mid_camp @rand(55, 60) @rand(120, 129)
  32. pause 1
  33. do talknpc 62 125 c r1 # Thx to megamemx45 for these talk codes.
  34. pause 2
  35. do storage add @inventory(Pedaço de Peixe)
  36. pause 1
  37. do storage close
  38. pause 1
  39. do move mid_camp @rand(61,68) @rand(129,135)
  40. release startFishing
  41. }
  42. }
  43.  
  44. automacro fishingGotSomething {
  45. hook item_gathered
  46. save item
  47. call {
  48. log Peguei um $.hooksave0 :D/>
  49. release startFishing
  50. }
  51. }
  52.  
  53.  
  54. automacro fishingGotNothing {
  55. hook npc_talk_done
  56. save ID
  57. eval &Misc::getNPCName($::Macro::Data::varStack{'.hooksave0'}) =~ /Cardume/
  58. call {
  59. log Não pesquei nada :(/>
  60. release startFishing
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement