PDA

View Full Version : anyone know what is wrong here??



slash234
12-01-2012, 06:07 PM
dofile('Forgee.lua')


------------------------------------------------------------------------------------------
------- Pirates Yalahar By Tibtrak!-------------------------------------------------------
------------------------------------------------------------------------------------------
------- Customize your script ------------------------------------------------------------
------------------------------------------------------------------------------------------


---BP Setup---
GoldBp = "Brocade Backpack" -- Put the name of your backpack for gold
GoldBpID = 8860 -- Put the ID of your backpack for gold
LootBp = "Expedition Backpack" -- Put the name of your backpack for loot
LootBpID = 10324 -- Put the ID of your backpack for


---Potions & Cap Setup---
CapToRefill = 100 -- below this amount bot goes to refill
PotsToRefill = 60 -- below this amount bot goes to refill
ManasToBuy = 300 -- Amount of mana potions to buy
pots = 268 -- ID of manapotion (should not be changed)
HealthPotsID = 236 -- ID of healthpotion you want to buy
HealthPotsPrice = 100 -- Price of healthpotion
HealthPotsToBuy = 25 -- Amount of healthpotions to buy


------------------------------------------------------------------------------------------
------- Do Not Touch Below! :) -----------------------------------------------------------
------------------------------------------------------------------------------------------


registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "CheckStatus") then
setBotEnabled(false)
if ((Self.ItemCount(pots) < PotsToRefill)) or (Self.Cap() < CapToRefill) then
setBotEnabled(true)
gotoLabel("ToTown")
else
setBotEnabled(true)
gotoLabel("Hunt")
end
elseif (labelName == "DepositGold") then
setBotEnabled(false)
delayWalker(10000)
Self.SayToNpc('hi')
wait(1000,2000)
Self.SayToNpc('deposit all')
wait(1000,2000)
Self.SayToNpc('yes')
wait(1000,2000)
local GoldToManas = ((ManasToBuy-Self.ItemCount(268))*50)
local GoldToHealth = ((HealthPotsToBuy-Self.ItemCount(HealthPotsID))*HealthPotsPrice)
local GoldToPots = (GoldToManas+GoldToHealth+500)
Self.SayToNpc("withdraw " .. GoldToPots)
wait(1000,2000)
Self.SayToNpc('yes')
setBotEnabled(true)
elseif (labelName == "ReopenBps") then
setBotEnabled(false)
closeBackpacks()
wait(1000,2000)
openBackpacks(GoldBpID, LootBpID)
wait(1000,2000)
setBotEnabled(true)
elseif (labelName == "DepositItems") then
setBotEnabled(false)
Self.DepositItems({5461, 0}, {6096, 0}, {5918, 0}, {6097, 0}, {6098, 0}, {6126, 0}, {6095, 0}, {10302, 0})
setBotEnabled(true)
elseif (labelName == "BuyPotions") then
setBotEnabled(false)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(1000,2000)
Self.ShopBuyItem(268,(ManasToBuy-Self.ItemCount(268)))
wait(1000,2000)
setBotEnabled(true)
elseif (labelName == "BuyHealthPotions") then
setBotEnabled(false)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(1000,2000)
Self.ShopBuyItem(HealthPotsID,(HealthPotsToBuy-Self.ItemCount(HealthPotsID)))
wait(1000,2000)
setBotEnabled(true)
elseif (labelName == "CheckHealthsShop") then
setBotEnabled(false)
if ((Self.ItemCount(HealthPotsID) < HealthPotsToBuy)) then
setBotEnabled(true)
gotoLabel("BuyHealthPotions")
else
setBotEnabled(true)
gotoLabel("GoOn")
end
elseif (labelName == "CheckManas") then
if (Self.ItemCount(pots) <= PotsToRefill) then
setWalkerEnabled(true)
gotoLabel("GoManas")
else
setWalkerEnabled(true)
gotoLabel("GoHunt")
end
end
end

kubax36
12-05-2012, 09:30 AM
have u Forgee's library??

Thewarrior232
12-05-2012, 11:37 AM
having the same problem...

slash234
12-05-2012, 08:53 PM
having the same problem...


have some manual Forgee's library or some link? , I'm new "xeno bot" as you place the library??

DarkstaR
12-05-2012, 08:55 PM
Same problem? What problem? All I see is a script.

slash234
12-05-2012, 09:04 PM
Same problem? What problem? All I see is a script.
The problem is as follows to start not speak English but I try to defend myself. The problem I have is that when I apply the files "lua" no runs and throws me the error then the chart does not deposit not buy the potions, just stand still for a minute, does operations "lua". When I give script, running script, throws me error, what I want to explain to me.
16:34 Welcome to XenoBot!
16:36 XenoScript Error:
Script: [Knight]Edron Dragon Lair.lua
Line #:
Chunk:
Error:
This is an error with user-input and should not be reported as a bug with XenoBot.

Thewarrior232
12-05-2012, 09:42 PM
Add the Forgee.lua in your scripts Folder then it worked for me xD

Abuse
12-05-2012, 11:04 PM
As a newer person to the forums I also had this problem :)


Nothing wrong with the script, you just need to keep your libraries updated bro :D

slash234
12-06-2012, 03:22 AM
[QUOTE=Abuse;103753]As a newer person to the forums I also had this problem :)


Nothing wrong with the script, you just need to keep your libraries updated bro .

I made it! thank you very much