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
Move arrows to quiver
#1
Hello,

I need script which one is gonna move my volcanic arrows (id:5800).

1. So if amount of volcanic arrows in quiver is lower then 100, move another 100 from BLUE BACKPACK to QUIVER.
2. If amount of volcanic arrows in quiver is lower then 50 -> play alarm.

#Realera
Reply

#2
Hello.

I think this script gonna work.
local MIN_COUNT_RANGE = { MIN = 80, MAX = 100 } -- The minimum amount to have in QUIVER, script will sort a random value from this range. Once you reach that amount, it will move more from your bp to your QUIVER.
local MIN_COUNT_ALERT = 50 -- Player alert if ammo count in QUIVER is lower than this value.
local AMMO_QUIVER = 'quiver' -- Quiver
local AMMO_ID = 5800 -- Ammo id
local AMMO_BP = 'blue backpack' -- Container that has ammo to refill quiver.

if RANDOM_COUNT == nil then
    RANDOM_COUNT = random(MIN_COUNT_RANGE.MIN, MIN_COUNT_RANGE.MAX)
end

local ammoCount = itemcount(AMMO_ID, AMMO_QUIVER)
if ammoCount <= RANDOM_COUNT then
    moveitems(AMMO_ID, AMMO_QUIVER, AMMO_BP, 100)
    wait(300)
    RANDOM_COUNT = random(MIN_COUNT_RANGE.MIN, MIN_COUNT_RANGE.MAX)
    ammoCount = itemcount(AMMO_ID, AMMO_QUIVER)
end

if ammoCount < MIN_COUNT_ALERT then
    playsound('default')
    flashclient()
end
Reply

#3
@Arkilys


can i also ask for a script:

when player on screen remove bow from left hand slot and wear assassin star & MMS, when player is gone wait more 30 seconds and equip again bow.



Thank you in advance.
Reply

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

Hello.

I think this script will work.. You need to place the correct ids on variables.
local WEAPONS_BP = 'red backpack'
local BOW_ID = 1234 -- Bow id
local ASSASSIN_STAR_ID = 1234 -- Assassin star id
local SHIELD_ID = 1234 -- Shield id.
local UNEQUIP_TIME = 30 -- In seconds. How long after player leaves to unequip assassin star and shield.


if DETECTED_PLAYER_TIME == nil then
    DETECTED_PLAYER_TIME = 0
end

if paround() > 0 then
    local leftHand = lhand()
    if leftHand.id == BOW_ID then
        moveitems(BOW_ID, WEAPONS_BP, 'lhand')
        wait(500, 800)
        leftHand = lhand()
    end
    if leftHand.id == BOW_ID or leftHand.id == 0 then
        moveitems(ASSASSIN_STAR_ID, 'lhand', WEAPONS_BP, 100)
        wait(500, 800)
        leftHand = lhand()
    end
    local rightHand = rhand()
    if rightHand.id == 0 and leftHand.id ~= BOW_ID then
        moveitems(SHIELD_ID, 'rhand', WEAPONS_BP, 100)
        wait(500, 800)
    end
    DETECTED_PLAYER_TIME = runningtime()
elseif DETECTED_PLAYER_TIME ~= 0 and (runningtime() - DETECTED_PLAYER_TIME) >= UNEQUIP_TIME then
    local leftHand = lhand()
    if leftHand.id == ASSASSIN_STAR_ID then
        moveitems(ASSASSIN_STAR_ID, WEAPONS_BP, 'lhand', 100)
        wait(500, 800)
        leftHand = lhand()
    end
    
    local rightHand = rhand()
    if rightHand.id == SHIELD_ID then
        moveitems(SHIELD_ID, WEAPONS_BP, 'rhand', 100)
        wait(500, 800)
        rightHand = rhand()
    end

    if leftHand.id == 0 and rightHand.id == 0 then
        moveitems(BOW_ID, 'lhand', WEAPONS_BP)
        wait(500, 800)
        leftHand = lhand()
    end

    if leftHand.id == BOW_ID then
        DETECTED_PLAYER_TIME = 0
    end
end
Reply

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

#6
Hello.

I could not understand what you wrote and i'm not sure which script you are talking about, but if it's related to quiver then you just need to setup this variables:
local MIN_COUNT_RANGE = { MIN = 80, MAX = 100 } -- The minimum amount to have in QUIVER, script will sort a random value from this range. Once you reach that amount, it will move more from your bp to your QUIVER.
local MIN_COUNT_ALERT = 50 -- Player alert if ammo count in QUIVER is lower than this value.
local AMMO_QUIVER = 'quiver' -- Quiver
local AMMO_ID = 5800 -- Ammo id
local AMMO_BP = 'blue backpack' -- Container that has ammo to refill quiver.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016