Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rune making inside the house + aleta sio
#1
Hello everyone
Im looking for a script that walks inside the house to make the rune, and then cast aleta sio to comeback outside for refill mana
plase!
Reply

#2
This script will reach a specific location, cast spell words and say alana sio.
local MANA = 100 -- If mana higher than this value then walk to LOCATION_HOUSE and cast SPELL.
local SPELL = 'adori gran' -- Spell to cast.
local LOCATION_HOUSE = { X = 12345, Y = 12345, Z = 6 } -- Location to walk and cast spell.
local DELAY_AFTER_SPELL = { Min = 60000, Max = 65000 } -- Delay to wait before casting alana sio, after casting spell.

if mp() >= MANA then
     reachlocation(LOCATION_HOUSE.X, LOCATION_HOUSE.Y, LOCATION_HOUSE.Z, true)
     wait(500, 800)
     if posx() == LOCATION_HOUSE.X and posy() == LOCATION_HOUSE.Y then
          cast(SPELL)
          if DELAY_AFTER_SPELL ~= nil and DELAY_AFTER_SPELL.Min ~= nil and DELAY_AFTER_SPELL.Max ~= nil then
               wait(DELAY_AFTER_SPELL.Min, DELAY_AFTER_SPELL.Max)
          end
          wait(300, 500)
          say('alana sio')
     end
end

Or this that will do the same as above, but also refill food.
local MANA = {Min = 100, Max = 120} -- Sort a random value between this range. If mana higher than sorted value then walk to LOCATION_HOUSE and cast SPELL.
local SPELL = "adori gran" -- Spell to cast.
local LOCATION_HOUSE = {X = 12345, Y = 12345, Z = 6} -- Location to walk and cast spell.
local DELAY_AFTER_SPELL = { Min = 60000, Max = 65000 } -- Delay to wait before casting alana sio, after casting spell.

local FOOD_LOCATION = {X = 12345, Y = 12345, Z = 6} -- Location where food is placed.
local FOOD_LIST = {3577, 3578, 3582, 3583, 3725, 3723} -- Foods ids.
local FOOD_MAX_COUNT = {Min = 10, Max = 30} -- Sort a random value. This will be the maximum amount of food in your backpack.


if NEXT_MANA == nil then
  NEXT_MANA = random(MANA.Min, MANA.max)
end

if mp() >= NEXT_MANA then
  setsettings("Runemaker/Enabled", false)
  reachlocation(LOCATION_HOUSE.X, LOCATION_HOUSE.Y, LOCATION_HOUSE.Z, true)
  wait(500, 800)
  if posx() == LOCATION_HOUSE.X and posy() == LOCATION_HOUSE.Y then
    cast(SPELL)
    if DELAY_AFTER_SPELL ~= nil and DELAY_AFTER_SPELL.Min ~= nil and DELAY_AFTER_SPELL.Max ~= nil then
      wait(DELAY_AFTER_SPELL.Min, DELAY_AFTER_SPELL.Max)
    end
    wait(300, 500)
    say("alana sio")
  else
    playsound("default")
    flashclient()
    printerror("Failed to reach position to cast spell.")
  end
  setsettings("Runemaker/Enabled", true)
else
  if foodcount == nil then
    function foodcount(list)
      local containers = getcontainers()
      local foodCount = 0
      for _, cont in ipairs(containers) do
        for __, item in ipairs(cont.items) do
          if table.find(list, item.id) ~= nil then
            foodCount = foodCount + item.count
          end
        end
      end
      return foodCount
    end
  end

  if foodcount(FOOD_LIST) == 0 then
    setsettings("Runemaker/Enabled", false)
    reachlocation(FOOD_LOCATION.X, FOOD_LOCATION.Y, FOOD_LOCATION.Z, false)
    wait(500, 800)
    if math.abs(posx() - FOOD_LOCATION.X) <= 1 and math.abs(posy() - FOOD_LOCATION.Y) <= 1 then
      local topItem = topitem(FOOD_LOCATION.X, FOOD_LOCATION.Y, FOOD_LOCATION.Z)
      local maxCount = random(FOOD_MAX_COUNT.Min, FOOD_MAX_COUNT.Max)
      local pickupCount = maxCount
      while table.find(FOOD_LIST, topItem.id) ~= nil do
        moveitems(topItem.id, "", ground(FOOD_LOCATION.X, FOOD_LOCATION.Y, FOOD_LOCATION.Z), pickupCount)
        wait(400, 700)
        pickupCount = maxCount - foodcount(FOOD_LIST)
        if pickupCount <= 0 then
          break
        end
      end

      say("alana sio")
    else
      playsound("default")
      flashclient()
      printerror("Failed to reach position to refill food.")
    end
    setsettings("Runemaker/Enabled", true)
  end
end



This script will do the same than first script, except it will also check if you are not in danger (according options you using on Runemaker -> On Danger) then disable runemaker when doing so and enable back after saying alana sio.
local MANA = 100 -- If mana higher than this value then walk to LOCATION_HOUSE and cast SPELL.
local SPELL = 'adori gran' -- Spell to cast.
local LOCATION_HOUSE = { X = 12345, Y = 12345, Z = 6 } -- Location to walk and cast spell.
local DELAY_AFTER_SPELL = { Min = 60000, Max = 65000 } -- Delay to wait before casting alana sio, after casting spell.

if mp() >= MANA and runemaker_isondanger() == false and runemaker_isrefilling() == false then
     setsettings('Runemaker/Enabled', false)
     reachlocation(LOCATION_HOUSE.X, LOCATION_HOUSE.Y, LOCATION_HOUSE.Z, true)
     wait(500, 800)
     if posx() == LOCATION_HOUSE.X and posy() == LOCATION_HOUSE.Y then
          cast(SPELL)
          if DELAY_AFTER_SPELL ~= nil and DELAY_AFTER_SPELL.Min ~= nil and DELAY_AFTER_SPELL.Max ~= nil then
               wait(DELAY_AFTER_SPELL.Min, DELAY_AFTER_SPELL.Max)
          end
          wait(300, 500)
          say('alana sio')
     else
          playsound('default')
          flashclient()
          printerror('Failed to reach position to make rune.')
     end
     setsettings('Runemaker/Enabled', true)
end

Or this that will do the same as above, but also refill food.
local MANA = {Min = 100, Max = 120} -- Sort a random value between this range. If mana higher than sorted value then walk to LOCATION_HOUSE and cast SPELL.
local SPELL = "adori gran" -- Spell to cast.
local LOCATION_HOUSE = {X = 12345, Y = 12345, Z = 6} -- Location to walk and cast spell.
local DELAY_AFTER_SPELL = { Min = 60000, Max = 65000 } -- Delay to wait before casting alana sio, after casting spell.

local FOOD_LOCATION = {X = 12345, Y = 12345, Z = 6} -- Location where food is placed.
local FOOD_LIST = {3577, 3578, 3582, 3583, 3725, 3723} -- Foods ids.
local FOOD_MAX_COUNT = {Min = 10, Max = 30} -- Sort a random value. This will be the maximum amount of food in your backpack.


if NEXT_MANA == nil then
  NEXT_MANA = random(MANA.Min, MANA.max)
end

if runemaker_isondanger() == false and runemaker_isrefilling() == false then
  if mp() >= NEXT_MANA then
    setsettings("Runemaker/Enabled", false)
    reachlocation(LOCATION_HOUSE.X, LOCATION_HOUSE.Y, LOCATION_HOUSE.Z, true)
    wait(500, 800)
    if posx() == LOCATION_HOUSE.X and posy() == LOCATION_HOUSE.Y then
      cast(SPELL)
      if DELAY_AFTER_SPELL ~= nil and DELAY_AFTER_SPELL.Min ~= nil and DELAY_AFTER_SPELL.Max ~= nil then
        wait(DELAY_AFTER_SPELL.Min, DELAY_AFTER_SPELL.Max)
      end
      wait(300, 500)
      say("alana sio")
    else
      playsound("default")
      flashclient()
      printerror("Failed to reach position to cast spell.")
    end
    setsettings("Runemaker/Enabled", true)
  else
    if foodcount == nil then
      function foodcount(list)
        local containers = getcontainers()
        local foodCount = 0
        for _, cont in ipairs(containers) do
          for __, item in ipairs(cont.items) do
            if table.find(list, item.id) ~= nil then
              foodCount = foodCount + item.count
            end
          end
        end
        return foodCount
      end
    end

    if foodcount(FOOD_LIST) == 0 then
      setsettings("Runemaker/Enabled", false)
      reachlocation(FOOD_LOCATION.X, FOOD_LOCATION.Y, FOOD_LOCATION.Z, false)
      wait(500, 800)
      if math.abs(posx() - FOOD_LOCATION.X) <= 1 and math.abs(posy() - FOOD_LOCATION.Y) <= 1 then
        local topItem = topitem(FOOD_LOCATION.X, FOOD_LOCATION.Y, FOOD_LOCATION.Z)
        local maxCount = random(FOOD_MAX_COUNT.Min, FOOD_MAX_COUNT.Max)
        local pickupCount = maxCount
        while table.find(FOOD_LIST, topItem.id) ~= nil do
          moveitems(topItem.id, "", ground(FOOD_LOCATION.X, FOOD_LOCATION.Y, FOOD_LOCATION.Z), pickupCount)
          wait(400, 700)
          pickupCount = maxCount - foodcount(FOOD_LIST)
          if pickupCount <= 0 then
            break
          end
        end

        say("alana sio")
      else
        playsound("default")
        flashclient()
        printerror("Failed to reach position to refill food.")
      end
      setsettings("Runemaker/Enabled", true)
    end
  end
end
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply

#4
Of course you need to change info... or should bot guess where it should walk and which spell to cast? xDDD
Reply

#5
|Only Registered members can see download links. | Click here to buy subscription or here to register.

why my reply was deleted?:o
Reply

#6
Because your reply was not related to the script itself.

I recommend you to redownload and reinstall Bot.
Reply

#7
Does this persistent script work with more than 3 clients? when I opened 4, it doesn't do the functions.
Reply

#8
Yes, it does.
Reply

#9
Im using this script and its working fine, but for some reason it only refill food when it go inside the house to refill blank runes.
The point is i was using runemaker to refill food from my paladin, but its not making runes, so now he desnt refill food anymore because hes not going to drop runes or take blanks, and i dont know why this happen,
i also was trying to set a lua script to refill food, and i didnt find anything on forums like that, i also need a lua script that make alana sio if stuck on the house door.

I hope you understand and thank you very much in advance

local LOCATION_HOUSE = { X = 12345, Y = 12345, Z = 7 } -- Location to walk and cast spell.


if itemcount('fish') <= 10 and runemaker_isondanger() == false and runemaker_isrefilling() == false then
setsettings('Runemaker/Enabled', false)
reachlocation(LOCATION_HOUSE.X, LOCATION_HOUSE.Y, LOCATION_HOUSE.Z, true)
if posx() == LOCATION_HOUSE.X and posy() == LOCATION_HOUSE.Y then
moveitems('fish', 50)
wait(300, 500)
say('alana sio')
else
playsound('default')
flashclient()
printerror('Failed to reach position to make rune.')
end
setsettings('Runemaker/Enabled', true)
end


I Guess the problem is that moveitems, ive tried moveitemsontheground and moveitemsonground but im always finding bugs.
Reply

#10
|Only Registered members can see download links. | Click here to buy subscription or here to register.


Hello.

The script that I posted doesn't have any refill. So your doubt may be about Runemaker tab, which you should had asked in Support section not here, but that's not the point.

Runemaker's refill settings has options to refill rune, etc. Food refill is not restricted to when refilling blanks or so, so if you setup it properly, it's supposed to refill foods only even if you are not refilling blanks. Refill settings works only if Runemaker is enabled as well, but if you are using a paladin then you can "bypass" that by selecting any rune spell and setup a very high mana to make the rune, some that you will NEVER have, so it will never try to make runes, but will try to refill or so when needed.

Please, take a screenshot of your runemaker settings and post here (remember to hide your character name in bot window caption!).

I've edited my post and added scripts that may also refill food, but didn't tested at all.

About your script... Yes, the problem is on moveitems because you are NOT calling it properly, not using correct parameters/arguments.
|Only Registered members can see download links. | Click here to buy subscription or here to register.

moveitems(string item, string to, string from, optional in count) [void]
moveitems('fish', '', ground(X, Y, Z), 50)
X, Y and Z should be the location where food is. So if food is on "LOCATION_HOUSE" then
moveitems('fish', '', ground(LOCATION_HOUSE.X, LOCATION_HOUSE.Y, LOCATION_HOUSE.Z), 50)
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016