Announcement

Collapse
No announcement yet.

[SCRIPT SERVICE] Scripts on request for free / donation !!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SCRIPT SERVICE] Scripts on request for free / donation !!

    Hey,

    as you may have read in the title I'm currently learning some LUA and therefore I decided to get myself some projects to help you guys with scripts while I am learning the language a little more.

    So if you have any requests of scripts feel free to ask.
    I am looking forward to help you.

    See you guys around !

  • #2
    Hello!
    I need organize my loot.

    I need to move item x (mace for example) from bp 0 to bp 1, plate shield from bp 0 to bp 2, chain armor from bp 0 to bp 3.
    So on, can you?

    Comment


    • #3
      Originally posted by julio View Post
      Hello!
      I need organize my loot.

      I need to move item x (mace for example) from bp 0 to bp 1, plate shield from bp 0 to bp 2, chain armor from bp 0 to bp 3.
      So on, can you?

         
      auto(500)
      local item1 = "mace"
      local item2 = "plate shield"
      local item3 = "chain armor"

      while itemcount(item1) > 0 or itemcount(item2) > 0 or itemcount(item3) > 0 do
      moveitem(itemid(item1), container(0,0), container(1, 0), 1)
      wait(500,800)
      moveitem(itemid(item2), container(0,0), container(2, 0), 1)
      wait(500,800)
      moveitem(itemid(item3), container(0,0), container(3, 0), 1)
      wait(1000)
      end


      Keep in mind that with this script you only are able to move those 3 items. If there is for example gold or other looted items inside then the script will break !
      Last edited by hurensohn; 13-06-2017, 11:37 AM.

      Comment


      • #4
        It workek
        thanks!

        Comment


        • #5
          Hi there

          a Pick up spears and pick up under bodys, i know alredy have one posted. but didnt work here.

          Comment


          • #6
            Originally posted by malkaym View Post
            Hi there

            a Pick up spears and pick up under bodys, i know alredy have one posted. but didnt work here.

            local CONFIG = {
            maxspears = 10,
            hand = SLOT_LEFT, --SLOT_RIGHT for right hand
            movebodies = true,
            }

            local function tol(x)
            if math.abs(x) <= 0.001 then
            return 0
            elseif math.abs(1 - x) <= 0.001 then
            return 1
            end
            return x
            end

            local function negceil(x)
            if x < 0 then
            return math.floor(x)
            else
            return math.ceil(x)
            end
            end



            local function movebodies()

            local px = posx()
            local py = posy()
            local pz = posz()

            for r = 1, 5 do
            for d = 0, 2 * math.pi, ((2*math.pi)/(8*r)) do
            if math.abs(d - 2*math.pi) <= 0.001 then
            break
            end
            local x = negceil(tol(math.cos(d)) * r) + posx()
            local y = negceil(tol(math.sin(d)) * r) + posy()
            if isitemontile('spear', x, y, pz) then
            settargeting(false)
            setcavebot(false)
            if walk(x, y, pz, WALKER_REACH) then
            while true do
            local item = gettopuseitem(x, y, pz)
            if item.id == 0 or item.id == itemid('spear') or (posx() == x and posy() == y) or posz() ~= pz then
            return
            end
            item:move(ground(posx(), posy(), pz))
            wait(500, 600)
            end
            end
            end
            end
            end
            end

            local function pickup()
            local spear = finditem('spear', false, false, true)
            if spear.id ~= 0 then
            spear:move(slot(SLOT_LEFT))
            end
            end

            auto(200)
            local hand = getslotitem(CONFIG.hand)
            if (hand.id == itemid('spear') or hand.id == 0) and hand.count < CONFIG.maxspears then
            if CONFIG.movebodies then
            if maround(7) == 0 then
            movebodies()
            wait(500, 700)
            end
            pickup()
            wait(250,500)
            settargeting(true)
            wait(250,500)
            setcavebot(true)
            else
            pickup()
            wait(250,500)
            settargeting(true)
            wait(250,500)
            setcavebot(true)
            end
            end

            All rights to ottizy. Just added a few lines.


            I've added some waiting section to give the bot some time to actually execute what you wish. Please try.


            If you want the bot to pick up spears although there are monsters around you edit this line:


            if maround(7) == 0 then

            to this

            if maround(7) < 3 then
            Last edited by hurensohn; 14-06-2017, 06:27 AM.

            Comment


            • #7
              Hi guys, how to create a script, which attack a player skull or network with hmm? O sd? Would it be like a defense if someone attacks you to return the attack using hmm, explotion, or sd?

              Comment


              • #8
                Originally posted by hurensohn View Post

                local CONFIG = {
                maxspears = 10,
                hand = SLOT_LEFT, --SLOT_RIGHT for right hand
                movebodies = true,
                }

                local function tol(x)
                if math.abs(x) <= 0.001 then
                return 0
                elseif math.abs(1 - x) <= 0.001 then
                return 1
                end
                return x
                end

                local function negceil(x)
                if x < 0 then
                return math.floor(x)
                else
                return math.ceil(x)
                end
                end



                local function movebodies()

                local px = posx()
                local py = posy()
                local pz = posz()

                for r = 1, 5 do
                for d = 0, 2 * math.pi, ((2*math.pi)/(8*r)) do
                if math.abs(d - 2*math.pi) <= 0.001 then
                break
                end
                local x = negceil(tol(math.cos(d)) * r) + posx()
                local y = negceil(tol(math.sin(d)) * r) + posy()
                if isitemontile('spear', x, y, pz) then
                settargeting(false)
                setcavebot(false)
                if walk(x, y, pz, WALKER_REACH) then
                while true do
                local item = gettopuseitem(x, y, pz)
                if item.id == 0 or item.id == itemid('spear') or (posx() == x and posy() == y) or posz() ~= pz then
                return
                end
                item:move(ground(posx(), posy(), pz))
                wait(500, 600)
                end
                end
                end
                end
                end
                end

                local function pickup()
                local spear = finditem('spear', false, false, true)
                if spear.id ~= 0 then
                spear:move(slot(SLOT_LEFT))
                end
                end

                auto(200)
                local hand = getslotitem(CONFIG.hand)
                if (hand.id == itemid('spear') or hand.id == 0) and hand.count < CONFIG.maxspears then
                if CONFIG.movebodies then
                if maround(7) == 0 then
                movebodies()
                wait(500, 700)
                end
                pickup()
                wait(250,500)
                settargeting(true)
                wait(250,500)
                setcavebot(true)
                else
                pickup()
                wait(250,500)
                settargeting(true)
                wait(250,500)
                setcavebot(true)
                end
                end

                All rights to ottizy. Just added a few lines.


                I've added some waiting section to give the bot some time to actually execute what you wish. Please try.


                If you want the bot to pick up spears although there are monsters around you edit this line:


                if maround(7) == 0 then

                to this

                if maround(7) < 3 then
                now works !!! omg, thx so much

                Comment


                • #9
                  You are welcome. Glad to see that it works now

                  Comment


                  • #10
                    can u do a script to open custom Holes with shovel and use Rope on them too?

                    Comment


                    • #11
                      I need hotkey to use life fluid with less x life
                      id life fluid : 2006

                      Comment


                      • #12
                        Originally posted by nyaffetse View Post
                        can u do a script to open custom Holes with shovel and use Rope on them too?
                        I will need the IDs of the tiles then.

                        Comment


                        • #13
                          Originally posted by julio View Post
                          I need hotkey to use life fluid with less x life
                          id life fluid : 2006
                          what you need is not a hotkey. You need a script which has an automatism to check your health here and there.
                          Currently using Runes or Fluids via script is not possible except with the Healing Section.

                          Comment


                          • #14
                            Hello,
                            Sorry to interrupt

                            Originally posted by hurensohn View Post
                            Currently using Runes or Fluids via script is not possible except with the Healing Section.
                            NOT true.
                            Life fluid hotkey:

                            --lifefluid

                            local function drinklifefluid()
                            for k, v in pairs(getcontainers()) do
                            for i, j in pairs(v.items) do
                            if j.id == 2006 and j.count == 2 then
                            useitemon(j.id, container(v.index, j.slot), getid(), ground(posx(), posy(), posz()), j.stackpos, getself().stackpos)
                            return
                            end
                            end
                            end
                            end

                            drinklifefluid()
                            I can try to help you with scripts only if you're willing to show at least minimum effort in cooperation.
                            If you are looking for the ready script, I'm willing to do that for legacy cash.
                            I'm trying to avoid PvP scripts, as I find them more than unhealthy in this game.

                            Comment


                            • #15
                              @ochmar
                              Thanks !!!

                              Comment

                              Working...
                              X