Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.00 KB | None | 0 0
  1. ---------------------------------
  2. -----------Drefia Wyrms----------
  3. ----By Xiaospike & Joshwa534-----
  4. ------------Enjoy!!!-------------
  5. ---------------------------------
  6.  
  7. ----------- BP SETUP ------------
  8. -- [BP 1] - Main Backpack
  9. -- [BP 2] - Stackable Product
  10. -- [BP 3] - Non-Stackable Backpack
  11. -- [BP 4] - Gold Backpack Cascaded
  12.  
  13. -----------------------------
  14. ---------DP SETUP------------
  15. -----------------------------
  16.  
  17. local RAREDP = 0
  18. local STACKDP = 1
  19.  
  20. ---------- Backpacks ---------
  21.  
  22. local NonstackBP = "Orange Backpack"
  23. local StackBP = "Beach Backpack"
  24. local GoldBP = "Brocade Backpack"
  25.  
  26. ---------- Settings ---------
  27.  
  28. local ManaID = 238 --- Which mana potions are you using?
  29. local MinMana = 100 --- How many mana potions until you leave the hunt.
  30. local MaxMana = 300 --- How many mana potions you begin the hunt with.
  31. local ManaPrice = 120 --- What is the price of your selected mana potions?
  32.  
  33. local MinCap = 100 ---- if less then script will exit spawn
  34.  
  35. local DragonLords = true -- if you want to hunt on -2 (Dragon Lords) put true or else to hunt on -1 (Dragons Only) put false.
  36. local Hardcore = false -- if you want to hunt on -3 (Dragon Lords x 4) put true or else put false.
  37.  
  38. ----------------------------------------------------------
  39.  
  40. -- [266] Health Potion - 45gp
  41. -- [236] Strong Health Potion - 100gp
  42. -- [239] Great Health Potion - 190gp
  43. -- [7643] Ultimate Health Potion - 310gp
  44.  
  45. -- [268] Mana Potion - 50 gp
  46. -- [237] Strong Mana Potion - 80gp
  47. -- [238] Great Mana Potion - 120gp
  48.  
  49. -- [7642] Great Spirit Potion - 190gp
  50.  
  51. setTargetingEnabled(true)
  52. setLooterEnabled(true)
  53.  
  54. --------------------------------------------------------------------
  55. --------------------------------------------------------------------
  56. --------------------------------------------------------------------
  57. ------------------ DO NOT TOUCH THIS CODE --------------------------
  58. -------------------- IF YOU DO NOT KNOW ----------------------------
  59. -------------------- WHAT YOU ARE DOING ----------------------------
  60. --------------------------------------------------------------------
  61. --------------------------------------------------------------------Priestess
  62. --------------------------------------------------------------------
  63.  
  64. registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
  65.  
  66. local info = [[
  67. Free Darashia Dragons & Dragon Lords by Xiaospike & Joshwa534]]
  68. wait(5000)
  69.  
  70. print([[
  71. Free Darashia Dragons & Dragon Lords by Xiaospike & Joshwa534]])
  72. wait(5000)
  73.  
  74. dofile("Forgee.lua")
  75. function onWalkerSelectLabel(labelName)
  76.  
  77. if (labelName == "checker1") then
  78. setWalkerEnabled(false)
  79. if (Self.ItemCount(ManaID) <= MinMana) or (Self.Cap() < MinCap) or (Self.ItemCount(HealthID) <= MinHealth) then
  80. setWalkerEnabled(true)
  81. gotoLabel("LeaveCave")
  82. else
  83. setWalkerEnabled(true)
  84. gotoLabel("keepHunting1")
  85. end
  86.  
  87. elseif (labelName == "checker2") then
  88. setWalkerEnabled(false)
  89. if (Self.ItemCount(ManaID) <= MinMana) or (Self.Cap() < MinCap) then
  90. setWalkerEnabled(true)
  91. gotoLabel("LeaveDLS")
  92. else
  93. setWalkerEnabled(true)
  94. gotoLabel("keepHunting2")
  95. end
  96.  
  97. elseif (labelName == "DragonLords") then
  98. setWalkerEnabled(false)
  99. if (DragonLords) then
  100. gotoLabel("DL")
  101. else
  102. gotoLabel("NODL")
  103. end
  104. setWalkerEnabled(true)
  105.  
  106. elseif (labelName == "Hardcore") then
  107. setWalkerEnabled(false)
  108. if (Hardcore) and (Self.ItemCount(ManaID) > MinMana) then
  109. gotoLabel("HardcoreMode")
  110. else
  111. gotoLabel("Softcore")
  112. end
  113. setWalkerEnabled(true)
  114.  
  115. elseif (labelName == "keepHunting2") then
  116. print(info)
  117.  
  118. elseif (labelName == "checkstuff") then
  119. local ESTMana = (MaxMana-20)
  120. setWalkerEnabled(false)
  121. if (Self.ItemCount(ManaID) < ESTMana) then
  122. setWalkerEnabled(true)
  123. gotoLabel("Resupply")
  124. else
  125. setWalkerEnabled(true)
  126. gotoLabel("ToHunt")
  127. end
  128.  
  129. elseif (labelName == "bank") then
  130. local withdrawManas = (MaxMana-Self.ItemCount(ManaID))*ManaPrice
  131. setWalkerEnabled(false)
  132. Self.SayToNpc({"hi", "deposit all", "yes"}, 65)
  133. if (withdrawManas > 0) then
  134. Self.SayToNpc({"withdraw " .. withdrawManas, "yes"}, 65)
  135. end
  136. Self.SayToNpc({"balance"}, 65)
  137. setWalkerEnabled(true)
  138. wait(2000)
  139.  
  140. elseif (labelName == "deposit") then
  141. setWalkerEnabled(false)
  142. Self.ReachDepot()
  143. Self.DepositItems({3386, 0}, {3392, 0}, {7402, 0}, {7399, 0}, {3428, 0}, {3280, 0}, {818, 0}, {3416, 0}, {8072, 0}, {3071, 0}, {7430, 0}, {3322, 0}, {7290, 0}, {3284, 0}, {3297, 0}, {5919, 0}, {5791, 0})
  144. Self.DepositItems({3028, 1}, {9661, 1}, {5877, 1}, {3373, 1},{5882, 1}, {3029, 1}, {5948, 1}, {236, 1}, {3061, 1}, {3450, 1}, {11457,1}, {5920, 1}, {3351, 1})
  145. wait(1500,1900)
  146. setWalkerEnabled(true)
  147.  
  148. elseif (labelName == "HardcoreMode") then
  149. print(info)
  150.  
  151. elseif (labelName == "potions") then
  152. setWalkerEnabled(false)
  153. if (Self.ItemCount(ManaID) < MaxMana then
  154. Self.SayToNpc({"hi", "flasks", "yes", "yes", "yes", "yes", "yes", "yes", "trade"}, 65)
  155. wait(2000)
  156. if (Self.ItemCount(ManaID) < MaxMana) then
  157. buyItems(ManaID, MaxMana)
  158. wait(200)
  159. buyItems(ManaID, MaxMana)
  160. wait(200)
  161. buyItems(ManaID, MaxMana)
  162. wait(200)
  163. buyItems(ManaID, MaxMana)
  164. wait(200)
  165. buyItems(ManaID, MaxMana)
  166. wait(200)
  167. buyItems(ManaID, MaxMana)
  168. wait(200)
  169. buyItems(ManaID, MaxMana)
  170. wait(200)
  171. buyItems(ManaID, MaxMana)
  172. wait(200)
  173. buyItems(ManaID, MaxMana)
  174. wait(200)
  175. buyItems(ManaID, MaxMana)
  176. wait(200)
  177. end
  178. wait(200, 500)
  179. end
  180. setWalkerEnabled(true)
  181.  
  182. elseif (labelName == "keepHunting1") then
  183. print(info)
  184.  
  185. elseif (labelName == "ResetBps") then
  186. setWalkerEnabled(false)
  187. Self.CloseContainers()
  188. repeat
  189. wait(900)
  190. until (Self.UseItemFromEquipment("backpack") > 0)
  191. wait(1000)
  192. Container.GetFirst():OpenChildren(Item.GetID(NonstackBP), Item.GetID(StackBP), Item.GetID(GoldBP))
  193. setWalkerEnabled(true)
  194. end
  195. end
  196. ----------------------- Functions ----------------------
  197. Self.ReachNpc = function(name, tries)
  198. local npc = Creature.GetByName(name)
  199. if (npc:DistanceFromSelf() > 3) then
  200. tries = tries or 15
  201. repeat
  202. local nposi = npc:Position()
  203. Self.UseItemFromGround(nposi.x, nposi.y, nposi.z)
  204. wait(1500)
  205. tries = tries - 1
  206. until (npc:DistanceFromSelf() <= 3) or (tries == 0)
  207. end
  208. end
  209.  
  210. function NpcConv(...)
  211. for _, str in ipairs(arg) do
  212. wait((tostring(str):len() / 125) * 60000 * math.random(1.1, 1.8))
  213. Self.SayToNpc(str)
  214. end
  215. end
  216.  
  217.  
  218. function sellItems(item) -- item = item ID
  219. wait(300, 1700)
  220. Self.ShopSellItem(item, Self.ShopGetItemSaleCount(item))
  221. wait(900, 1200)
  222. end
  223.  
  224. function buyItems(item, count) -- item = item id, count = how many you want to buy up to
  225. wait(900, 1200)
  226. if (Self.ItemCount(item) < count) then
  227. Self.ShopBuyItem(item, (count-Self.ItemCount(item)))
  228. wait(200, 500)
  229. end
  230. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement