Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. macro Transferir {
  2.  
  3. while (
  4. (@storamount(Coração Imortal) > 0) ||
  5. (@storamount(Álcool) > 0) ||
  6. (@invamount(Morango) > 0)
  7. )
  8.  
  9. as loop
  10.  
  11. :pegaItem
  12.  
  13. do storage get @storage(Coração Imortal) &eval(int(((90 * $::char->{weight_max})/100 - $::char->{weight}) / 1)) if (@storamount(Coração Imortal) > 0)
  14. goto troca if (@invamount(Coração Imortal) > 0)
  15.  
  16. do storage get @storage(Álcool) &eval(int(((90 * $::char->{weight_max})/100 - $::char->{weight}) / 3)) if (@storamount(Álcool) > 0)
  17. goto troca if (@invamount(Álcool) > 0)
  18.  
  19. do storage get @storage(Morango) &eval(int(((90 * $::char->{weight_max})/100 - $::char->{weight}) / 2)) if (@storamount(Morango) > 0)
  20. goto troca if (@invamount(Morango) > 0)
  21.  
  22. :troca
  23.  
  24. do storage close
  25. pause 3
  26. do deal "Taken x3"
  27. pause 3
  28.  
  29.  
  30. pause 3 if (@invamount(Coração Imortal) > 0)
  31. do deal add @inventory(Coração Imortal) if (@invamount(Coração Imortal) > 0)
  32.  
  33. pause 3 if (@invamount(Álcool) > 0)
  34. do deal add @inventory(Álcool) if (@invamount(Álcool) > 0)
  35.  
  36. pause 3 if (@invamount(Morango) > 0)
  37. do deal add @inventory(Morango) if (@invamount(Morango) > 0)
  38.  
  39. pause 3
  40. do deal
  41. pause 3
  42. do deal
  43. pause 3
  44. do talknpc
  45. pause 3
  46.  
  47. end loop
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement