View Full Version : Forgee lua
Hellpower
05-16-2013, 01:44 PM
Hey guys, iam new here, and bought xenobot. i dont get how to get that forgee lua and how to use it, hope some1 can help me
Nakuu
05-16-2013, 01:56 PM
https://www.dropbox.com/s/6p3nc5j7i5fykpn/Forgee.lua
You simply save it to "Scripts" folder and that's all.
Hellpower
05-16-2013, 04:40 PM
so what does that mean?
18:38 XenoScript Error:
Script: magician yalahar.lua
Error: cannot open C:?Users?Avid?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.
Hellpower
05-16-2013, 04:44 PM
oke i saved em. but i wanna use the lua codes from each hunting place
Hellpower
05-16-2013, 04:45 PM
the lua code i want to use:
dofile("magician yalahar.lua")
-- [BP 1] - Main/Stackables
-- [BP 2] - Rares
-- [BP 3] - Gold
--------- DP SETUP ----------
-- [DP 1] - Everything :D
------ REFILL SETTINGS ------
local MinHealth = 5 --- How many health potions until you leave the hunt.
local MaxHealth = 30 --- How many health potions you begin the hunt with.
local MinMana = 5 --- How many mana potions until you leave the hunt.
local MaxMana = 150 --- How many mana potions you begin the hunt with.
local MaxAmmo = 30 --- How many Spears you'd like to hunt with.
local MinAmmo = 5 --- How many Spears you'd like to leave the hunt with.
------- HUNT SETTINGS --------
local GoldBP = 8860 --- Item ID of your gold backpack. (Default is brocade backpack)
local MinCap = 30 --- Leaves spawn when character reaches this cap.
local Hardcore = true --- Do you want to kill the pirestess?
------- EXTRA SETTINGS -------
local HideEquipment = true --- Do you want to minimize your equipment?
local LogoutStamina = true --- Do you want to logout at 16 hours? (Inside the depot)
Hellpower
05-16-2013, 04:55 PM
and now no error msg coming, but also doesnt work... at script list ingame, theres it but doesnt work and sorry for commenting so often :S
Hellpower
05-16-2013, 06:39 PM
could some1 reply pls?
Nakuu
05-16-2013, 06:40 PM
Show us the error message.
Hellpower
05-16-2013, 06:50 PM
21:13 XenoScript Error:
Script: magician yalahar.lua
Line #: 1
Chunk: C:\Users\Avid\Documents\XenoBot\Scripts\magician yalahar.lua
Error: chunk has too many syntax levels
This is an error with user-input and should not be reported as a bug with XenoBot.
Nakuu
05-16-2013, 07:21 PM
21:13 XenoScript Error:
Script: magician yalahar.lua
Line #: 1
Chunk: C:\Users\Avid\Documents\XenoBot\Scripts\magician yalahar.lua
Error: chunk has too many syntax levels
This is an error with user-input and should not be reported as a bug with XenoBot.
This is caused by doing too many operations at once.
It can result from:
Too many operations (e.g. Doing 500 concatenations in a single expression)
Too many nested control statements (Loops, if statements, etc)
Can't really help you without seeing "magician yalahar.lua" file.
Hellpower
05-16-2013, 07:46 PM
here is the script file
dofile("magician yalahar.lua")
-- [BP 1] - Main/Stackables
-- [BP 2] - Rares
-- [BP 3] - Gold
--------- DP SETUP ----------
-- [DP 1] - Everything
------ REFILL SETTINGS ------
local MinHealth = 5 --- How many health potions until you leave the hunt.
local MaxHealth = 30 --- How many health potions you begin the hunt with.
local MinMana = 5 --- How many mana potions until you leave the hunt.
local MaxMana = 150 --- How many mana potions you begin the hunt with.
local MaxAmmo = 30 --- How many Spears you'd like to hunt with.
local MinAmmo = 5 --- How many Spears you'd like to leave the hunt with.
------- HUNT SETTINGS --------
local GoldBP = 8860 --- Item ID of your gold backpack. (Default is brocade backpack)
local MinCap = 30 --- Leaves spawn when character reaches this cap.
local Hardcore = true --- Do you want to kill the pirestess?
------- EXTRA SETTINGS -------
local HideEquipment = true --- Do you want to minimize your equipment?
local LogoutStamina = true --- Do you want to logout at 16 hours? (Inside the depot)
Nakuu
05-16-2013, 07:49 PM
It's your "magician yalahar.lua" file? If so you can't open the same file, it will execute itself endlessly. Remove this line:
dofile("magician yalahar.lua")
If you want to use Forgee.lua library open Forgee.lua instead:
dofile("Forgee.lua")
Hellpower
05-16-2013, 07:59 PM
oke done.... but doesnt execute...
i saved the code as "magician yalahar.lua" and got another code called forgee.lua
wanna use the magician one, i changed the dofile to forgee, no error msg but still doesnt execute
Nakuu
05-16-2013, 08:02 PM
It does execute, but this script do nothing so it is being executed in few milliseconds. You need to add some listener
registerEventListener(WALKER_SELECTLABEL, "onLabel")
or modules to make it last longer.
Module.New(Name-of-module', function(module)
-- some code here
end)
Hellpower
05-16-2013, 08:06 PM
should i add both to magician yala code? and where should i add it? at first?
btw what u mean with that script do nothing? thought the script is rebuying pots and so on for a full afk botting
Hellpower
05-16-2013, 08:10 PM
registerEventListener(WALKER_SELECTLABEL, "onLabel")
used that and it executed!!!!!!!!! dude thank you <3
Nakuu
05-16-2013, 08:12 PM
You only create some variables in your script. Just download some free script from the forum and look more closely how registerEventListener(WALKER_SELECTLABEL, "onLabel") works. To buy potions etc you have to create waypoints with labels. And then in .lua create function that do certain things on labels.
Hellpower
05-16-2013, 08:12 PM
oke it executed but
22:12 XenoScript Error:
Script: magician yalahar.lua
Error: attempted to call non-existant event listener
This is an error with user-input and should not be reported as a bug with XenoBot.
Hellpower
05-16-2013, 08:13 PM
listen. i downloaded the waypoints... and there were lua code, thought thats all i need? what else do i need and how should i do that? i fucking watched so many tutorials, nothing helped
Nakuu
05-16-2013, 08:14 PM
You also need to add function:
function onLabel(label)
if(label == "Something") then
-- do something
end
end
Hellpower
05-16-2013, 08:15 PM
oh fucking hell... i gonna cry :S
"do something" what to do?
Hellpower
05-16-2013, 08:16 PM
http://forums.xenobot.net/showthread.php?8821-JXScripts-(-gt-.-)-gt-100-AFK-lt-(-.-lt-)&p=161659&viewfull=1#post161659
thats what iam using, and want to use... maybe u find a better one, waypoints + lua code?
Nakuu
05-16-2013, 08:18 PM
Well, to create scripts you have to know how programming works. I can't teach you that within few hours. If you only want to use this script you posted, simply load settings you downloaded, execute .lua and that's all. If you are using JXScripts you might also need their library which you can find somewhere in their thread.
Hellpower
05-16-2013, 08:21 PM
i just want to use the waypoints on that link i send, and those scripts... but they doesnt work
it execute but that error msg coming: 22:12 XenoScript Error:
Script: magician yalahar.lua
Error: attempted to call non-existant event listener
This is an error with user-input and should not be reported as a bug with XenoBot.
what to do?
Hellpower
05-16-2013, 08:21 PM
just wanna 100% afk bot
Nakuu
05-16-2013, 08:22 PM
Try to contact Joshwa534 or xiaospike if you are having problems with their script. I can't help you since they are encrypting their scripts :P
Hellpower
05-16-2013, 08:24 PM
fucking shit... i tried, they dont answer....
look at the link pls. thats the lua code (magician yalahar) iam using.... do i have to add something? or is that enough so the bot refilling shit and so on
Nakuu
05-16-2013, 08:26 PM
Dunno man, seems like you are missing the encrypted part of the script. Do not create your own files, just download the package, unrar it, copy files to Settings/Scripts folders and that's all.
Hellpower
05-16-2013, 08:29 PM
i didnt create own files. i download the shit, and copied the lua code to my notepad and so on... thats it.
Nakuu
05-16-2013, 08:30 PM
Do not copy any code to your notepad. Just move the files you downloaded to proper folders.
Hellpower
05-16-2013, 08:34 PM
ok sec
ill retry.
Hellpower
05-16-2013, 08:43 PM
its fucked up... now code works but the waypoints kinda fucked up just checking supplys but doesnt run to hunt
Joshwa534
05-16-2013, 11:11 PM
its fucked up... now code works but the waypoints kinda fucked up just checking supplys but doesnt run to hunt
Add me to Skype (Joshwa5342), our [RP] Yalahar Magicians.lua is not encrypted and it certainly does not have a dofile("magician yalahar.lua") line in the code. Simply add me to Skype so we can figure out what is going on.
=]
We'll get it you taken care of,
Joshwa534
Randomnig
05-17-2013, 05:30 PM
Im also having trouble with forgee, although i generally know what i am doing with xenobot.
I had forgee working with a script I used last week, but today when I tried a new scrip that needed it, I keep generating errors.
13:27 XenoScript Error:
Script: NorthPh.lua
Line #: 2
Chunk: C:?Users?Mathew?Documents?XenoBot?Scripts?Forgee.l ua
Error: '<eof>' expected near 'end'
This is an error with user-input and should not be reported as a bug with XenoBot.
Last time I had this error, i fixed it by just adding a "<eof>" near the end in the script where it asked, this time I tried again and it didn't fix it.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.