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
script fix royal spear on hand
#1
Hello guys, can anyone help me fix this script, its not working..

local COUNT_PICKUP = { MIN = 6, MAX = 10 } -- The minimum amount to have in hand, script will sort a random value from this range. Once you reach that amount, it will move more from your bp to your hand.
local ROYAL_ID = 7037

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

local player_lhand = lhand()

if player_lhand.id == 0 or (player_lhand.id == ROYAL_ID and player_lhand.count <= RANDOM_COUNT) and itemcount(ROYAL_ID) > 0 then
    moveitems(ROYAL_ID, player_lhand, '0', 100)
    wait(300)
    RANDOM_COUNT = random(COUNT_PICKUP.MIN, COUNT_PICKUP.MAX)
end

Also, is it possible to move items with different ids from hand? i mean, sometimes it get stuck as they conjure bolts and it goes to the hand... maybe if i setup minimum different to 0 it might work properly
Reply

#2
Hello.

The problem is on how you are calling moveitems().
moveitems(ROYAL_ID, player_lhand, '0', 100)
The correct way is
moveitems(ROYAL_ID, 'lhand', '0', 100)

The same script fixed.
local COUNT_PICKUP = { MIN = 6, MAX = 10 } -- The minimum amount to have in hand, script will sort a random value from this range. Once you reach that amount, it will move more from your bp to your hand.
local ROYAL_ID = 7037

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

local player_lhand = lhand()

if player_lhand.id == 0 or (player_lhand.id == ROYAL_ID and player_lhand.count <= RANDOM_COUNT) and itemcount(ROYAL_ID) > 0 then
    moveitems(ROYAL_ID, 'lhand', '', 100)
    wait(300)
    RANDOM_COUNT = random(COUNT_PICKUP.MIN, COUNT_PICKUP.MAX)
end

This script will also move other items to backpack.
local COUNT_PICKUP = { MIN = 6, MAX = 10 } -- The minimum amount to have in hand, script will sort a random value from this range. Once you reach that amount, it will move more from your bp to your hand.
local ROYAL_ID = 7037

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

local player_lhand = lhand()

if player_lhand.id > 0 and player_lhand.id ~= ROYAL_ID then
    moveitems(player_lhand.id, '0', lhand', 100)
    wait(300)
    player_lhand = lhand()
end

if player_lhand.id == 0 or (player_lhand.id == ROYAL_ID and player_lhand.count <= RANDOM_COUNT) and itemcount(ROYAL_ID) > 0 then
    moveitems(ROYAL_ID, 'lhand', '', 100)
    wait(300)
    RANDOM_COUNT = random(COUNT_PICKUP.MIN, COUNT_PICKUP.MAX)
end
Reply

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

Arkilys, thanks a lot for the response. 
I had the same script and did that change wrongly.
But even with the correction the script doesn't work. Can you help me? Sent you video on discord
Reply

#4
Hello.

The script works, but I just checked your video and it seems the backpack that has the spears has probably a different index that you setup. You setup index 0 on the script...
I just fixed the script to pickup from ANY bp instead of just the one that has index 0.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016