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
Dropping items to dp issue
#1
Hey all, 

I am having a problem when trying to drop a specific rune to DP, it looks like it 'somewhat' works for GFB, although it wouldn't for SD. It reaches the locker, opens it, gets the depot chest and box 1, eventually stops and starts all over again.

I have noticed that this script inconsistently works for GFB, therefore I've added an flag to check if the character still holds any runes in the bp, if that's true drop them again, else continue with the next waypoint.


Code for reaching locker & the dropping the items, I've printed things out so the ID active_rune_id is definitely being passed.
wait(1000)
reachgrounditem('locker')
wait(1000)

openitem('locker')
wait(1000)

openitem('depot chest')
wait(1000)

openitem('depot box I')
wait(1000)

ACTIVE_RUNE_ID = getglobal('ACTIVE_RUNE_ID')
wait(1000)
moveitems(ACTIVE_RUNE_ID, 'depot box I')

And then the check just as follows:
ACTIVE_RUNE_ID = getglobal('ACTIVE_RUNE_ID')

wait(500)
if itemcount(ACTIVE_RUNE_ID, '', true) > 1 then
    gotolabel('dropRunesToDp')
end
Reply

#2
I could not really understand what's the problem, but I can't see why would not work for SDs specifically.
Notice moveitems works only for a single stack/slot. That means if have GFBs on 5 slots of your backpack then you need to call moveitems 5x times, even if you use count parameter on moveitems.
Reply

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

Thanks for your reply, yeah not sure either why it does not work for the SD's but it's fine for GFB's. 

Single slot - I see! What's the best way to handle that, should I use a different variable or just loop over it?
Reply

#4
Hello.

Make sure the SD id is correct for the server you are playing, sometimes server has custom runes even if they have the same "sprite".
Try using method #2 or #4:
|Only Registered members can see download links. | Click here to buy subscription or here to register.


Well, you can use itemcount() to make sure sure there still items to move, but also check moveitems() return value (it returns true/false) and develop something to check if the destination bp still has empty slots like using getcontainer().

Example:
while itemcount(ITEM_ID, 'blue backpack') > 0 do
  if not moveitems(ITEM_ID, 'red backpack', 'blue backpack', 100) then
    break
  end
end
Reply

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

All good now it looks like I;ve actually missed the ID, I have typed 3165 and it was supposed to be 3155!
Also I've altered the code slightly as I think there was a tiny syntax *missing break*

Here's the updated code:
while itemcount(ACTIVE_RUNE_ID, 'blue backpack') > 0 do
  if not moveitems(ACTIVE_RUNE_ID, 'red backpack', 'blue backpack', 100) then
    break
  end
end
Reply

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

Glad to hear that!
|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" />
Indeed, thanks for pointing out. I will fix on my post either.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016