Advertisement
linknaka

Untitled

Apr 12th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. automacro compra {
  2. location not prt_in 172 130
  3. call start
  4. run-once 1
  5. timeout 10
  6. }
  7. macro start {
  8. do move 172 130 prt_in
  9. $tsus = 0
  10. $cheio = 0
  11. pause 1
  12. }
  13. automacro bf {
  14. location prt_in 173 130
  15. call buy
  16. timeout 3
  17. $tsus < 30
  18. }
  19. macro buy {
  20. do talknpc 172 130 b b13,1
  21. $tsus++
  22. if($cheio == 0) {
  23. log você tem $tsus
  24. }
  25. if($cheio == 1) {
  26. log você tem $tsus ja depositou no carrinho
  27. }
  28. pause 1
  29. }
  30. automacro carrinho {
  31. $tsus > 29
  32. call dep
  33. overrideAI 1
  34. run-once 1
  35. }
  36. macro dep {
  37. log começou a verificar
  38. $i = 0
  39. while ($i < 30) as loop
  40. do cart add Tsurug[1]
  41. $i++
  42. end loop
  43. $tsus=0
  44. $cheio=1
  45. if($cheio == 0) {
  46. log você tem $tsus
  47. }
  48. if($cheio == 1) {
  49. log você tem $tsus ja depositou no carrinho
  50. }
  51. }
  52.  
  53. automacro Storage {
  54. $tsus > 29
  55. $cheio > 0
  56. call sty
  57. run-once 1
  58. }
  59. macro sty {
  60. do move 280 200 prontera
  61. do talknpc 282 200 c c r1
  62. $i = 0
  63. while ($i < 70) as loop
  64. do storage add Tsurugi[1]
  65. do cart get Tsurugi[1]
  66. $i++
  67. end loop
  68. pause 1
  69. release compra
  70. release carrinho
  71. release Storage
  72. $tsus = 0
  73. $cheio = 0
  74. do storage close
  75.  
  76. pause 5
  77.  
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement