Advertisement
Guest User

Untitled

a guest
Jul 27th, 2014
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1.  
  2. local hooch_href = setup_turnplaying_script {
  3. name = "automate-hooch",
  4. description = "Farm hooch at the club",
  5. when = function() return true end,
  6. macro = nil,
  7. preparation = function()
  8. end,
  9. adventuring = function()
  10. advagain = true
  11. result, resulturl = get_page("/charpane.php")
  12. local current_hooch, max_hooch = result:match("Hooch:.-(%d+).-/.-(%d+)")
  13. print("Current hooch " .. current_hooch)
  14. print("Max hooch" .. max_hooch)
  15. if tonumber(current_hooch) + 1 < tonumber(max_hooch) then
  16. -- 411
  17. autoadventure {
  18. zoneid = 411,
  19. specialnoncombatfunction = function(advtitle, choicenum, pt)
  20. if advtitle == "Around The World" then
  21. return "Grab the hooch"
  22. end
  23. end
  24. }
  25. else
  26. result, resulturl = get_page("/place.php", {whichplace = "twitch", action="twitch_shoerepair"})
  27. result, resulturl = get_page("/choice.php", {whichchoice = 973, option= 2, pwd = get_pwd()})
  28. end
  29.  
  30. __set_turnplaying_result(result, resulturl, advagain)
  31. end,
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement