View Full Version : Problem opening scripts
Andy Man
08-30-2013, 03:24 AM
I'm new to xenobot so when I want to save a script I put it depending on what type of file it is, when it's lua I put it in scripts, and when it's .xbs or whatever it's called I put it in Settings, so I've followed the tutorials very well, but when I go ingame I just don't have them, for example, I load the settings and nothing, I look for it in scripts and nothing (and yes I refresh it) I look for it in walkers, basically I look for it everywhere, so can someone help me? thanks a lot :)
Andy Man
08-30-2013, 08:20 PM
BUMP!
Et3rnity
08-31-2013, 04:43 PM
i have a Problem too tryed my best to build a script with friends help but i just cant start it -.-
---
local radius = 1 -- Radius to consider
local spells = {
{words = "exori", targets = 2, mana = 120}, -- Spell to cast.
{words = "exori gran", targets = 3, mana = 320},
}
local monsters = {"Dragon Lord", "Sea Serpent", "Young Sea Serpent", "Crystal Spider", "Ice Golem", "Ice Witch", "Frost Dragon", "Dragon", "Dragon Lord Hatchling", "Frost Dragon Hatchling", "Dragon Hatchling", "Wyrm", "Lizard High Guard", "Lizard Legionnaire", "Lizard Dragon Priest"}
local playerSafe = false -- true will not cast the spell if there are players nearby (radius+2). false will execute regardless of other players, only recommended for Optional pvp.
local floorSafe = false -- true will hold fire if someone is on the floor above/below you.
local pSafeRange = radius + 1 -- how far away must other players be to cast spell
-------------------------
-- [ End of Settings ] --
-------------------------
dofile("Forgee.lua")
while true do
local targets = monstersAround(radius, unpack(monsters))
local count = 0
if playerSafe then
count = playersAround(pSafeRange)
end
if floorSafe then
local players = xrayPlayersAround(5)
for i = 1, #players do
local p = players[i]
if math.abs(Self.Position().z - p:Position().z) <= 1 then
count = count + 1
end
end
end
if count == 0 then
if targets > 0 then
for _, spell in ipairs(spells) do
if Self.CanCastSpell(spell.words) then
if Self.Mana() > spell.mana and targets >= spell.targets then
Self.Say(spell.words)
wait(200,600)
end
end
end
end
end
wait(400, 600)
end
if i try to start it this error comes:
18:42 XenoScript Error:
Script: Berserk.lua
Error: cannot open C:\Users\bla bla?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.
danonix
08-31-2013, 05:03 PM
You have to put forgee.lua file in xenobot/scripts folder
Et3rnity
08-31-2013, 06:19 PM
<- totaly retarded ^^
that means ?
thx btw for the fast help mate
Infernal Bolt
08-31-2013, 06:31 PM
Andy Man are you sure you are putting them in the right folder??
the correct one for w7 is C:/users/username/documents/xenobot
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.