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
Take A arrow from ground
#1
Hello, i need code of a "ACTION" for open ground backpack, and take a arrows from de backpack... Thank's
Reply

#2
Hello.

I already posted a similar script on forums... I didn't tested this one, but it should work. It's not an advanced script because it will not open another backpacks looking for more arrows, but you can add that yourself. I think i already added such thing on another script that i already posted.

local GROUND_BP_LOCATION = { X = 12345, Y = 12345, Z = 6 } -- Ground bp location.
local GROUND_BP_NAME = 'green backpack' -- Ground bp name.

local AMMO_NAME = 'bolt' -- Ammo name.
local AMMO_MAX = 600 -- Max ammo that you carry.
local AMMO_BP = 'red backpack' -- Ammo bp name name.

if topitem(GROUND_BP_LOCATION.X, GROUND_BP_LOCATION.Y, GROUND_BP_LOCATION.Z).id == itemid(GROUND_BP_NAME) then

    local before_windowscount = windowcount()
    openitem(GROUND_BP_NAME, ground(GROUND_BP_LOCATION.X, GROUND_BP_LOCATION.Y, GROUND_BP_LOCATION.Z))
    wait(600, 1200)
    if windowcount() > before_windowscount then
        local CURRENT_COUNT = itemcount(AMMO_NAME, AMMO_BP, true)
        while CURRENT_COUNT < AMMO_MAX and itemcount(AMMO_NAME, GROUND_BP_NAME, true) > 0 do
            moveitems(AMMO_NAME, AMMO_BP, GROUND_BP_NAME, CURRENT_COUNT)
            wait(300, 500)
            CURRENT_COUNT = itemcount(AMMO_NAME, AMMO_BP, true)
        end
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016