Advertisement
Guest User

Untitled

a guest
Jul 5th, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.04 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?><waypoints>
  2. <onload>
  3.  
  4. <!-- NoobBotter's Dailies for patch 6.0.6 in Wailing Fjord -->
  5. <!-- Wanted: "Guargo the Mad Bull" daily/public quest -->
  6. <!-- V 1.1 -->
  7. <!-- -->
  8. <!-- Starts at snoop at the new Wailing Fjord Port -->
  9. <!-- -->
  10. <!-- Will do all 10 dailies, and use daily resets if available. -->
  11. <!-- (Can change the option to use dailies just below) -->
  12. <!-- -->
  13. <!-- Can change it to do this as a public quest -->
  14. <!-- (I didn't include any event start/stop timers) -->
  15. <!-- -->
  16. <!-- Gives Average Time per round after each round. -->
  17. <!-- At end, it gives Total time, Average time per quest, -->
  18. <!-- number of quests completed, number of Daily Resets used, -->
  19. <!-- and number of Daily Resets remaining in inventory. -->
  20.  
  21. <!-- Version 1.1 Changes: -->
  22. <!-- By default, the bot will not use up pots. -->
  23. <!-- If you need the extra firepower, set usePots to true -->
  24. <!-- -->
  25. <!-- By default, the bot will not use speed() boost. -->
  26. <!-- If you want the extra speed, set highSpeed to true -->
  27.  
  28.  
  29. <!-- User adjustable variables: -->
  30. questtype = "daily" -- "public" or "daily"
  31. usereset = true -- set to true if you want to use daily reset tickets
  32. publicafterdaily = false -- set to true to do public quests when dailies are done. If doing this, usereset must be false.
  33. maxPlayerLevel = 85 -- Player Level that will no longer Complete quest **only applies to dailies... Public would still do the quest. Typically, Player Level Cap
  34. usePots = false -- set to true if you need it to use pots
  35. 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.
  36. -- I modified my speed() userfunction to reduce the max speed just a bit.
  37. <!-- Functions -->
  38. function questsDone()
  39. local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
  40. if (dailyQuestCount==dailyQuestsPerDay) then
  41. return true;
  42. else
  43. return false;
  44. end
  45. end
  46.  
  47. function checkToDoMore()
  48. yrest(500)
  49. if questsDone() and questtype == "daily" then
  50. if usereset == true and maxPlayerLevel > player.Level then
  51. inventory:update();
  52. player:update();
  53. if inventory:itemTotalCount(202434) > 0 then --daily reset tickets
  54. inventory:useItem(202434);
  55. yrest(500)
  56. __WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
  57. else
  58. __WPL:setWaypointIndex(__WPL:findWaypointTag("allDone"))
  59. end
  60. elseif publicafterdaily == true then
  61. questtype = "public"
  62. __WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
  63. else
  64. __WPL:setWaypointIndex(__WPL:findWaypointTag("allDone"))
  65. end
  66. elseif questsDone() and questtype == "public" then
  67. __WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
  68. end
  69. end
  70.  
  71. function doMount()
  72. if not player.Mounted then
  73. if (useGoodie) then
  74. useGoodie("riding")
  75. end
  76. player:mount()
  77. end
  78. if highSpeed == true then
  79. speed()
  80. end
  81. end
  82.  
  83. function getquest()
  84. quest = questlog:haveQuest(426557, questtype) -- Wanted: "Guargo the Mad Bull"
  85. if quest == false then
  86. repeat
  87. player:target_Object(122806) -- Port Bulletin Board
  88. yrest(100)
  89. AcceptQuestByName(426557)
  90. yrest(200)
  91. until getQuestStatus(GetIdName(426557), questtype) ~= "accepted"
  92. end
  93. end
  94.  
  95. function completequest()
  96. quest2 = questlog:getQuest(426557, questtype)
  97. if quest2:isComplete() then
  98. repeat
  99. player:target_NPC(122760) -- Chuck Willis
  100. yrest(200)
  101. CompleteQuestByName(426557) -- Wanted: "Guargo the Mad Bull"
  102. until getQuestStatus(GetIdName(426557), questtype) ~= "not accepted"
  103. end
  104. local roundTime = os.time()-restartTime
  105. cprintf (cli.pink,"Time spend for this round: %s Seconds\n",roundTime)
  106. restartTime = os.time()
  107. questsCompleted = questsCompleted + 1
  108. averageTime = (os.time()-time)/questsCompleted
  109. cprintf (cli.yellow,"Average time per round: %s Seconds\n",averageTime)
  110. checkToDoMore()
  111. end
  112.  
  113. <!-- Start of Waypoint -->
  114. questsCompleted = 0
  115. resetsUsed = 0
  116. time = os.time(); -- Startingtime of Waypoint File
  117. restartTime = time -- Startingtime of Each quest
  118. changeProfileOption("WAYPOINT_DEVIATION",2);
  119. __WPL:setForcedWaypointType("TRAVEL")
  120. changeOptionFriendMob("mob", 108173, "Add") -- Guargo the Furious Bull
  121. questsDone()
  122. if questsDone() and questtype == "daily" then
  123. if usereset == true and maxPlayerLevel > player.Level then
  124. inventory:update();
  125. player:update();
  126. if inventory:itemTotalCount(202434) > 0 then --daily reset tickets
  127. inventory:useItem(202434);
  128. yrest(500)
  129. else
  130. error("Done with Dailies. To continue get more resets.")
  131. end
  132. else
  133. if usereset == false then
  134. error("Done with today's dailies. Option is set to not use reset tickets.")
  135. elseif publicafterdaily == true then
  136. questtype = "public"
  137. __WPL:setWaypointIndex(1)
  138. else
  139. error("Done with today's dailies. Player is at level Cap")
  140. end
  141. end
  142. elseif questsDone() and questtype == "public" then
  143. print("Commencing Public quests.")
  144. end
  145. __WPL:setWaypointIndex(1)
  146. </onload>
  147. <!-- # 1 --><waypoint x="-9162" z="3050">
  148. doMount()
  149. </waypoint>
  150. <!-- # 2 --><waypoint x="-9218" z="2938"> </waypoint>
  151. <!-- # 3 --><waypoint x="-9446" z="2733"> </waypoint>
  152. <!-- # 4 --><waypoint x="-9688" z="2889"> </waypoint>
  153. <!-- # 5 --><waypoint x="-9793" z="3028" tag="getquest">
  154. getquest()
  155. </waypoint>
  156. <!-- # 6 --><waypoint x="-9633" z="2849"> </waypoint>
  157. <!-- # 7 --><waypoint x="-9424" z="2743"> </waypoint>
  158. <!-- # 8 --><waypoint x="-9267" z="2830"> </waypoint>
  159. <!-- # 9 --><waypoint x="-8873" z="2749"> </waypoint>
  160. <!-- # 12 --><waypoint x="-8284" z="2127">
  161. __WPL:setForcedWaypointType("NORMAL")
  162. repeat
  163. local mytarget = player:findNearestNameOrId(108173) -- Guargo the Furious Bull
  164. if not mytarget then
  165. yrest(500)
  166. end
  167. until mytarget
  168. player:update()
  169. player:checkSkills(true)
  170. if usePots == true then
  171. itemBuffs()
  172. end
  173. </waypoint>
  174. <!-- # 12 --><waypoint x="-8212" z="2037" tag="atBull">
  175. player:target_NPC(108173)
  176. player:fight()
  177. </waypoint>
  178. <!-- # 1 --><waypoint x="-8284" z="2127">
  179. quest = questlog:getQuest(426557, questtype)
  180. if quest:isComplete() then
  181. __WPL:setForcedWaypointType("TRAVEL")
  182. doMount()
  183. else
  184. __WPL:setWaypointIndex(__WPL:findWaypointTag("atBull"))
  185. end
  186. </waypoint>
  187. <!-- # 1 --><waypoint x="-8591" z="2448"> </waypoint>
  188. <!-- # 2 --><waypoint x="-9016" z="2671"> </waypoint>
  189. <!-- # 3 --><waypoint x="-9322" z="2828"> </waypoint>
  190. <!-- # 4 --><waypoint x="-9516" z="2781"> </waypoint>
  191. <!-- # 5 --><waypoint x="-9549" z="2870"> </waypoint>
  192. <!-- # 6 --><waypoint x="-9555" z="2999"> </waypoint>
  193. <!-- # 7 --><waypoint x="-9603" z="3096"> </waypoint>
  194. <!-- # 8 --><waypoint x="-9716" z="3165"> </waypoint>
  195. <!-- # 9 --><waypoint x="-9796" z="3159">
  196. completequest()
  197. </waypoint>
  198. <!-- # 10 --><waypoint x="-9770" z="2998">
  199. __WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
  200. </waypoint>
  201. <!-- # 5 --><waypoint x="-9770" z="2998" tag="allDone"> </waypoint>
  202. <!-- # 4 --><waypoint x="-9688" z="2889"> </waypoint>
  203. <!-- # 3 --><waypoint x="-9446" z="2733"> </waypoint>
  204. <!-- # 2 --><waypoint x="-9218" z="2938"> </waypoint>
  205. <!-- # 1 --><waypoint x="-9162" z="3050">
  206. local totalTime = (os.time()-time)/60
  207. cprintf (cli.pink,"Total Time spend on these %s quests: %s Minutes\n",questtype,totalTime)
  208. local averageTime = (totalTime*60)/questsCompleted
  209. cprintf (cli.pink,"Average time per round: %s Seconds\n",averageTime)
  210. cprintf (cli.pink,"Completed total of %s quests.\n",questsCompleted)
  211. if usereset == true then
  212. local resetsRemaining = inventory:itemTotalCount(202434)
  213. cprintf (cli.pink,"Used %s Daily Reset Tickets, and has %s remaining.\n",resetsUsed,resetsRemaining)
  214. end
  215. error("All Done.")
  216. </waypoint>
  217. </waypoints>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement