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
Improved depositer+refiller
#11
Omg i feel so fucking stupid now. I thought it was enough just to have uhs inside the camouflage backpack. thats why i thought it might only work with "oldschool bps".
Im so sorry you have put so much time on this but im forever greatfull!
If i want to make another script for manas i assume i just change backpack colours and item id for manas?
Reply

#12
Well, that's not the script you develop.

But it's possible using this script then you just need to have a camouflage backpack on Locker. The script will reach locker, open locker, open the camouflage backpack and pickup uhs from there, up to 100 uh runes.
--rune
local RUNE_ID = 3160
local MAX_RUNES_COUNT = 100 -- Max. amount to carry on your character

--character
CHARACTER_RUNES_BP = 2869

--depot
DEPOT_RUNES_MAIN = 'camouflage backpack'

reachgrounditem('locker')
wait(500)

openitem('locker')
wait(800, 1200)

openitem(DEPOT_RUNES_MAIN, 'locker')
wait(800, 1200)

local remainingCount = MAX_RUNES_COUNT - itemcount(RUNE_ID, CHARACTER_RUNES_BP)
while remainingCount > 0 do
    if itemcount(RUNE_ID, DEPOT_RUNES_MAIN) >= 1 then
        moveitems(RUNE_ID, CHARACTER_RUNES_BP, DEPOT_RUNES_MAIN, remainingCount)
        wait(500, 800)
        remainingCount = MAX_RUNES_COUNT - itemcount(RUNE_ID, CHARACTER_RUNES_BP)
    else
        break
    end
end

if remainingCount > 0 then
    printerror('Could not find more rune on DEPOT_RUNES_MAIN.')
    playsound('default')
    flashclient()
    setsettings('Cavebot/Enabled', false)
end
Reply

#13
Great! And now i managed to get into more trouble and i honestly dont know how.
I decided to save all scripts into text documents. 
Then i made new waypoints(deleted all waypoints/actions) and when i get to the part when the bot it supposed to open locker-open loot bp(with nonstacked items) it closes locker and start to put things into locker instead. Yesterday it worked except that part with re-supply uhs but now instead it works to re-supply but wont even open locker/depot and start to deposit. This is the script im using from your thread "usefull scripts for cavebotting". And strangely the bot dont fill up first backpack instead it puts few items in each. If i would fill up locker with other items to make the locker opens up larger(showing 20 spaces) would it make it easier for the bot to deposit items?

local CHARACTER_LOOT_BP = 'backpack'

local DEPOSITER_LOOT_MAIN_BP = 'green backpack'
local DEPOSITER_LOOT_ITEMS_BP = 'green backpack'
local DEPOSITER_STACKED_BP = 'yellow parcel'

local ITEMS_LOOT = { 'battle shield', 'battle shield', 'dwarven shield' }
local ITEMS_STACKED = { 'bolt', 'hunting bolt' }



reachgrounditem('depot')
wait(500)
openitem('depot')
wait(1000)

if itemcount(DEPOSITER_LOOT_MAIN_BP, 'Locker') > 0 then

    local DEPOSITER_LOOT_WINCOUNT = windowcount(DEPOSITER_LOOT_MAIN_BP)

    openitem(DEPOSITER_LOOT_MAIN_BP, 'Locker')
    wait(1000)

    if windowcount(DEPOSITER_LOOT_MAIN_BP) > DEPOSITER_LOOT_WINCOUNT then

        if itemcount(DEPOSITER_LOOT_ITEMS_BP, DEPOSITER_LOOT_MAIN_BP) > 0 then

            clearlastonto()

            for i = 0, #ITEMS_LOOT do
                while itemcount(ITEMS_LOOT[i], CHARACTER_LOOT_BP) > 0 do
                    moveitemsonto(ITEMS_LOOT[i], DEPOSITER_LOOT_ITEMS_BP, getlastonto(), DEPOSITER_LOOT_MAIN_BP, CHARACTER_LOOT_BP, 100)
                    wait(500)
                end
            end

        end

        higherwindow(DEPOSITER_LOOT_MAIN_BP)
        wait(1000)

    end

end

if itemcount(DEPOSITER_STACKED_BP, 'Locker') > 0 then
    
    local DEPOSITER_STACKED_WINCOUNT = windowcount(DEPOSITER_STACKED_BP)

    openitem(DEPOSITER_STACKED_BP, 'Locker')
    wait(1000)

    if windowcount(DEPOSITER_STACKED_BP) > DEPOSITER_STACKED_WINCOUNT then

        stackitems(DEPOSITER_STACKED_BP, false)

        for i = 0, #ITEMS_STACKED do
            while itemcount(ITEMS_STACKED[i], CHARACTER_LOOT_BP) > 0 do

                moveitems(ITEMS_STACKED[i], DEPOSITER_STACKED_BP, CHARACTER_LOOT_BP, 100)
                wait(500)

            end
        end
        
    end

end
Reply

#14
I can't guess what's going on based on the script only, i'm afraid that you must debug somehow to find out which function may not be work properly OR if it's logic error/mistake.
An easy way to debug is by checking functions results/returns and/or adding "print()" around the script to find what's the path it's going. Example:
reachgrounditem('depot')
wait(500)
openitem('depot')
wait(1000)

if itemcount(DEPOSITER_LOOT_MAIN_BP, 'Locker') > 0 then
    print('001')
    local DEPOSITER_LOOT_WINCOUNT = windowcount(DEPOSITER_LOOT_MAIN_BP)

    openitem(DEPOSITER_LOOT_MAIN_BP, 'Locker')
    wait(1000)

    if windowcount(DEPOSITER_LOOT_MAIN_BP) > DEPOSITER_LOOT_WINCOUNT then
        print('002')
...
Reply

#15
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Okay, well i've tried that print thingy but doesnt show me anything (dont even know what its supposed to do) went thru the files if it was supposed to do some sort of print the moment he is supposed to do the next move but cant find anything
It i copy your script right of and change the backpack names but it wont even open the locker just moves up to it and go to next waypoint.
When i change second 'depot' to 'locker' it atleast open the depot but nothing happends except entering my stacked backpack.
I have even tried to run the script by console but nothing rly happends except these msg comes up
19:35:14 - LUA command sent.
19:35:18 - 001
19:35:20 - 002
Reply

#16
I finally made the loot work by removing stacked items and changed a thing(but still want it to work but cant make it on my own
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Sad" title="Sad" class="smilie smilie_8" /> i will still try and if i make it work ill post asap)
reachgrounditem('Depot')
wait(500)
openitem('Locker') <- used to be depot
wait(1000)

And i found your script of soft boots but where do i put it in the bot? LUA setup or is there any other place?
GREAT thanks for having such impressive patience with me and my emberrasing fails with seting up the bot.
Reply

#17
Avoid beam and avoid waves works only when you are reaching monster or getting away, not standing.
If you wanna stand on monsters diagonal then you must use Approach stance.

The script can be used anywhere that runs LUA script, but you must understand that each place you run LUA scripts works differently.
Cavebot Actions only runs the script when you go to that waypoint.
Persistents runs it from time to time.
|Only Registered members can see download links. | Click here to buy subscription or here to register.


In short, you should use on Persistents.

No problem mate... I don't mind helping, specially because you're trying to do it instead of just asking and asking.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />
Reply

#18
Sweet! Yeah im trying to browse thru the forums before im starting to ask questions that i could be finding around here.
For the moment my stacked issue is "solved" but another fix wich is your "drop loot inside container" (lootbp script) but i would rather have the depositer working instead but this will have to do until this mystery problem is solved.
I do have a question regarding your depositer script. It works, but maybe to 90% becouse it does not fill up each backpack to max(20 different items) instead it maybe maxes first backpack, 2 backpack gets 2-5 items and after a few tries it stops trying to deposit the selected items. Could my other mc's bot clients interfere with my hunting client? I dont know but solving this or adjusting the script might not be worth becouse maybe im the only one facing this problem.
But i have a question i wrote before but if i want to make the bot refill manas aswell, can i use the "UH refiller script" but just change some backpacks and and item ID's or is there maybe an script already for this on this forum?
And again, im very greatfull for with you helping and guiding me thru your bot!
Reply

#19
I just wanted you to know that i managed to make mana fluid refill by change item ID and so on and decided to post it so you and more have can get ahold of it! People just have to change the backpack and fluid ID so it fits them
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Smile" title="Smile" class="smilie smilie_1" />

--rune
local MANA_FLUID_ID = 5595
local MAX_MANA_FLUID_COUNT = 50 -- Max. amount to carry on your character

--character
CHARACTER_MANA_FLUID_BP = 2868

--depot
DEPOT_MANA_FLUID_MAIN = 'backpack'
DEPOT_MANA_FLUID_BP = 'backpack'

reachgrounditem('locker')
wait(500)

openitem('locker')
wait(800, 1200)

openitem(DEPOT_MANA_FLUID_MAIN, 'locker')
wait(800, 1200)

local flag = false
if itemcount(DEPOT_MANA_FLUID_BP, DEPOT_MANA_FLUID_MAIN) > 0 then
flag = true
openitem(DEPOT_MANA_FLUID_BP, DEPOT_MANA_FLUID_MAIN)
wait(800, 1200)

local remainingCount = MAX_MANA_FLUID_COUNT - itemcount(MANA_FLUID_ID, CHARACTER_MANA_FLUID_BP)
while remainingCount > 0 do
if itemcount(MANA_FLUID_ID, DEPOT_MANA_FLUID_BP) > 1 then
moveitems(MANA_FLUID_ID, CHARACTER_MANA_FLUID_BP, DEPOT_MANA_FLUID_BP, remainingCount)
wait(500, 800)
remainingCount = MAX_MANA_FLUID_COUNT - itemcount(MANA_FLUID_ID, CHARACTER_MANA_FLUID_BP)
else
higherwindow(DEPOT_MANA_FLUID_BP)
wait(800, 1200)
moveitems(DEPOT_MANA_FLUID_BP, ground(posx(), posy(), posz()), DEPOT_MANA_FLUID_MAIN, 1)
wait(800, 1200)

if itemcount(DEPOT_MANA_FLUID_BP, DEPOT_MANA_FLUID_MAIN) > 0 then
openitem(DEPOT_MANA_FLUID_BP, DEPOT_MANA_FLUID_MAIN)
wait(800, 1200)
else
flag = false
break
end
end
end
end

if flag == false then
printerror('Could not find more rune bps (DEPOT_RUNES_BP) on DEPOT_RUNES_MAIN.')
playsound('default')
flashclient()
setsettings('Cavebot/Enabled', false)
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016