Bardzo dziękuję, już prawie "jestem w domu" :)
Czyli muszę załadować te 2 pliki, tak? I oprócz tego zaznaczyć w narzędziach bota: food eater oraz anty-idle?
Czy ma znaczenie dla którego lvl jest przeznaczony ten skrypt? Czy mogę minimalnym lvl na utana vid go wykorzystać (czyli 35 lvl trenować)?
Gdybym chciał zmienić miasto na np. carlin to gdzie muszę coś zmienić? Spodziewam się, że chyba współrzędne, ale nie wiem gdze ich szukać :(
Kod :
----------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
----------------------------------------------------MADE BY SPARKZ023 VERSION 1.0---------------------------------
MPotID = 268 --- mana potion ID (268 Normal Mana Potion, 237 Strong Mana Potion, 238 Great Mana Potion)
MinMPots = 1 ---- if less then then bot will refill (don't change!)
MPots = 100 ----- amount to refill (270oz per 100 normal manas, 290oz per 100 strong manas, 310oz per 100 great manas)
MPotprice = 50 ---- price of 1 single mana pot (50 gold for normal manas, 80 gold for strong manas, 120 gold for great manas)
HideInPZ = false --- If you want to cast spells in the depot, please keep true. If you want to use softs life rings or food, click false and the bot will hide ouf of PZ, but in safety. (Recommend true for anyone botting afk)
--------------------------------------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
dofile("Forgee.lua")
function onWalkerSelectLabel(labelName)
if (labelName == "Checker1") then
delayWalker(1000)
setWalkerEnabled(false)
if (Self.ItemCount(MPotID) <= MinMPots) then
setWalkerEnabled(true)
gotoLabel("Leave1")
else
setWalkerEnabled(true)
gotoLabel("Keep Going1")
end
elseif (labelName == "Checker2") then
delayWalker(1000)
setWalkerEnabled(false)
if (Self.ItemCount(MPotID) <= MinMPots) then
setWalkerEnabled(true)
gotoLabel("Leave2")
else
setWalkerEnabled(true)
gotoLabel("Keep Going2")
end
elseif (labelName == "Check PZ") then
if (HideInPZ) then
gotoLabel("Go PZ")
else
gotoLabel("No PZ")
end
elseif (labelName == "Reach Depot") then
dofile("Forgee.lua")
Self.ReachDepot()
elseif (labelName == "Bank") then
setWalkerEnabled(false)
NpcConv("hi","deposit all","yes","balance")
wait(900, 1200)
Self.WithdrawMoney((MPotprice*(MPots-Self.ItemCount(MPotID))))
wait(3000,5000)
setWalkerEnabled(true)
elseif (labelName == "Deposit") then
setWalkerEnabled(false)
local dprandomise = (math.random(1,2))
Self.DepositItems({5899, 0}, {11443, 0}, {10272, 0}, {9640, 0}, {10279, 0}, {3030, 0}, {11444, 0}, {5902, 0}, {3279, 1}, {3556, 1})
wait(1500,1900)
if StaminaLogout and Self.Stamina() < 1080 then
Walker.Stop()
else
setWalkerEnabled(true)
end
elseif (labelName == "Supplies") then
setWalkerEnabled(false)
wait(900, 1200)
Self.SayToNpc({"Hi", "flasks", "yes", "yes", "yes", "Trade"}, 65)
wait(900, 1200)
buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(MPotID, (MPots-Self.ItemCount(MPotID)))
wait(900, 1200)
setWalkerEnabled(true)
elseif (labelName == "Backpacks") then
dofile("Forgee.lua")
delayWalker(7000)
resetBackpacks()
elseif (labelName == "Boat to Laguna") then
setWalkerEnabled(false)
wait(200, 300)
Self.ReachNpc("Captain Waverider", 2)
setWalkerEnabled(false)
Self.SayToNpc({"Hi", "Peg Leg", "Yes"}, 65)
wait (1000, 1400)
setWalkerEnabled(true)
elseif (labelName == "Boat to LB") then
setWalkerEnabled(false)
wait(200, 300)
Self.ReachNpc("Sebastian", 2)
setWalkerEnabled(false)
Self.SayToNpc({"Hi", "Go", "Yes"}, 65)
wait (1000, 1400)
setWalkerEnabled(true)
end
end
function buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(item, count)
count = tonumber(count) or 1
repeat
local amnt = math.min(count, 100)
if(Self.ShopBuyItem(item, amnt) == 0)then
return printf("ERROR: failed to buy item: %s", tostring(item))
end
wait(200,500)
count = (count - amnt)
until count <= 0
end
function NpcConv(...)
for _, str in ipairs(arg) do
wait((tostring(str):len() / 125) * 60000 * math.random(1.1, 1.8))
Self.SayToNpc(str)
end
end
Self.ReachNpc = function(name, tries)
local npc = Creature.GetByName(name)
if (npc:DistanceFromSelf() > 3) then
tries = tries or 15
repeat
local nposi = npc:Position()
Self.UseItemFromGround(nposi.x, nposi.y, nposi.z)
wait(1500)
tries = tries - 1
until (npc:DistanceFromSelf() <= 3) or (tries == 0)
end
end
Kod :
local ratio = 2.7 -- 100 mana potions = 270.00oz (2.7) || 100 strong mana potions = 290.00oz (2.9) || 100 great mana potions = 310.00oz (3.1)
local PotionID = Item.GetID("mana potion") --- Choose the mana potion you want HERE!
local PotionPrice = 50 --- 50gp for normal mana potion. 80gp for strong mana potion. 120gp for great mana potion.
local PotionName = "mana potion" ------- Change to suit the mana's you use
local spellToUse = "utana vid" ---------- Spell to waste mana with
local spelltoUseMana = 440 ---------- How much mana does your spell cost? DO NOT CHANGE THE STUFF BELOW!
while(true) do
if (Self.ItemCount(PotionName) > 0) then --using all of the mana potions
while (Self.ItemCount(PotionName) > 0) do
local mana = spelltoUseMana + math.random(50,150)
if (not Self.Cast(spellToUse, mana)) then
Self.UseItemWithMe(PotionID)
sleep(math.random(600,1400))
end
end
sleep(math.random(600,1400))
end
end
edit: jak uprościć ten skrypt do akcji w sklepie; bez wybierania pieniędzy z banku, chodzenia do sklepu itd. Tylko kupowanie manasów, czar i sprzedawanie vialków.
Zakładki