View Full Version : Help Buying Potions
tivial01
05-01-2013, 12:49 PM
this is the script I am using
elseif (labelName == "BuyingPotion") then
Walker.Stop()
Walker.Delay(5000)
Self.Say("hello")
wait(3000,5000)
Self.Say("Flask", "yes")
wait(3000,5000)
Self.SayToNpc("trade")
wait(3000,5000)
Self.ShopBuyItem(MPotID, (MPots-Self.ItemCount(MPotID)))
wait(1000,3000)
Walker.Start()
end
end
and this is the error msg I get
07:47 XenoScript Error:
Script: Yalahar-HeroAndNecro?Mage?.lua
Line #: 1323
Chunk: C:\Program Files ?x86??XenoBot?Data?XenoLuaLib.lua
Error: attempt to perform arithmetic on local 'wpm' (a string value)
This is an error with user-input and should not be reported as a bug with XenoBot.
Nakuu
05-01-2013, 12:53 PM
Show us line #1323.
tivial01
05-01-2013, 12:55 PM
that's just it the whole script dosent have a line #1323
Nakuu
05-01-2013, 12:57 PM
Well, there is a problem with variable named 'wpm'. There is no such thing in the code you posted so can't really help
tivial01
05-01-2013, 01:00 PM
ok changed the script to this
elseif (labelName == "BuyingPotion") then
Walker.Stop()
Walker.Delay(5000)
Self.Say("hello")
wait(3000,5000)
Self.Say("Flask")
Wait(3000,5000)
Self.Say("yes")
Wait(3000,5000)--------------this is line 183
Self.SayToNpc("trade")
wait(3000,5000)
Self.ShopBuyItem(MPotID, (MPots-Self.ItemCount(MPotID)))
wait(1000,3000)
Walker.Start()
end
end
and now I get this
07:59 XenoScript Error:
Script: Yalahar-HeroAndNecro?Mage?.lua
Line #: 183
Chunk: ...ments?XenoBot?Scripts?Yalahar-HeroAndNecro?Mage?.lua
Error: attempt to call global 'Wait' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.
tivial01
05-01-2013, 01:03 PM
NVM I See why is saying that Ty for the help
dinmamma
05-01-2013, 01:04 PM
ok changed the script to this
elseif (labelName == "BuyingPotion") then
Walker.Stop()
Walker.Delay(5000)
Self.Say("hello")
wait(3000,5000)
Self.Say("Flask")
Wait(3000,5000)
Self.Say("yes")
Wait(3000,5000)--------------this is line 183
Self.SayToNpc("trade")
wait(3000,5000)
Self.ShopBuyItem(MPotID, (MPots-Self.ItemCount(MPotID)))
wait(1000,3000)
Walker.Start()
end
end
and now I get this
07:59 XenoScript Error:
Script: Yalahar-HeroAndNecro?Mage?.lua
Line #: 183
Chunk: ...ments?XenoBot?Scripts?Yalahar-HeroAndNecro?Mage?.lua
Error: attempt to call global 'Wait' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.
There you have an issue with lowercase and uppercase "w".
"Wait" = bad
"wait" = good
Edit: good you solved it :)
Nakuu
05-01-2013, 01:04 PM
replace 'Wait(3000, 5000)' with 'wait(3000,5000)'
in other words, make the word start with lowercase
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.