Advertisement
kilarn123

Untitled

Jan 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. $${
  2.  
  3. &fromwhat = "gold_nugget"
  4. &towhat = "gold_ingot"
  5.  
  6. Wait(40t)
  7. Log(Get ready...)
  8. Wait(20t)
  9. ECHO(/craft)
  10. Wait(50ms)
  11. Log(Crafting...)
  12. For(&counter,1,2)
  13. For(#invslot,10,46)
  14. getslotitem(%#invslot%,&item)
  15. if(%&item%= &fromwhat )
  16. SLOTCLICK(%#invslot%)
  17. getslotitem(1,&Slot1)
  18. Wait(20ms)
  19. getslotitem(2,&Slot2)
  20. Wait(20ms)
  21. getslotitem(3,&Slot3)
  22. Wait(20ms)
  23. getslotitem(4,&Slot4)
  24. Wait(20ms)
  25. getslotitem(5,&Slot5)
  26. Wait(20ms)
  27. getslotitem(6,&Slot6)
  28. Wait(20ms)
  29. getslotitem(7,&Slot7)
  30. Wait(20ms)
  31. getslotitem(8,&Slot8)
  32. Wait(20ms)
  33. getslotitem(9,&Slot9)
  34. Wait(20ms)
  35. if(%&slot1%!= &fromwhat )
  36. SLOTCLICK(1)
  37. elseif(%&slot2%!= &fromwhat )
  38. SLOTCLICK(2)
  39. elseif(%&slot3%!= &fromwhat )
  40. SLOTCLICK(3)
  41. elseif(%&slot4%!= &fromwhat )
  42. SLOTCLICK(4)
  43. elseif(%&slot5%!= &fromwhat )
  44. SLOTCLICK(5)
  45. elseif(%&slot6%!= &fromwhat )
  46. SLOTCLICK(6)
  47. elseif(%&slot7%!= &fromwhat )
  48. SLOTCLICK(7)
  49. elseif(%&slot8%!= &fromwhat )
  50. SLOTCLICK(8)
  51. elseif(%&slot9%!= &fromwhat )
  52. SLOTCLICK(9)
  53. else
  54. SLOTCLICK(0,l,true)
  55. endif
  56. endif
  57. NEXT
  58. Log(Check %&counter% of 2)
  59. getslotitem(0,&slot0)
  60. If(%&slot0%= &towhat )
  61. SLOTCLICK(0,l,true)
  62. endif
  63. NEXT
  64. Log("Crafting finished")?
  65. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement