Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?><waypoints>
- <onload>
- <!-- NoobBotter's Dailies for patch 6.0.6 in Wailing Fjord -->
- <!-- Wanted: "Guargo the Mad Bull" daily/public quest -->
- <!-- V 1.1 -->
- <!-- -->
- <!-- Starts at snoop at the new Wailing Fjord Port -->
- <!-- -->
- <!-- Will do all 10 dailies, and use daily resets if available. -->
- <!-- (Can change the option to use dailies just below) -->
- <!-- -->
- <!-- Can change it to do this as a public quest -->
- <!-- (I didn't include any event start/stop timers) -->
- <!-- -->
- <!-- Gives Average Time per round after each round. -->
- <!-- At end, it gives Total time, Average time per quest, -->
- <!-- number of quests completed, number of Daily Resets used, -->
- <!-- and number of Daily Resets remaining in inventory. -->
- <!-- Version 1.1 Changes: -->
- <!-- By default, the bot will not use up pots. -->
- <!-- If you need the extra firepower, set usePots to true -->
- <!-- -->
- <!-- By default, the bot will not use speed() boost. -->
- <!-- If you want the extra speed, set highSpeed to true -->
- <!-- User adjustable variables: -->
- questtype = "daily" -- "public" or "daily"
- usereset = true -- set to true if you want to use daily reset tickets
- publicafterdaily = false -- set to true to do public quests when dailies are done. If doing this, usereset must be false.
- maxPlayerLevel = 85 -- Player Level that will no longer Complete quest **only applies to dailies... Public would still do the quest. Typically, Player Level Cap
- usePots = false -- set to true if you need it to use pots
- highSpeed = false -- set to true to use speed() function to speed up more. This has potential of causing pullbacks if you speed too great a distance.
- -- I modified my speed() userfunction to reduce the max speed just a bit.
- <!-- Functions -->
- function questsDone()
- local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
- if (dailyQuestCount==dailyQuestsPerDay) then
- return true;
- else
- return false;
- end
- end
- function checkToDoMore()
- yrest(500)
- if questsDone() and questtype == "daily" then
- if usereset == true and maxPlayerLevel > player.Level then
- inventory:update();
- player:update();
- if inventory:itemTotalCount(202434) > 0 then --daily reset tickets
- inventory:useItem(202434);
- yrest(500)
- __WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
- else
- __WPL:setWaypointIndex(__WPL:findWaypointTag("allDone"))
- end
- elseif publicafterdaily == true then
- questtype = "public"
- __WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
- else
- __WPL:setWaypointIndex(__WPL:findWaypointTag("allDone"))
- end
- elseif questsDone() and questtype == "public" then
- __WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
- end
- end
- function doMount()
- if not player.Mounted then
- if (useGoodie) then
- useGoodie("riding")
- end
- player:mount()
- end
- if highSpeed == true then
- speed()
- end
- end
- function getquest()
- quest = questlog:haveQuest(426557, questtype) -- Wanted: "Guargo the Mad Bull"
- if quest == false then
- repeat
- player:target_Object(122806) -- Port Bulletin Board
- yrest(100)
- AcceptQuestByName(426557)
- yrest(200)
- until getQuestStatus(GetIdName(426557), questtype) ~= "accepted"
- end
- end
- function completequest()
- quest2 = questlog:getQuest(426557, questtype)
- if quest2:isComplete() then
- repeat
- player:target_NPC(122760) -- Chuck Willis
- yrest(200)
- CompleteQuestByName(426557) -- Wanted: "Guargo the Mad Bull"
- until getQuestStatus(GetIdName(426557), questtype) ~= "not accepted"
- end
- local roundTime = os.time()-restartTime
- cprintf (cli.pink,"Time spend for this round: %s Seconds\n",roundTime)
- restartTime = os.time()
- questsCompleted = questsCompleted + 1
- averageTime = (os.time()-time)/questsCompleted
- cprintf (cli.yellow,"Average time per round: %s Seconds\n",averageTime)
- checkToDoMore()
- end
- <!-- Start of Waypoint -->
- questsCompleted = 0
- resetsUsed = 0
- time = os.time(); -- Startingtime of Waypoint File
- restartTime = time -- Startingtime of Each quest
- changeProfileOption("WAYPOINT_DEVIATION",2);
- __WPL:setForcedWaypointType("TRAVEL")
- changeOptionFriendMob("mob", 108173, "Add") -- Guargo the Furious Bull
- questsDone()
- if questsDone() and questtype == "daily" then
- if usereset == true and maxPlayerLevel > player.Level then
- inventory:update();
- player:update();
- if inventory:itemTotalCount(202434) > 0 then --daily reset tickets
- inventory:useItem(202434);
- yrest(500)
- else
- error("Done with Dailies. To continue get more resets.")
- end
- else
- if usereset == false then
- error("Done with today's dailies. Option is set to not use reset tickets.")
- elseif publicafterdaily == true then
- questtype = "public"
- __WPL:setWaypointIndex(1)
- else
- error("Done with today's dailies. Player is at level Cap")
- end
- end
- elseif questsDone() and questtype == "public" then
- print("Commencing Public quests.")
- end
- __WPL:setWaypointIndex(1)
- </onload>
- <!-- # 1 --><waypoint x="-9162" z="3050">
- doMount()
- </waypoint>
- <!-- # 2 --><waypoint x="-9218" z="2938"> </waypoint>
- <!-- # 3 --><waypoint x="-9446" z="2733"> </waypoint>
- <!-- # 4 --><waypoint x="-9688" z="2889"> </waypoint>
- <!-- # 5 --><waypoint x="-9793" z="3028" tag="getquest">
- getquest()
- </waypoint>
- <!-- # 6 --><waypoint x="-9633" z="2849"> </waypoint>
- <!-- # 7 --><waypoint x="-9424" z="2743"> </waypoint>
- <!-- # 8 --><waypoint x="-9267" z="2830"> </waypoint>
- <!-- # 9 --><waypoint x="-8873" z="2749"> </waypoint>
- <!-- # 12 --><waypoint x="-8284" z="2127">
- __WPL:setForcedWaypointType("NORMAL")
- repeat
- local mytarget = player:findNearestNameOrId(108173) -- Guargo the Furious Bull
- if not mytarget then
- yrest(500)
- end
- until mytarget
- player:update()
- player:checkSkills(true)
- if usePots == true then
- itemBuffs()
- end
- </waypoint>
- <!-- # 12 --><waypoint x="-8212" z="2037" tag="atBull">
- player:target_NPC(108173)
- player:fight()
- </waypoint>
- <!-- # 1 --><waypoint x="-8284" z="2127">
- quest = questlog:getQuest(426557, questtype)
- if quest:isComplete() then
- __WPL:setForcedWaypointType("TRAVEL")
- doMount()
- else
- __WPL:setWaypointIndex(__WPL:findWaypointTag("atBull"))
- end
- </waypoint>
- <!-- # 1 --><waypoint x="-8591" z="2448"> </waypoint>
- <!-- # 2 --><waypoint x="-9016" z="2671"> </waypoint>
- <!-- # 3 --><waypoint x="-9322" z="2828"> </waypoint>
- <!-- # 4 --><waypoint x="-9516" z="2781"> </waypoint>
- <!-- # 5 --><waypoint x="-9549" z="2870"> </waypoint>
- <!-- # 6 --><waypoint x="-9555" z="2999"> </waypoint>
- <!-- # 7 --><waypoint x="-9603" z="3096"> </waypoint>
- <!-- # 8 --><waypoint x="-9716" z="3165"> </waypoint>
- <!-- # 9 --><waypoint x="-9796" z="3159">
- completequest()
- </waypoint>
- <!-- # 10 --><waypoint x="-9770" z="2998">
- __WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
- </waypoint>
- <!-- # 5 --><waypoint x="-9770" z="2998" tag="allDone"> </waypoint>
- <!-- # 4 --><waypoint x="-9688" z="2889"> </waypoint>
- <!-- # 3 --><waypoint x="-9446" z="2733"> </waypoint>
- <!-- # 2 --><waypoint x="-9218" z="2938"> </waypoint>
- <!-- # 1 --><waypoint x="-9162" z="3050">
- local totalTime = (os.time()-time)/60
- cprintf (cli.pink,"Total Time spend on these %s quests: %s Minutes\n",questtype,totalTime)
- local averageTime = (totalTime*60)/questsCompleted
- cprintf (cli.pink,"Average time per round: %s Seconds\n",averageTime)
- cprintf (cli.pink,"Completed total of %s quests.\n",questsCompleted)
- if usereset == true then
- local resetsRemaining = inventory:itemTotalCount(202434)
- cprintf (cli.pink,"Used %s Daily Reset Tickets, and has %s remaining.\n",resetsUsed,resetsRemaining)
- end
- error("All Done.")
- </waypoint>
- </waypoints>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement