-- Open backpack
local lootBp = getlootingdestination('rare')
local mainBp = getlootingdestination('main')
local supBP = getlootingdestination('supplies')
local goldBP = getlootingdestination('gold')
while windowcount() ~= 4 then
closewindows()
open(0, 'back')
resizewindows()
wait(700,1000)
openitem(goldBP, mainBp, 'opennew')
resizewindows()
wait(700,1000)
openitem(supBP, mainBp, 'opennew')
resizewindows()
wait(700,1000)
openitem(lootBp, mainBp, 'opennew')
resizewindows()
wait(700,1000)
end
07-25-2014, 12:33 AM
Raphael
Quote:
Originally Posted by Justx
error in Action script wptid:3:
[" while windowcount() ~= 4 then"]:Action: :9: 'do' expected near 'then'
-- Open backpack
local lootBp = getlootingdestination('rare')
local mainBp = getlootingdestination('main')
local supBP = getlootingdestination('supplies')
local goldBP = getlootingdestination('gold')
while windowcount() ~= 4 then
closewindows()
open(0, 'back')
resizewindows()
wait(700,1000)
openitem(goldBP, mainBp, 'opennew')
resizewindows()
wait(700,1000)
openitem(supBP, mainBp, 'opennew')
resizewindows()
wait(700,1000)
openitem(lootBp, mainBp, 'opennew')
resizewindows()
wait(700,1000)
end
My bad, it's while windowcount() ... do, not then.
07-25-2014, 12:41 AM
Justx
Th-th-thanks!
07-25-2014, 12:57 AM
Chiezuz
Quote:
Originally Posted by Raphael
Yes, enable looting on both chars.
Ya ended up just being a bug. One char had a loot bug twice and then i restarted the bot a third time and it worked!
Hey, could you help me create a house depositor? I'm using Bug's Goroma SS and the backpacks in depot get filled very quickly.
They way I used to do it on the other bot is I'd create 1 persistent that gets switched on in the house that makes sure that the char stands on the specific SQM before he starts throwing the loot.
Then in the cavebot there would be the action that has all the items and the coordinates of the house tiles of where to throw the loot. I tried converting the one I had from ibot, but it didn't seem to work.
Would be great if you could explain how to make one. Thanks
07-25-2014, 02:32 PM
Raphael
Quote:
Originally Posted by Kostek
Hey, could you help me create a house depositor? I'm using Bug's Goroma SS and the backpacks in depot get filled very quickly.
They way I used to do it on the other bot is I'd create 1 persistent that gets switched on in the house that makes sure that the char stands on the specific SQM before he starts throwing the loot.
Then in the cavebot there would be the action that has all the items and the coordinates of the house tiles of where to throw the loot. I tried converting the one I had from ibot, but it didn't seem to work.
Would be great if you could explain how to make one. Thanks
Make waypoints to house
Drop items using action
Don't use hotkeys for that. Ever.
That's all. Let me know if you need more specifics.
07-25-2014, 02:49 PM
Kostek
I do need more specifics since I'm not very good at writing those type of actions myself xD I need the basic of dropping items and where you put the coordinates of each sqm. The only thing I use the hotkey for is to ensure that the character was in the house, so that in case of a random bug or script messing up, he's not dropping the loot all over the place. If you gave me and example of what it should look like, I should be able to customize it for myself.
07-25-2014, 07:21 PM
Raphael
Quote:
Originally Posted by Kostek
I do need more specifics since I'm not very good at writing those type of actions myself xD I need the basic of dropping items and where you put the coordinates of each sqm. The only thing I use the hotkey for is to ensure that the character was in the house, so that in case of a random bug or script messing up, he's not dropping the loot all over the place. If you gave me and example of what it should look like, I should be able to customize it for myself.
local items = {'demon shield', 'giant sword'}
for _, v in ipairs(items) do
moveitems(v, ground($wptx, $wpty, $wptz))
end
This moves the items listed on the table to the location of the action waypoint. I'd recommend you have multiple action waypoints, one for each sqm.