roffball
10-24-2012, 09:02 AM
else (labelName == "Robert") then
setBotEnabled(false)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(1000,2000)
Self.ShopSellItem("hive scythe", (Self.ItemCount(14089)))
Self.ShopSellItem("calopteryx cape", (Self.ItemCount(14086)))
Self.ShopSellItem("carapace shield", (Self.ItemCount(14088)))
Self.ShopSellItem("waspoid wing", (Self.ItemCount(14081)))
Self.ShopSellItem("kollos shell", (Self.ItemCount(14077)))
Self.ShopSellItem("waspoid claws", (Self.ItemCount(14080)))
Self.ShopSellItem("crawler head platings", (Self.ItemCount(14079)))
Self.ShopSellItem("spitter noses", (Self.ItemCount(14078)))
Self.ShopSellItem("compound eyes", (Self.ItemCount(14083)))
setBotEnabled(true)
end
end
roffball
10-24-2012, 09:59 AM
help me more :)
--]]--
--Settings---------------------------------------
PotID = 268 --- mana potion ID
MinPots = 500 ---- if less then script will exit spawn
PotCost = 50 ---- cost of mana potion
Pots = 1300 ----- amount of mana potions to refill
hPotID = 7643 --- health potion ID
hPotCost = 300 ---- cost of health potion
hPots = 300 ----- amount to refill
MinCap = 180 ---- if less then script will exit spawn
--END OF SETTINGS--------------------------------
--- DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU'RE DOING ---
dofile("Forgee.lua")
function SellVials()
i need some so i can buy on sds and so
roffball
10-24-2012, 10:34 AM
sry for it thanks alot for you helped me first time :P
roffball
10-24-2012, 01:01 PM
--[[--
NAME: HIDDEN BRIMSTONE BUGS FOR KNIGHTS
AUTHOR: LUKE FISHER
CREATE DATE: 28.05.2012
CURRENT VERSION: 1.1
UPDATE DATE: 05.06.2012
--]]--
--Settings---------------------------------------
PotID = 268 --- mana potion ID
MinPots = 500 ---- if less then script will exit spawn
PotCost = 50 ---- cost of mana potion
Pots = 1300 ----- amount of mana potions to refill
hPotID = 7643 --- health potion ID
hPotCost = 300 ---- cost of health potion
hPots = 300 ----- amount to refill
MinCap = 180 ---- if less then script will exit spawn
--END OF SETTINGS--------------------------------
--- DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU'RE DOING ---
dofile("Forgee.lua")
function SellVials()
Self.SayToNpc("hi")
sleep(math.random(2000, 3000))
Self.SayToNpc("flask")
sleep(math.random(2000, 3000))
if ((Self.ItemCount(283)+Self.ItemCount(284)+Self.Ite mCount(285)) > 0) then
repeat
Self.SayToNpc("yes")
sleep(math.random(2000, 3000))
until ((Self.ItemCount(283)+Self.ItemCount(284)+Self.Ite mCount(285)) == 0)
end
sleep(math.random(2000, 3000))
Self.SayToNpc("bye")
end
Self.ReachNpc = function(name, tries)
local npc = Creature.GetByName(name)
if (npc:DistanceFromSelf() > 3) then
tries = tries or 15
repeat
local npos = npc:Position()
Self.UseItemFromGround(npos.x, npos.y, npos.z)
wait(1500,2000)
tries = tries - 1
until (npc:DistanceFromSelf() <= 3) or (tries == 0)
end
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
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "check") then
delayWalker(1000)
setWalkerEnabled(false)
if (Self.ItemCount(PotID) <= MinPots) or (Self.Cap() < MinCap) then
setWalkerEnabled(true)
gotoLabel("Refill")
else
setWalkerEnabled(true)
gotoLabel("KeepHunting")
end
sleep(math.random(100,5000))
elseif (labelName == "Target&Loot") then
setLooterEnabled(true)
setTargetingEnabled(true)
elseif (labelName == "targetoff") then
setTargetingEnabled(false)
setLooterEnabled(false)
elseif (labelName == "targeton") then
setLooterEnabled(true)
setTargetingEnabled(true)
elseif (labelName == "deposit gold") then
setWalkerEnabled(false)
NpcConv("hi","deposit all","yes","balance")
wait(15000,19000)
setWalkerEnabled(true)
elseif (labelName == "BankCheck") and (Self.ItemCount(3031) > 0) then
gotoLabel("Shopping Time")
elseif (labelName == "Deposit Items") then
setWalkerEnabled(false)
local dprandomise = (math.random(1,2))
if ((dprandomise) ~=1) then
Self.DepositItems(3032, 3035, 14078, 3030, {14077, 2}, {9057, 1}, {282, 2}, {281, 3}, {14078, 3})
wait(1500,1900)
setWalkerEnabled(true)
else
Self.DepositItems({9058, 3}, {14078, 5}, {9640, 5}, {10315, 6}, {10305, 7}, 14083, 3032, 14079, 14080)
wait(1500,1900)
setWalkerEnabled(true)
end
elseif (labelName == "poxcheck") then
setWalkerEnabled(false)
if (Self.ItemCount(3498) > 0) then
gotoLabel("dp2")
setWalkerEnabled(true)
else
gotoLabel("ToSpawn")
setWalkerEnabled(true)
end
elseif (labelName == "poxcheck2") then
setWalkerEnabled(false)
if (Self.ItemCount(3498) > 0) then
gotoLabel("dp1")
setWalkerEnabled(true)
else
gotoLabel("ToSpawn")
setWalkerEnabled(true)
end
elseif (labelName == "ResetBP") then
setWalkerEnabled(false)
resetBackpacks()
wait(1500,1900)
setWalkerEnabled(true)
elseif (labelName == "Withdraw") then
setWalkerEnabled(false)
Self.SayToNpc("hi")
sleep(math.random(2400, 3000))
local moneytoget1 = (Pots-Self.ItemCount(PotID))*PotCost
local moneytoget2 = (hPots-Self.ItemCount(hPotID))*hPotCost
local softcost = Self.ItemCount(6530)*10500
local moneytoget = moneytoget1+softcost+moneytoget2
local moneytogetfin = (math.ceil((moneytoget/1000)))*1000
sleep(math.random(5000, 7000))
repeat
Self.SayToNpc("withdraw " .. moneytogetfin)
sleep(math.random(2400, 3000))
Self.SayToNpc("Yes")
sleep(math.random(2400, 3000))
until ((Self.ItemCount(3031) + (Self.ItemCount(3035) * 100) + (Self.ItemCount(3043) * 10000)) >= moneytogetfin)
Self.SayToNpc("bye")
sleep(math.random(2400, 3000))
setWalkerEnabled(true)
elseif (labelName == "buypots") then
setWalkerEnabled(false)
Self.SayToNpc("hi")
sleep(math.random(2000, 3000))
Self.SayToNpc("trade")
sleep(math.random(2400, 3000))
Self.BuyItemsUpTo(PotID, Pots)
sleep(math.random(9400, 12000))
Self.BuyItemsUpTo(hPotID, hPots)
sleep(math.random(3400, 4800))
Self.SayToNpc("bye")
setWalkerEnabled(true)
elseif (labelName == "flask") then
setWalkerEnabled(false)
SellVials()
setWalkerEnabled(true)
elseif (labelName == "potcheck") and (Self.ItemCount(PotID) < (Pots-20)) then
gotoLabel("Shopping Time")
elseif (labelName == "DoorEast") then
setWalkerEnabled(false)
wait(500)
Self.OpenDoor(Self.Position().x + 1, Self.Position().y, Self.Position().z)
setWalkerEnabled(true)
elseif (labelName == "DoorWest") then
setWalkerEnabled(false)
wait(500)
Self.OpenDoor(Self.Position().x - 1, Self.Position().y, Self.Position().z)
setWalkerEnabled(true)
elseif (labelName == "DoorSouth") then
setWalkerEnabled(false)
wait(500)
Self.OpenDoor(Self.Position().x, Self.Position().y + 1, Self.Position().z)
setWalkerEnabled(true)
elseif (labelName == "DoorNorth") then
setWalkerEnabled(false)
wait(500)
Self.OpenDoor(Self.Position().x, Self.Position().y - 1, Self.Position().z)
setWalkerEnabled(true)
elseif (labelName == "ExaniUP") then
setWalkerEnabled(false)
wait(500)
Self.Say("exani hur up")
sleep(math.random(700, 1400))
setWalkerEnabled(true)
elseif (labelName == "ExaniDOWN") then
setWalkerEnabled(false)
wait(500)
Self.Say("exani hur down")
sleep(math.random(700, 1400))
setWalkerEnabled(true)
elseif (labelName == "LeverEast") then
setWalkerEnabled(false)
wait(500)
Self.UseLever(Self.Position().x + 1, Self.Position().y, Self.Position().z, 2772)
setWalkerEnabled(true)
elseif (labelName == "Robert") then
setBotEnabled(false)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(1000,2000)
local ITEMS_TO_SELL = {"hive scythe", "calopteryx cape", "carapace shield", "waspoid wing", "kollos shell", "waspoid claws", "crawler head platings", "spitter noses", "compound eyes"}
for _, ITEM in ipairs(ITEMS_TO_SELL) do
Self.ShopSellAllItems(ITEM)
wait(300, 500)
end
setBotEnabled(true)
end
there im have tray to do it to my ek but its fail. im sux as hell on that
roffball
10-25-2012, 01:49 PM
15:47 XenoScript Error:
Script: ed hive.lua
Line #: 140
Chunk: C:\Users\Thom\Documents\XenoBot\Scripts\ed hive.lua
Error: '<eof>' expected near 'else'
This is an error with user-input and should not be reported as a bug with XenoBot.
thanks alot for it but if on load its coming up:) can you do so i can download it?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.