Last edited by Sajean; 11-14-2014 at 12:57 AM.
Isn't good way to do, but i need to sleep.
Go to windbotfolder/cavebotsettingsCode:<?xml version="1.0" encoding="UTF-8"?> <WindbotSettings> <Scripter> <HotkeyScripts/> <PersistentScripts> <PersistentScript name="Settings" script="init start Destination = {x = 11111, y = 22222, z = $posz} Items = {"gold coin",'platinum coin','crystal coin'} local Players = { Consider = true, Distance = 10, SafeList = { "Bubble", "Eternal Oblivion", "Google" }, FloorDifference = 1 } init end auto(10) if not Players.Consider or paroundfloorignore(Players.Distance, Players.FloorDifference, unpack(Players.SafeList)) == 0 then setsetting('Settings/MouseMoveSpeed', 'Instantaneous') setsetting('Settings/ClickWaitTime', '10 to 10 ms') for _, v in ipairs(Items) do moveitems(v, ground(Destination.x, Destination.y, $posz)) end end" enabled="yes"/> </PersistentScripts> </Scripter> </WindbotSettings>
Create an file, named FriendList.xml
This file need to be .xml.
Then paste this code and save.
Now go to your bot, persistent.
Create new persistent and put this.
loadsettings('FriendList.xml')
For you Add the names open the file with notepad and put this.
"NAME",
Before Google Name.
@Sajean ty for the help,
I forgot to explain how i'm using this action take a look :
if have someway to he check one notepad on line of checker its really easy, the bot doesn't have this function @Raphael?
Like That with the "edits" on Safelist line and check line ( lines 7 and 12 with FriendList.txt ) :
TY
Last edited by KrusT; 11-14-2014 at 08:43 PM.
@Sajean @borges
Hi, Lucas Terra send to me one string about ".txt " things.
If possible take a look. XD
local str = file.content('file.txt') -- arquivo localizado na pasta '/WindBot/files/'
i already try like this:
init start
Destination = {x = 11111, y = 22222, z = $posz}
Items = {"gold coin",'platinum coin','crystal coin'}
local Lista = file.content('FriendList.txt')
local Players = {
Consider = true,
Distance = 10,
SafeList = {Lista},
FloorDifference = 1
}
init end
auto(10)
if not Players.Consider or paroundfloorignore(Players.Distance, Players.FloorDifference, unpack(Players.SafeList)) == 0 then
setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
setsetting('Settings/ClickWaitTime', '10 to 10 ms')
for _, v in ipairs(Items) do
moveitems(v, ground(Destination.x, Destination.y, $posz))
end
end
but he said, this "Lista" it's just a string, i have to read and initialize my safelist.
TY Again, and ty Lucas Terra for the help !
Try this. (every char must be in separated line)
init start
local Destination = {x = 11111, y = 22222, z = $posz}
local Items = {"gold coin",'platinum coin','crystal coin'}
local Players = {
Consider = true,
Distance = 10,
SafeList = {},
FloorDifference = 1
}
local doc = "lista.txt" -- this is where Your chars are located
for line in io.lines(doc) do
table.insert(Players.SafeList, line)
end
init end
auto(10)
if not file.exists(doc) then
return
end
if not Players.Consider or paroundfloorignore(Players.Distance, Players.FloorDifference, unpack(Players.SafeList)) == 0 then
setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
setsetting('Settings/ClickWaitTime', '10 to 10 ms')
for _, v in ipairs(Items) do
moveitems(v, ground(Destination.x, Destination.y, $posz))
end
end
Latest Scripts: Ultimate Dawnport FACC Spots Souleater Tunnels Useful Lua:
Yes, like this![]()
Latest Scripts: Ultimate Dawnport FACC Spots Souleater Tunnels Useful Lua: