Here is my bedmage script i used a while back so im sharing it. unsure if up to date or not. All details are inside the script.
Add it to a persistents.
maby some beds wont work so check "function getbed()" and "else if reachgrounditem("xxxx")" and add another if some be missing.
Add it to a persistents.
maby some beds wont work so check "function getbed()" and "else if reachgrounditem("xxxx")" and add another if some be missing.
-- Script is made for Retrocores.
-- Script will login to every character inserted in each "CharTables" and activated account.
-- We use code reachgrounditem to locate our food backpack. Since bot wont open backpacks under you make SURE
-- you put a "drawer" or similar object the character can not walk on with the food backback ontop.(must be visible from login duh)
local RelogTime = { Min = 90, Max = 120 } -- SET TIME IN MINUTES TO RELOG.
local Relog_wait = random(RelogTime.Min, RelogTime.Max)
local account1Active = true --- true/false to use this account or not
local account2Active = true --- true/false to use this account or not
local account3Active = true --- true/false to use this account or not
local account4Active = true --- true/false to use this account or not
local account5Active = true --- true/false to use this account or not
local FOOD_BP_ID = 2865 -- BP id !! IF CHANGE CHANGE ALSO ON LINE 139 ROW LOOKS LIKE THIS 'if windowcount('green backpack') > 0 then' !! ITS IMPORTANT SO WE WONT FAIL EATING FOOD.
local acc1 = "adura vita" -- Set SPELL for account 1.
local acc2 = "adevo mas hur" -- Set SPELL for account 2.
local acc3 = "adori vita vis" -- Set SPELL for account 3.
local acc4 = "adori vita vis" -- Set SPELL for account 4.
local acc5 = "adori vita vis" -- Set SPELL for account 5.
--- SIMPY A LIST OF SPELLS YOU MIGHT USE. Feel free to add whatever.
manatable = {}
manatable["adura vita"] = 100
manatable["adori gran"] = 70
manatable["adori gran flam"] = 120
manatable["adevo mas hur"] = 180
manatable["adori vita vis"] = 220
-- manatable["EDIT THIS TEXT"] = AND MANA SPELL COST.
account1 = "account name here"
password1 = "password here"
chartable1 = {
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here"
}
--- ACCOUNT 2
account2 = "account name here"
password2 = "password here"
chartable2 = {
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here"
}
--- ACCOUNT 3
account3 = "account name here"
password3 = "password here"
chartable3 = {
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here"
}
--- ACCOUNT 4
account4 = "account name here"
password4 = "password here"
chartable4 = {
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here"
}
--- ACCOUNT 5
account5 = "account name here"
password5 = "password here"
chartable5 = {
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here",
"char name here"
}
function getfood()
if reachgrounditem(FOOD_BP_ID, FALSE) then
local tiles = gettiles()
local player_x = posx()
local player_y = posy()
local player_z = posz()
local food_location = { x = 0, y = 0 }
for _, tile in ipairs(tiles) do
if math.abs(tile.posx - player_x) <= 1 and math.abs(tile.posy - player_y) and tile.posz == player_z and tile.itemcount > 1 then
for __, item in ipairs(tile.items) do
if item.id == FOOD_BP_ID then
food_location.x = tile.posx
food_location.y = tile.posy
break
end
end
end
if food_location.x > 0 then
break
end
end
openitem(FOOD_BP_ID, ground(food_location.x, food_location.y, player_z))
if windowcount('green backpack') > 0 then
wait(500, 800)
eatfood()
else getfood()
end
end
end
function getbed()
if reachgrounditem("2489") then
for x = -1, 1, 1 do
for y = -1, 1, 1 do
useitem("2489",posx()+x,posy()+y,posz())
wait(50)
end
end
else if reachgrounditem("2487") then
for x = -1, 1, 1 do
for y = -1, 1, 1 do
useitem("2487",posx()+x,posy()+y,posz())
wait(50)
end
end
else if reachgrounditem("2493") then
for x = -1, 1, 1 do
for y = -1, 1, 1 do
useitem("2493",posx()+x,posy()+y,posz())
wait(50)
end
end
else if reachgrounditem("2491") then
for x = -1, 1, 1 do
for y = -1, 1, 1 do
useitem("2491",posx()+x,posy()+y,posz())
wait(50)
end
end
end
end
end
end
if connected() then getbed()
end
end
while true do
if account1Active == true then
if not connected() then
for _, chartable1 in ipairs (chartable1) do
connect(account1,password1,chartable1)
while mp() >= manatable[acc1] do
say(acc1) end
wait(1000)
getfood()
getbed()
end
end
end
if account2Active == true then
if not connected() then
for _, chartable2 in ipairs (chartable2) do
connect(account2,password2,chartable2)
while mp() >= manatable[acc2] do
say(acc2) end
wait(1000)
getfood()
getbed()
end
end
end
if account3Active == true then
if not connected() then
for _, chartable3 in ipairs (chartable3) do
connect(account3,password3,chartable3)
while mp() >= manatable[acc3] do
say(acc3) end
wait(1000)
getfood()
getbed()
end
end
end
if account4Active == true then
if not connected() then
for _, chartable4 in ipairs (chartable4) do
connect(account4,password4,chartable4)
while mp() >= manatable[acc4] do
say(acc4) end
wait(1000)
getfood()
getbed()
end
end
end
if account5Active == true then
if not connected() then
for _, chartable5 in ipairs (chartable5) do
connect(account5,password5,chartable5)
while mp() >= manatable[acc5] do
say(acc5) end
wait(1000)
getfood()
getbed()
end
end
end
wait(1000*60*Relog_wait)
end