PDA

View Full Version : Used to Neobot, new to Xenobot



azzamcrazza
05-28-2013, 03:02 PM
Botted up to a level 140 ms and 280 ek on neobot and sold before neo crashed, thought I'd give tibia another go. Already bought prem etc, just on rook at the moment. I've figured out SOME of the bot like waypoints and targetting/ looting, but I'm wondering how to I trade my meat for gold??

Xeromex
05-28-2013, 03:03 PM
elseif (labelName == "sellFood") then
setWalkerEnabled(false)
Self.SayToNpc({"hi", "trade"}, 65)
wait(800, 1500)
Self.ShopSellAllItems(3577) -- This is the function for selling food.
wait(1500)
setWalkerEnabled(true)

Nakuu
05-28-2013, 03:06 PM
Also if you are not unfamiliar with .lua scripting you can check "XenoLuaLib.lua" file that is located in "\XenoBot\Data" for all (or most) the functions bot have and can be used to create scripts :)

azzamcrazza
05-29-2013, 12:24 AM
Hi, thank you for the quick reply, but I am still confused as to how I enter lua scripts. In the walker, I see an option for one line of script and for label. Where do I click to enter in lua code?

popit
05-30-2013, 11:35 PM
Hi, thank you for the quick reply, but I am still confused as to how I enter lua scripts. In the walker, I see an option for one line of script and for label. Where do I click to enter in lua code?

are you talking about how to make a LUA? if so open notepad, - paste the information like the lua code xeromex is showing you and save it as "something.lua" in documents - xenobot - scripts
or if youre trying to add a lua thats already made..
when you download the lua save it to documents - xenobot - scripts
then when you run a certain xsbt right click in tibia - click "scripter" from the menu that comes up - then find the lua you want out of the list that shows , left click it so it highlights - then click execute script under it - then click ok :) you can save the settings with luas so dont need to do it always