View Full Version : [Tutorial] Beginner Tutorial
Induce
07-18-2013, 08:56 AM
Under construction, please make suggestions. Ignore the poor formatting for now :)
How to use XenoBot:
-Before installation download all minimap files, xenobot requires full map to work.
Get them here: xenomap files (http://www.xenomap.com/)
-After installation download the scripts you want to use. Some scripts only require a XBST file, others need the LUA as well.
-Place the XBST file in the Xenobot Settings Folder
-Place the LUA files in the Xenobot Scripts Folder
-Open Tibia (As Administrator)
-Open Injector.exe (Xenobot (As Administrator)) <-- If doesn't work, might need to run it not as administrator.
-Log in to your Character
About xbst and lua files:
See here: How to open files (http://forums.xenobot.net/showthread.php?3362-How-to-open-a-.XBST-or-.LUA-file.&highlight=files)
Reminder, don't forget to run the LUA script or the file may not work as intended. It adds a lot of functionality.
Multiclient:
Available here: Xeno MC (http://forums.xenobot.net/showthread.php?230-XenoMC&highlight=files)
Beginner Advice:
You can run xbst scripts from the login screen under settings or after you enter the game.
Once logged in you can edit the settings and create new profiles.
After creating a new profile, it doesn't auto save your settings. You have to hit save to do so.
This way you can create settings for each of your characters and for different hunting spots.
About looting:
A lot of people don't realize at first that you can change looting to loot after all monsters are dead by disabling the looter. Right click in the Looter tab and select "loot bodies" to change it.
Induce
07-18-2013, 08:57 AM
Scripts & Advice
From XtrmJosh:
Most scripts today don't require secondary Lua files, but some still do. The majority which do won't work or will be somewhat wasteful, so my advice there is to use newer scripts, check the date on the post you are downloading from, and read the thread they are released in for any general instructions.
Scripts:
Pause targeting when player on screen (http://forums.xenobot.net/showthread.php?3625-Anti-KS)
Scripts by Petit Ours (http://forums.xenobot.net/showthread.php?5171-Simple-and-useful-LUA&p=54311&viewfull=1#post54311)
Scripts by Avani (http://forums.xenobot.net/showthread.php?11556-Xenobot-Community-Scripts&p=139024&viewfull=1#post139024)
Screenshot taker by Avani (http://forums.xenobot.net/showthread.php?10790-Auto-Screenshot-Level-Death-Stamina-Made-by-Avani&highlight=stamina)
Rookgaard (http://forums.xenobot.net/showthread.php?514-InfernalScripts-Free-XenoBot-Scripts&p=3231&viewfull=1#post3231)
Forgee Scripts:
These scripts first you require to download the Forgee library LUA here: Forgee library (http://forums.xenobot.net/showthread.php?2392-Lua-functions-by-Forgee&highlight=forgee.lua)
Follow the instructions and put the file in your 'Scripts' folder with the other LUA's. Don't execute it in the bot.
Now you can use a Forgee related script such as....
X logout when player on screen:
dofile("Forgee.lua")
while true do
if (playersAround(7) > 0) then
os.exit()
end
wait(400, 600)
end
Scripts for xbst files:
As XtrmJosh said, new scripts include LUA functions in the xbst file. Here are functions you can add to the xbst files.
Logout on x stamina (source (http://forums.xenobot.net/showthread.php?15517-Any-way-to-logout&p=195753&viewfull=1#post195753)):
--Stamina Settings
logoutStamina = true -- Do you want to logout when you have low stamina?
staminaHours = 16 -- The amount of stamina you wish to be under to logout
elseif (labelName == "CheckStamina") then
if logoutStamina == true then
if Self.Stamina() <= (staminaHours*60) then
setWalkerEnabled(false)
end
end
Induce
07-18-2013, 01:42 PM
Under Construction
Waypoint Tutorial
These scripts go into your waypoint list. Simply hit add script then type in the info between the quotes, including the 'end'. Leave out the beginning part that says: <item text="... and the last part: " tag="254"/>... Only include these when editing in the file itself.
Using shovel/machete:
Shovel script example:
<item text="Self.UseItemWithGround(3457, 32689, 31581, 7)" tag="254"/>
Machete script example:
<item text="Self.CutGrass(32684, 31585, 7)" tag="254"/>
Waits and randomization:
You can add waits in at the beginning of a script line in the waypoints which would look like this:
<item text="wait (800) if not (Map.IsTileWalkable(32814, 31595, 6)) then Container.GetFirst():UseItemWithGround(7, 32814, 31595, 6) end" tag="254"/>
In the above script it waits .8 seconds to check if a tile is walkable, if not it uses a key (in spot 7 of backpack) on that coordinate.
You can put in plain waits into the waypoint as such:
wait(2000)
This code waits 2 seconds before moving on. To randomize it simply include the two numbers you want it to pick between such as:
wait(2000,8000)
The above script will pick between 2-8 seconds before moving on.
Using doors:
Script example:
<item text="if not (Map.IsTileWalkable(32809, 31593, 6)) then Self.OpenDoor(32809, 31593, 6) end" tag="254"/>
This script checks if the door is open, if not it opens it. To close a door simply use the command: Self.CloseDoor(x, y, z)
Using locked doors:
Script example:
<item text="if not (Map.IsTileWalkable(32814, 31595, 6)) then Container.GetFirst():UseItemWithGround(7, 32814, 31595, 6) end" tag="254"/>
It first checks if the area is passable, if not then we assume the door is closed and uses the item in the specified slot of the main backpack.
The 7 in "UseItemWithGround(7, 32814, 31595, 6)" stands for the 7th slot and is where the key needs to be.
Note that slots start with 0 and not 1, so the 7th slot is actually the 8th spot in the main backpack.
Induce
07-18-2013, 03:45 PM
Reserved
Induce
07-27-2013, 03:59 AM
300+ views...
Let me know if this has been helpful or any suggestions please
Joshwa534
08-01-2013, 03:49 AM
300+ views...
Let me know if this has been helpful or any suggestions please
I'm not sure if you're able to download Tibia map files from www.xenomap.com but I've always used www.tibiamaps.org instead. =]
hangabanga
08-02-2013, 03:16 AM
Im not really sure if ive been away so long from XB that lua codes changed to numbers.. x.x
killjoy
08-31-2013, 01:24 PM
Im not really sure if ive been away so long from XB that lua codes changed to numbers.. x.x
the numbers in his post are "either id numbers for a "key" or tile numbers for coordinates"
hangabanga
09-04-2013, 11:11 AM
the numbers in his post are "either id numbers for a "key" or tile numbers for coordinates"
Nope Its an Encryption of His Lua Scripts xD
hagel
11-03-2013, 09:59 AM
I could use some help.... I've downloaded the bot, paid for it and all. Logs in, load the scripts from the script folder. Hits execute and nothing happends. It just says the name of the scripts and its creators. but it dosnt loot anything, atk or walk around. So I'm wondering what I'm doing wrong? I've been trying to change some settings but nothing really helps..
addeek
02-10-2014, 08:14 PM
Hi there! Is it possible to make a thing in a checker that will make it go to dp and logout @ a specific irl time or time played etc? Thx!
baltrax
07-09-2014, 01:20 PM
I don't understand the how to do the Forgee.lua (library), i pasted into my scripts the forgee.lua and dosen't work... How to configure this forgee.lua? because i dont understand what dofile means in this explanation...
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.