Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hooch_href = setup_turnplaying_script {
- name = "automate-hooch",
- description = "Farm hooch at the club",
- when = function() return true end,
- macro = nil,
- preparation = function()
- end,
- adventuring = function()
- advagain = true
- result, resulturl = get_page("/charpane.php")
- local current_hooch, max_hooch = result:match("Hooch:.-(%d+).-/.-(%d+)")
- print("Current hooch " .. current_hooch)
- print("Max hooch" .. max_hooch)
- if tonumber(current_hooch) + 1 < tonumber(max_hooch) then
- -- 411
- autoadventure {
- zoneid = 411,
- specialnoncombatfunction = function(advtitle, choicenum, pt)
- if advtitle == "Around The World" then
- return "Grab the hooch"
- end
- end
- }
- else
- result, resulturl = get_page("/place.php", {whichplace = "twitch", action="twitch_shoerepair"})
- result, resulturl = get_page("/choice.php", {whichchoice = 973, option= 2, pwd = get_pwd()})
- end
- __set_turnplaying_result(result, resulturl, advagain)
- end,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement