Posts: 2
Threads: 1
Joined: Jan 2021
Reputation:
0
As title said, looking for a bedmage script that will sleep for a certain amount of time depending if promoted or not i guess? then wake up and make runes, put full bp down and pick up new if needed + food then go to sleep again.
Or some other bedmage script that works.
Posts: 2,948
Threads: 492
Joined: Jul 2018
Reputation:
84
01-20-2021, 06:17 PM
(This post was last modified: 04-02-2022, 02:58 PM by Arkilys.)
Hello.
Yes, i already posted it on Forums.
There's no support on this script.
local Characters = {
{
Account = "123456", --Character's account
Password = "mypass321", --Character's password
Name = "Maker 1", --Character's name.
Bed = {X = 12345, Y = 12345, Z = 5}, -- Bed's location where you gonna use to go sleep.
Blanks = {X = 12345, Y = 12345, Z = 5}, -- Blank's backpack location. It must be 01 backpack with 20 blank runes backpacks inside.
Rune = {Hand = "lhand", Mana = 300, Spell = "adori vita vis"}, -- Rune to make and hand. ALWAYS LEAVE THE HAND EMPTY!
Food = {X = 12345, Y = 12345, Z = 5, InsideContainer = true}, --Food's backpack location. You can leave a backpack with food inside or leave food on floor and set 'InsideContainer' as false.
BedTime = {Min = 300, Max = 400}, -- Time to wait between each 'sleep', in SECONDS.
NoRunes = {PLAY_ALERT = true, IGNORE_CHARACTER = true}
},
{
Account = "123456", --Character's account
Password = "mypass321", --Character's password
Name = "Makers'name 2", --Character's name.
Bed = {X = 12345, Y = 12345, Z = 5}, -- Bed's location where you gonna use to go sleep.
Blanks = {X = 12345, Y = 12345, Z = 5}, -- Blank's backpack location. It must be 01 backpack with 20 blank runes backpacks inside.
Rune = {Hand = "lhand", Mana = 300, Spell = "adori vita vis"}, -- Rune to make and hand. ALWAYS LEAVE THE HAND EMPTY!
Food = {X = 12345, Y = 12345, Z = 5, InsideContainer = true}, --Food's backpack location. You can leave a backpack with food inside or leave food on floor and set 'InsideContainer' as false.
BedTime = {Min = 300, Max = 400}, -- Time to wait between each 'sleep', in SECONDS.
NoRunes = {PLAY_ALERT = true, IGNORE_CHARACTER = true}
},
{
Account = "123456", --Character's account
Password = "mypass321", --Character's password
Name = "Makers'name 3", --Character's name.
Bed = {X = 12345, Y = 12345, Z = 5}, -- Bed's location where you gonna use to go sleep.
Blanks = {X = 12345, Y = 12345, Z = 5}, -- Blank's backpack location. It must be 01 backpack with 20 blank runes backpacks inside.
Rune = {Hand = "lhand", Mana = 300, Spell = "adori vita vis"}, -- Rune to make and hand. ALWAYS LEAVE THE HAND EMPTY!
Food = {X = 12345, Y = 12345, Z = 5, InsideContainer = true}, --Food's backpack location. You can leave a backpack with food inside or leave food on floor and set 'InsideContainer' as false.
BedTime = {Min = 300, Max = 400}, -- Time to wait between each 'sleep', in SECONDS.
NoRunes = {PLAY_ALERT = true, IGNORE_CHARACTER = true}
}
}
local LOG_CONSOLE = true -- Print the character's next check time on console? It will print: "CHARACTER's next check in X seconds.".
--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ Bed mage script 0.1 by Arkilys --]]
--[[ |Only Registered members can see download links. | Click here to buy subscription or here to register./>
--[[ __________ .___ _____ --]]
--[[ \______ \ ____ __| _/ / \ _____ ____ ____ --]]
--[[ | | _// __ \ / __ | / \ / \\__ \ / ___\_/ __ \ --]]
--[[ | | \ ___// /_/ | / Y \/ __ \_/ /_/ > ___/ --]]
--[[ |______ /\___ >____ | \____|__ (____ /\___ / \___ > --]]
--[[ \/ \/ \/ \/ \//_____/ \/ --]]
--[[ ___. _____ __ .__ .__ --]]
--[[ \_ |__ ___.__. / _ \_______| | _____.__.| | |__| ______ --]]
--[[ | __ < | | / /_\ \_ __ \ |/ < | || | | |/ ___/ --]]
--[[ | \_\ \___ | / | \ | \/ < \___ || |_| |\___ \ --]]
--[[ |___ / ____| \____|__ /__| |__|_ \/ ____||____/__/____ > --]]
--[[ \/\/ \/ \/\/ \/ --]]
--[[ DON'T EDIT BELOW THIS LINE --]]
LAST_BP = LAST_BP or {}
NEXT_CHECK = NEXT_CHECK or {}
CHARACTERS_IGNORED = CHARACTERS_IGNORED or {}
for i = 1, #Characters do
local maker = Characters[i]
local checkCharacter = false
if NEXT_CHECK[maker.Name] == nil then
checkCharacter = true
else
if runningtime() >= NEXT_CHECK[maker.Name] then
checkCharacter = true
end
end
if CHARACTERS_IGNORED[maker.Name] ~= nil then
checkCharacter = false
end
if checkCharacter then
if connected() then
if name():lower() ~= maker.Name:lower() then
logout()
wait(1000)
else
closewindows()
wait(1000)
end
end
if not connected() then
connect(maker.Account, maker.Password, maker.Name)
wait(800)
end
if connected() then
if mp() >= maker.Rune.Mana then
local winCount = windowcount()
for j = 1, 3 do
reachlocation(maker.Blanks.X, maker.Blanks.Y, maker.Blanks.Z, false)
wait(1000)
openitem(0, ground(maker.Blanks.X, maker.Blanks.Y, maker.Blanks.Z), true)
wait(1000)
if windowcount() ~= winCount then
break
end
end
local mainBP = getcontainer(winCount)
if mainBP.index >= 0 then
if LAST_BP[maker.Name] == nil then
LAST_BP[maker.Name] = 0
end
local lastBP = LAST_BP[maker.Name]
local bpsSlots = {}
for j = 1, mainBP.usedslots do
local bpItem = mainBP.items[j]
if itemhasflags(bpItem.id, 4) then
table.insert(bpsSlots, bpItem.index)
end
end
for j = 1, #bpsSlots do
local bpSlot = bpsSlots[j]
if bpSlot >= lastBP then
local winCount = windowcount()
for x = 1, 3 do
openitemslot(bpSlot, mainBP.index, true)
wait(1000)
if windowcount() ~= winCount then
break
end
end
local manaBreak = false
local blank_rune_id = itemid("blank rune")
while itemcount(blank_rune_id, (mainBP.index + 1)) > 0 do
moveitems(blank_rune_id, maker.Rune.Hand, (mainBP.index + 1), 0)
wait(800)
local handRune = {id = 0, count = 0}
local isLefthand = false
if maker.Rune.Hand:lower() == "lhand" then
isLefthand = true
handRune = lhand()
else
handRune = rhand()
end
while handRune.id == blank_rune_id do
cast(maker.Rune.Spell)
wait(1000)
if isLefthand then
handRune = lhand()
else
handRune = rhand()
end
end
moveitems(handRune.id, (mainBP.index + 1), maker.Rune.Hand, 0)
wait(800)
LAST_BP[maker.Name] = bpSlot
if mp() < maker.Rune.Mana then
manaBreak = true
break
end
end
if manaBreak == false then
closewindow((mainBP.index + 1))
wait(500)
if bpSlot == #bpsSlots then
if maker.NoRunes.PLAY_ALERT then
playsound("default")
end
if maker.NoRunes.IGNORE_CHARACTER then
CHARACTERS_IGNORED[maker.Name] = true
end
LAST_BP[maker.Name] = 0
end
else
break
end
end
end
end
end
if posz() == maker.Food.Z then
for j = 1, 3 do
if reachlocation(maker.Food.X, maker.Food.Y, maker.Food.Z, false) then
wait(1000)
if maker.Food.InsideContainer then
local winCount = windowcount()
for k = 1, 3 do
openitem(0, ground(maker.Food.X, maker.Food.Y, maker.Food.Z), true)
wait(1000)
if windowcount() ~= winCount then
break
end
end
eatfood(random(20, 30))
else
for k = 1, random(20, 30) do
useitem(0, maker.Food.X, maker.Food.Y, maker.Food.Z)
wait(400)
local status_msg = statusmessage()
if status_msg ~= nil and status_msg == "You are full." then
break
end
end
end
end
end
end
if posz() == maker.Bed.Z then
for j = 1, 3 do
reachlocation(maker.Bed.X, maker.Bed.Y, maker.Bed.Z, false)
wait(1000)
useitem(0, maker.Bed.X, maker.Bed.Y, maker.Bed.Z)
wait(400)
if not connected() then
break
end
end
else
print(maker.Name .. " is on a different Z position than bed, so just logouted.")
playsound("default")
flashclient()
logout()
end
local nextTime = random(maker.BedTime.Min, maker.BedTime.Max)
NEXT_CHECK[maker.Name] = runningtime() + nextTime
if LOG_CONSOLE then
print(maker.Name .. "'s next check in", nextTime, "seconds.")
end
end
end
end
Posts: 2
Threads: 1
Joined: Jan 2021
Reputation:
0
oh awesome, couldn't find it. thank you very much!
|