Nappy
01-30-2013, 12:39 AM
So I got this error message when the bot got to the Label of bpOpen...
15:33 XenoScript Error:
Script: [Yalahar] Minotaurs - Knight -.lua
Line #: 90
Chunk: ...s\XenoBot\Scripts\[Yalahar] Minotaurs - Knight -.lua
Error: attempt to index a nil value
This is an error with user-input and should not be reported as a bug with XenoBot.
Here are lines 68-93(68-the end)
elseif (Label == "buyPotions") then
Walker.Stop()
if (BuyPots and Self.ItemCount(PotionID) < MaxPotion) then
Self.SayToNpc({"hi", "vials", "yes", "trade"}, 65)
wait(2000)
if (Self.ItemCount(PotionID) < MaxPotion) then
Self.ShopBuyItemsUpTo(PotionID, MaxPotion)
end
wait(200, 500)
end
Walker.Start()
elseif (Label == "checkPots") then
if (BuyPots and Self.ItemCount(PotionID) < MaxPotion) then
print("Buying Potions")
else
print("Going Spawn")
gotoLabel("goSpawn")
end
elseif (Label == "bpOpen") then
Walker.Stop()
Self.CloseContainers()
wait(900,1000)
Self.OpenMainBackpack(true):OpenChildren(GoldBP):O penChildren(RareBP):OpenChildren(StackableBP)
Walker.Start()
end
end
Im pretty sure that isnt how I do the bp thing so it opens BPs, but IDK... I also didnt have those bps in my main bp may that be the problem?
15:33 XenoScript Error:
Script: [Yalahar] Minotaurs - Knight -.lua
Line #: 90
Chunk: ...s\XenoBot\Scripts\[Yalahar] Minotaurs - Knight -.lua
Error: attempt to index a nil value
This is an error with user-input and should not be reported as a bug with XenoBot.
Here are lines 68-93(68-the end)
elseif (Label == "buyPotions") then
Walker.Stop()
if (BuyPots and Self.ItemCount(PotionID) < MaxPotion) then
Self.SayToNpc({"hi", "vials", "yes", "trade"}, 65)
wait(2000)
if (Self.ItemCount(PotionID) < MaxPotion) then
Self.ShopBuyItemsUpTo(PotionID, MaxPotion)
end
wait(200, 500)
end
Walker.Start()
elseif (Label == "checkPots") then
if (BuyPots and Self.ItemCount(PotionID) < MaxPotion) then
print("Buying Potions")
else
print("Going Spawn")
gotoLabel("goSpawn")
end
elseif (Label == "bpOpen") then
Walker.Stop()
Self.CloseContainers()
wait(900,1000)
Self.OpenMainBackpack(true):OpenChildren(GoldBP):O penChildren(RareBP):OpenChildren(StackableBP)
Walker.Start()
end
end
Im pretty sure that isnt how I do the bp thing so it opens BPs, but IDK... I also didnt have those bps in my main bp may that be the problem?