View Full Version : [Tutorial] How to use the Scripter
Flappy Joe
01-14-2012, 07:13 PM
Firstly, create your script.
http://2.imgland.net/EaTzq.png
Next, save your script in 'C:\Users\PC-NAME\Documents\XenoBot\Scripts' as .lua Note that 'Save as type:' is changed to 'All Files'
http://3.imgland.net/CcGTA.png
Then, right click in Tibia and select 'Scripter'
http://2.imgland.net/0WVls.png
Now you should see the list of .lua files you have in the 'Scripts' folder. Select the appropriate script and press 'Execute Script'
http://2.imgland.net/otl0r.png
Your script should now be executed, you will notice it moves to the 'Running Scripts' list.
http://2.imgland.net/TkWcp.png
I hope this helped, enjoy.
Nice work. So many people have been asking how to run scripts. This should help a lot.
do i need to restart the whole bot? because it dosnt work for me.
did you put the .lua file into your scripter file in xenobot folder?
bohsone
01-15-2012, 06:51 AM
uhmm...the past where it say "Say as type" I only have .txt & all files...no .lua....how can i go about this?
Flappy Joe
01-15-2012, 06:52 AM
Where it says 'File Name:' just type Depositer.lua and it will save as an LUA file.
bohsone
01-15-2012, 06:56 AM
Where it says 'File Name:' just type Depositer.lua and it will save as an LUA file.
I've done that too, but it doesn't work. I tried adding (.lua) at the end and change the file name to "Depositer.lua".
Flappy Joe
01-15-2012, 06:58 AM
Show me a screenshot of where you are saving the file and how you are saving it.
bohsone
01-15-2012, 07:00 AM
Show me a screenshot of where you are saving the file and how you are saving it.
Im saving it under document\xenobot\scripts just like above... is it because I need to download some LUA program??
Flappy Joe
01-15-2012, 07:03 AM
No, you don't need any program.
Like I said, just type Depositer.lua, it doesn't matter if 'save as type:' is .txt, it will still save as an LUA.
bohsone
01-15-2012, 07:04 AM
352 pic
Flappy Joe
01-15-2012, 07:05 AM
You have to type .lua after test, so where it says File Name it should be test.lua
bohsone
01-15-2012, 07:07 AM
You have to type .lua after test, so where it says File Name it should be test.lua
Yes, I've already done that. If you look at the picture in the back, you will see that I have two saved: test.lua and Depositer.lua
Flappy Joe
01-15-2012, 07:07 AM
Yes, I've already done that. If you look at the picture in the back, you will see that I have two saved: test.lua and Depositer.lua
Yes but that seems to me like you right clicked it and clicked rename, then typed in .lua
bohsone
01-15-2012, 07:10 AM
Yes but that seems to me like you right clicked it and clicked rename, then typed in .lua
yeah, sorry. But it was save with .lua at the end of the file name. =/
Flappy Joe
01-15-2012, 07:11 AM
Do you have teamviewer?
bohsone
01-15-2012, 07:12 AM
Do you have teamviewer?
no i dont
bohsone
01-15-2012, 07:18 AM
I think I will need to download some kind of LUA program...
Flappy Joe
01-15-2012, 07:18 AM
I think I will need to download some kind of LUA program...
I told you already, you don't need any LUA program.
Check your PM
Syntax
01-15-2012, 07:27 AM
make sure you select "save as all files" when saving, or with some os it will save as a text file with the name .lua in it.
Aydin
01-15-2012, 12:36 PM
Good job on this tutorial mate :P
RoxoR
01-17-2012, 07:55 AM
I frikin love thiss :D LIke supper likee
eachziN
01-17-2012, 09:59 AM
With refiller and depositer soon xeno will be big :P and some actions for potion life percentage, lock spots and all
Flappy Joe
01-18-2012, 12:26 PM
With refiller and depositer soon xeno will be big :P and some actions for potion life percentage, lock spots and all
Was this post for me? I don't quite know what you're trying to tell me ;r
Hawkeye
01-18-2012, 01:01 PM
Good work Floppy. It's very useful.
Sonny
01-22-2012, 10:57 PM
done. and i still have problem.
i see on my script list in client my script but when i try to execute it i see: 23:56 [XenoScript] Rook Sewer Rats lvl 1.lua: unexpected symbol near '<'
what i should to do?
Flappy Joe
01-22-2012, 11:54 PM
That's a problem with the LUA script, try another one.
Hendy
01-23-2012, 12:46 AM
Or edit it and try fix it yourself.
Krippzor
01-23-2012, 08:46 PM
This is not working for me , can someone help me? would be greatly appriciated
Gatsu
01-23-2012, 11:28 PM
bohsone
Do you show file extensions for common files? Turn it on in windows and you should see the files as script.lua.txt and then you can rename it to script.lua
Use google if u dont know how to show all file extensions :D
Tonttu
02-05-2012, 10:26 AM
This is what happens to me.
http://i1202.photobucket.com/albums/bb371/tonttu1/d.png
Flappy Joe
02-05-2012, 03:51 PM
Tonttu
delaywalker is not a recognise function, needs to be delayWalker
Capitals matter, I think ;o
hopper
02-06-2012, 03:30 AM
[XenoScript] DepositGold.lua: attempt to call global 'delaywalker' (a nil value)
Flappy Joe
02-06-2012, 04:08 PM
hopper
Read above?
Trunk
02-08-2012, 09:26 AM
I am also having a problem with the scripts, I am using the one from here:http://forums.xenobot.net/showthread.php?1309-Need-some-help-with-a-Cavebot-script!&p=12630&viewfull=1#post12630
as I though the problem is in my code, but I am having the same issue with any lua file I am trying to execute:
[XenoScript] label manager.lua: '=' expected near 'registerEventListener'
Any ideas?
Cheers
rikardo
02-13-2012, 01:45 AM
i can't load .lua file )':
why ?
look the ss, what's wrong ?
682
Aluccard
02-13-2012, 01:53 AM
rikardo,
put the scritp at Documents>Xenobot>Script... i saw it at forum :) (BR: Meus Documentos > XenoBOT)
Cya,
Aluccard.
rikardo
02-13-2012, 12:24 PM
ohh sh*t
I'm too stupid
thank you dude
Nep12
02-14-2012, 02:32 AM
i dont understand when i first downloaded xeno bot there was no folder inside that said Scrpts so i made my own and put the script just as you told me to but when i click on tibia scripter nothing shows up.
SamDaMan
02-14-2012, 03:11 AM
You should edit your post recommending Notepad++ (http://notepad-plus-plus.org/).
xXiSlaughterXx
02-18-2012, 09:14 PM
having some problems, i pmed you.
Ryangiggs
02-21-2012, 03:24 AM
Im using windows xp, so it doesnt work at all for me:( any1 got suggestion?
Leonard
02-21-2012, 09:40 PM
Using XP aswell.. Can't find/there is no folder called "scripts".
Spectrus
02-22-2012, 12:01 AM
There are two Xenobot folders. One in Program Files and one in My Documents. You want the one in My Documents.
Leonard
02-22-2012, 09:55 AM
Yeah, I understood that. But there are no such folder in the Xenobot-folder at My Documents. There's only a file called Config.
Spectrus
02-22-2012, 10:03 AM
Create a folder called Scripts then. See if it works.
Ryangiggs
02-23-2012, 01:09 AM
I have one that is called scripts, i have stuff in there named "NAME.lua" < exp. doesnt show up on xenobot/tibia..
kratos04
02-27-2012, 03:51 AM
I have a problem, in mine it doesnt say scripter how do I do it, I am running windows 7. Is it only for tibia clients 9.41+? 837
Leonard
03-10-2012, 10:49 AM
I have solved my problem. I just reinstalled the program and now it works perfectly. :)
Shadow Wolf
03-25-2012, 04:58 AM
Awsome thanks man. I've been looking in the wrong file location this whole time. <facepalm>
Much appriciated Floppy Jimmy.
~Shadow Wolf
I have an issue but idk what is wrong, Everything went fine but when i execute the script (a goblin stone/serpent sword one) it laggs and goes at 2 frames per second with intense lag, but when i kill the script it all goes back to normal. any ideas?
Diamond.
03-28-2012, 06:17 AM
thanks, was definitely looking for something like this, cheers! :D
poweano
03-31-2012, 11:27 AM
In the bottom the save screen will ask for a coding u f you set that to unicode it will make it an .lua file
Babycakes
04-01-2012, 09:30 PM
how do i load a cavebot i downloaded nothin comes up in script but its in my script folder and its a made up script.. should just load in the small box then be able to open but nothin comes up
silis
04-01-2012, 09:41 PM
how do i load a cavebot i downloaded nothin comes up in script but its in my script folder and its a made up script.. should just load in the small box then be able to open but nothin comes up
This is for the scripter, (.lua files) for other scripts (.xbst) you just need to double click on them and a character selection box will appear, just press load and thats it
Babycakes
04-03-2012, 12:18 PM
When I downloaded a dara drags script on forum its ends with .bxmpt or something... does it need to be a lua ??? wtf I JUST WANT TO DOWNLOAD > INJECT AND LOAD BUT I AFTER I PRESS AUTO LOAD IN THE SMALL BOX FOR MY CLIENT IT DISSAPEARED AND NOTHIN SHOWS UP IN SCRIPT WTF HELP??
hotdoug
04-17-2012, 07:53 PM
21:48 [XenoScript] vial_dropper.lua: No such file or directory
Found the scripts in "scripter" but cant load them
fenyx99
04-30-2012, 03:50 PM
hello :D
hey man, after i save the script, when i enter in my character and press refresh list in Scripter my script does not appear.
you can see that i did everything correct in the image..
1501
please help me, i'm new on xenobot
Fryar
06-03-2012, 11:27 PM
When I try to execute my script it says "No such file or directory", BUT I know it's in the xenobot/scripts folder and the file is .lua and it should work, what could possibly be wrong?
Elementz
06-03-2012, 11:32 PM
maybe its NAMED .lua but is acctually like
NAMEOFSCRIPT.LUA.txt
rikardo,
put the scritp at Documents>Xenobot>Script... i saw it at forum :) (BR: Meus Documentos > XenoBOT)
Cya,
Aluccard.
I did the same thing as him, but it still doesn't show up in the game client "Execute script". It's just a blank box.
sirali sark
06-06-2012, 04:06 PM
I did the same thing as him, but it still doesn't show up in the game client "Execute script". It's just a blank box.
I do it, and now work. Thanks.
Buker
06-10-2012, 08:30 PM
i have no such file or directory ;[ HELP
Drone
06-17-2012, 04:07 PM
I'm trying to learn how to make scripts and I've seen things like this before "sleep(math.random(700, 1200))", so what does it mean ?
Drone
06-17-2012, 06:35 PM
can somebody help me by saying what is wrong here ? thx
function cast(utevo lux, 40)
if(Self.Mana() >= 40)then
Self.Say(utevo lux)
wait(300, 800)
end
end
Spectrus
06-17-2012, 08:15 PM
Drone, just use Self.Cast("utevo lux", 40).
sleep(math.random(700, 1200)) tells the bot to wait a random time between .7 and 1.2 seconds. You can just use wait(700, 1200) though.
RoxoR
06-18-2012, 05:09 AM
22:04 [XenoScript] DepositGold.lua: attempt to call global 'delaywalker' (a nil value) This appear in my screen and it doesnt get in the running scripts i mean it appears in found scripts but i returns when i put execute scripts , what am i doing wrong please
Forgee
06-19-2012, 08:35 AM
You just have to change delaywalker to delayWalker.
torrepizza
06-21-2012, 09:57 PM
how do i specify the right moment to execute the script??? [like an specific wp or within a specific condition-(like mana or life ammount)]
Flappy Joe
06-21-2012, 10:05 PM
how do i specify the right moment to execute the script??? [like an specific wp or within a specific condition-(like mana or life ammount)]
if (labelName == "Deposit") then
torrepizza
06-21-2012, 10:12 PM
are there scripts to change soft boots? can i use neobot softs changer script (just by writing on notepad and converting to .lua)
torrepizza
06-23-2012, 07:00 PM
bump on my question ^
Secret
07-29-2012, 07:49 AM
I just have one question: When you make a depositer script (like first post in this thread) how do I know when its gonna be used?
I need to make wpts for it to go back and deposit but how do I know when the .lua script is gonna be used?
Niyar
07-29-2012, 07:57 AM
I just have one question: When you make a depositer script (like first post in this thread) how do I know when its gonna be used?
I need to make wpts for it to go back and deposit but how do I know when the .lua script is gonna be used?
You need to make a label called 'depositer' then, and when it comes to the point depositer and it meets the requirements, it'll go deposit, but if u still got cap or whatever u add into ur lua, it continues hunting.
Secret
07-29-2012, 08:43 AM
You need to make a label called 'depositer' then, and when it comes to the point depositer and it meets the requirements, it'll go deposit, but if u still got cap or whatever u add into ur lua, it continues hunting.
so when I make a label called "depositer" the .lua file needs to have the same name right? Like depositer.lua (+ executed)
or am I wrong?
Niyar
07-29-2012, 09:54 AM
so when I make a label called "depositer" the .lua file needs to have the same name right? Like depositer.lua (+ executed)
or am I wrong?
I'm not good at it either haha, but if you just download some scripts+luas from other people and check them out it's pretty easy then.
mrok8
07-29-2012, 07:04 PM
Hey guys, my xenobot can't find lua scripts, I have everything good, lua files in Scripts catalog Xenobot\scripts\*.lua and still it doesn't work, after I installed my bot, there wasn't this catalog "scripts" I have made it manual, maybe this is a reason why it doesn't work.
Forgee
07-29-2012, 07:32 PM
Make sure you're in the right directory;
User Name\My Documents\XenoBot\
not
Program Files\XenoBot\
Secret
07-30-2012, 12:19 PM
so when I make a label called "depositer" the .lua file needs to have the same name right? Like depositer.lua (+ executed)
or am I wrong?
ANYONE?
When I double click the .xbst I get this message saying Unable to load XenoBot settings in the selected client. Any help here would be appreciated.
Protegy
08-26-2012, 04:35 PM
Am i supposed to make a folder in Xenobot called "Scripts"? Because my xenobot doesn't have that folder. I made the folder "Scripts" and put my lua files in it, but the bot doesn't pick them up i click on "scripter" and "refresh list" and nothing seems to happen.
Edit: Nevermind i got it working.
macmode
09-20-2012, 01:00 PM
Am i supposed to make a folder in Xenobot called "Scripts"? Because my xenobot doesn't have that folder. I made the folder "Scripts" and put my lua files in it, but the bot doesn't pick them up i click on "scripter" and "refresh list" and nothing seems to happen.
Edit: Nevermind i got it working.
Hi, I have the same problem right now! how did u do to make it work?
WOG2ENVY
11-18-2012, 11:26 PM
thanks bro <3
mjr2006
01-02-2013, 03:02 PM
"Am i supposed to make a folder in Xenobot called "Scripts"? Because my xenobot doesn't have that folder. I made the folder "Scripts" and put my lua files in it, but the bot doesn't pick them up i click on "scripter" and "refresh list" and nothing seems to happen.
Edit: Nevermind i got it working."
I have the same problem!
Actually, xenobot creates that folder automatically. So if it isn't there already try to de-install and re-install xenobot and tell us if it worked or not :)
HaNNeZ
01-03-2013, 08:38 AM
If there is any problem just download Notepad ++ it makes everything so much easier there u can choose to save as a LUA file and u can easier organize everything when ur doin ur scripts...
Scatman
01-11-2013, 04:01 AM
I have the same problem as byrd and no one answered it. Unable to load script into selected client. dafuq?> I can already assure you everything is in the right place. I have windows 8, does that have something to do with it?
filipedman
01-19-2013, 12:22 AM
I put the Lua I download in "C:\Program Files (x86)\XenoBot\Scripts" But When I klick ingame Scripter, it doesnt find any Scripts :S
tristan22
03-14-2013, 01:54 AM
Whenever I try and run the script it just gives me this message "20:49 XenoScript Error:
Script: [K] Edron Bog Raiders - Crown Royal.lua
Error: cannot open C:?Users?tom?Documents?XenoBot?Scripts?Forgee.lua: No such file or directory
This is an error with user-input and should not be reported as a bug with XenoBot." any suggestions?
XtrmJosh
05-13-2013, 05:57 PM
Your lua files should go in your Documents/Xenobot/Scripts folder, not in Program Files.
located
09-12-2013, 03:55 PM
so when i execute the script i have the only thing that happens is that i get a green msg that says "17:52 Ankrahmun Terramites by XuX" and the walker, looter, support, tools etc opens but the walker is empty, the support and the looter is also empty, can anyone help me with this?
HeHao
10-01-2013, 04:37 PM
good tutorial!
billy3673
10-02-2013, 01:46 AM
Deleted.
Hatix
10-10-2013, 03:46 PM
A lot of people make the mistake of saving it as .lua instead of selecting '.lua' manually. Should include it, sometimes it won't work otherwise.
Although, good tutorial.
Cappa
11-07-2013, 03:56 PM
I got to run it and it comes up with an error message
15:53 XenoScript Error:
Script: Deposit.Lua
Line #: 2
Chunk: C:?Users?(mypcname)?Documents?XenoBot?Scripts?Depo sit.Lua
Error: attempt to index global 'self' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.
cziter
12-19-2013, 04:18 AM
Hello , I use this script
http://forums.xenobot.net/showthread.php?15486-XBFS-Xenobot-Free-Scripts&p=195364&viewfull=1#post195364
I have shown how the picture I have in the depot open two bacpacki camouflage and one backpacku two open , I stand in the depot in Port Hope and appears to me such a thing
5:15 XenoScript Error:
Script : Library.lua
Error : can not open C : \ Users \ Daniel \ Documents \ XenoBot \ Scripts \ [ XBFS ] Library.lua : No such file or directory
This is an error with user -input and should not be reported as a bug with XenoBot .
5:15 XenoScript Error:
Script : Library.lua
Error : can not open C : \ Users \ Daniel \ Documents \ XenoBot \ Scripts \ [ XBFS ] Library.lua : No such file or directory
This is an error with user -input and should not be reported as a bug with XenoBot .
5:15 XenoScript Error:
Script : [ XBFS ] [ ALL ] Port Hope Swamp Trolls.lua
Error : can not open C : \ Users \ Daniel \ Documents \ XenoBot \ Scripts \ [ XBFS ] Library.lua : No such file or directory
This is an error with user -input and should not be reported as a bug with XenoBot .
I would add that all files added to Documunest / Xenonbot / Scripts please help what I am doing mistake the first time want to load a script that's why I do not know , please help
Austin
12-25-2013, 04:38 AM
I hate to bother but I'm new to xenobot and I can get any scripts to work it says this. 23:34 XenoScript Error:
Script: All-Larvas.lua
Line #: 1
Chunk: C:\Users\john jenn?Documents?XenoBot?Scripts?All-Larvas.lua
Error: '=' expected near '!'
This is an error with user-input and should not be reported as a bug with XenoBot. if you know how to help me please do :/
PromB
12-27-2013, 12:40 AM
I hate to bother but I'm new to xenobot and I can get any scripts to work it says this. 23:34 XenoScript Error:
Script: All-Larvas.lua
Line #: 1
Chunk: C:\Users\john jenn?Documents?XenoBot?Scripts?All-Larvas.lua
Error: '=' expected near '!'
This is an error with user-input and should not be reported as a bug with XenoBot. if you know how to help me please do :/
Line #: 1 Error: '=' expected near '!'
Austin
12-27-2013, 09:16 AM
I finally figured it out but now I'm having other problems like backpack reset it opens and closes it over and over and the walker will take me to spawn kill 3 monsters and head back :/ and sometimes wont restock on health potions its bothering me. I have teamviewer maybe that can help idk. but thanks
vixen2087
01-07-2014, 05:55 PM
thanks man :)
hi I did it all but I cann't use the XenoBot the problem show me is "You do not need to execute the config" and I cann't Execute the script
what is my problem?? pls :( help me I'm loosing days to XenoBot
svennn
01-08-2014, 09:17 PM
hi I did it all but I cann't use the XenoBot the problem show me is "You do not need to execute the config" and I cann't Execute the script
what is my problem?? pls :( help me I'm loosing days to XenoBot
I'm pretty sure I answered this already. The file you are executing should not be executed. You should have another script that you run that automatically imports the settings from the config file.
vitintensu
02-22-2014, 11:39 PM
I'm having some troubles.. I have the lua scripts on script folder but when I try to "Refresh list" nothing appears..
Check the folder I'm using:
http://gyazo.com/a8e0ffed0c0417540f9b13206563c4b3
A lua script I got on this forum:
http://gyazo.com/4191f0f0945c1a70b9a8c9c3ea01de8f
I press "Refresh list and nothing appears:
http://gyazo.com/6bcc1c3c838f738ad0c18452e60201b2
loveharry
03-03-2014, 01:06 AM
I don't have a Scripter folder in my xenobot folder
Edit: Nevermind I found it and inserted the files and when I opened up tibia and bot I exexute the script and it comes up in green and says the name of the script and who made it but the character does nothing it just stands there I'm so confused with what to do I tried everything downloaded tibia and xenobot again but same problem...
mingfan
03-16-2014, 04:44 PM
i dont have a script folder =/
Victoryoda
03-29-2015, 03:51 PM
I use the trial version and do not have the folder settings and scripts too, this is because I use the trial version ?
albutt
04-02-2015, 03:47 PM
If you dont have a Scripter folder, start Tibia and Xenobot. It should create a Scripter folder and a Settings folder under C:\Users\Username\Documents\XenoBot.
Settings: Where bot walks, when/how it heals, spells to use, what to loot etc.
Scripts: Deposit in DP, Talk to NPC, Buy pots, etc.
ro1992
09-01-2015, 10:35 AM
doesnt work for me either
KaviroOzux
09-01-2015, 08:27 PM
hello i just didnt read the post before, but everyone is talking about a "script folder"on xenobot, i installed in (C:\Program Files (x86)\XenoBot ), but there is no script folder, do i just need to create a new one with that name inside the xb folder?
Omar123321
08-21-2017, 02:06 PM
I don't know why the script doesn't work
He doesn't buy Pot or Reset BP or Travel
Please help me ...
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.