|
Post by Darth Maul on Oct 16, 2015 8:38:00 GMT
Hey, This is a Cavebot file I created for someone. It picks up red backpacks from ANY PS and runs it back to his house, after he gets to his house it'll open a chest and open red bp after red bp until he gets to the last one then deposits the new bp. He then reenters PS to restart the process. Some of you might find it useful. You can download the file here: PS - Loot runner to house.elfc (2.25 KB)Here's a few code snippets: Action 000: setup variables set $invitename 'Darth Maul' set $invitemsg 'Tickle for an invite' set $bpid 2867
Action 002: recieve loot pos moveto [$self.posx+1] [$self.posy-1] $self.posz wait 1000
Action 003: pickup loot collectitems 'empty' $bpid | wait 500
if [$winitemcount.$bpid >= 1] {gotolabel 'Exit PS' | wait 500} if [$winitemcount.$bpid < 1] {gotolabel 'pickup loot'}
Action 004: Exit PS moveto [$self.posx-2] [$self.posy+3] [$self.posz] wait 1500 movew wait 1000
Waypoints (005 - 019) are walking towards your house.
Action 020: open chest usegroundxyz $posx [$posy-1] $posz wait 1000 gotolabel 'open red bps'
Action 021: open red bps if [$winitemcount.$bpid > 1] {openitem $bpid 1 'Chest' | openitem $bpid 1 'Red Backpack' | wait 500 | gotolabel 'open red bps'}
gotolabel 'deposit new bp'
Action 022: deposit new bp if [$itemcount.$bpid >= 1] {moveitems $bpid 'Red Backpack'} wait 1000 gotolabel 'Ask Invite'
Action 023: Ask Invite if [$self.posx = 32308 && $self.posy = 32231] {say '!ps accept'} if [$self.posx != 32308 || $self.posy != 32231] {wait 400 | gotolabel 'Hunt}
wait 400 pm '$invitename' '$invitemsg' | wait 2000 | gotolabel 'Ask Invite'
|
|
|
Post by Darth Maul on Oct 18, 2015 10:33:05 GMT
Bump, cause i lost this thread.. lol
|
|
Holy
New Member
Posts: 4 Likes: 0
Currently Offline
Last Online: Dec 11, 2022 7:33:19 GMT
View Profile
Registered On: Nov 2, 2015 23:18:44 GMT
|
Post by Holy on Nov 2, 2015 23:34:19 GMT
Can you Help me figure it out more into detail?
~Holy Vengance
|
|
|
Post by Darth Maul on Nov 3, 2015 3:39:47 GMT
Hey Holy, What don't you understand about it? Which parts should I explain?
|
|
Holy
New Member
Posts: 4 Likes: 0
Currently Offline
Last Online: Dec 11, 2022 7:33:19 GMT
View Profile
Registered On: Nov 2, 2015 23:18:44 GMT
|
Post by Holy on Nov 3, 2015 14:44:11 GMT
The parts that I dont understand is how I downloaded the script and tried to plug my info to it but I would have to try to change somethings and it wouldnt work :/
|
|
Holy
New Member
Posts: 4 Likes: 0
Currently Offline
Last Online: Dec 11, 2022 7:33:19 GMT
View Profile
Registered On: Nov 2, 2015 23:18:44 GMT
|
Post by Holy on Nov 3, 2015 14:44:55 GMT
Can you pm me on tibia sometime on how to set it up properly?
|
|
Santa
New Member
Posts: 1 Likes: 0
Currently Offline
Last Online: Nov 7, 2015 7:08:21 GMT
View Profile
Registered On: Oct 21, 2015 9:23:44 GMT
|
Post by Santa on Nov 7, 2015 6:00:34 GMT
Is there a script for the EK to throw the BP to the door?
Where is the "loot position"? Do I need to be standing next to the door, in the door, or what?
This will move the red backpacks into a red backpack (that is inside of the crate)? Shouldn't I just be using a BP of Holding?
So this: if there is more than 1 red backpack in the window, open the chest, open the red backpack inside of the chest? Confusing.. Is this position 32308-32231 inside of his house? And what is the label 'Hunt' supposed to be if it's blank, inactive or something?
|
|
|
Post by Darth Maul on Nov 7, 2015 7:08:25 GMT
Hello santa,Where is the "loot position"? Do I need to be standing next to the door, in the door, or what? The loot position can be anywhere you want it to be. You just need to change both the 'receive loot pos' moveto command to where you want to stand, and the 'exit ps' moveto command. The current positions are setup to be 2 tiles East of the teleporter, and 3 tiles North of it.
This will move the red backpacks into a red backpack (that is inside of the crate)? Shouldn't I just be using a BP of Holding? The bot moves red backpacks because it'll deposit each time it picks up a new red backpack from the ground. This is done because the PS Boss the player was hunting would drop red bps.
So this: if there is more than 1 red backpack in the window, open the chest, open the red backpack inside of the chest? Confusing.. It'll continually open the bps inside of the chest until it reaches no more. This was done so you would have unlimited storage and you wouldn't need to check if a bp had any space left in it.
Is this position 32308-32231 inside of his house? And what is the label 'Hunt' supposed to be if it's blank, inactive or something? The positions listed are the positions in front of the chest, inside the players house. It loops through trying to get invited to the ps. When it finally gets invited, and the bot accepts it, the players position will change so it continues to the hunt label. This label is at 'A 001: Hunt', near the top of the cavebot file. After it goes to this label it'll continue back from the start. [walk to the 'receive loot pos', then wait to pickup a red bp, after collecting bp leave ps, walk home, deposit loot, ask for invite, repeat].
Is there a script for the EK to throw the BP to the door? Of course, this is only the script for the player that's depositing the red backpacks. You do need another character that's inviting the player, using a script like this: elfbotscripts.com/thread/74/auto-invite-script-priv-activaction
You'll also need another character that's killing/looting the boss, he'll need a script that when opening a body will drag all items into the red bp of the boss, then throw that bp near the character using this script. I wasn't asked to make this portion of the script, I assume he already made something to perform this task.
This was released to show how certain functions can be performed, and if players wanted they could try and adapt it for there own use. It's not easily edited and adjustable for players that aren't familiar with elfbots labeling system, and scripting functions.
If you need anymore help just let me know.
|
|
eduard0
Junior Member
Posts: 9 Likes: 0
Currently Offline
Last Online: Dec 26, 2018 1:01:33 GMT
View Profile
Registered On: Dec 16, 2015 3:58:22 GMT
|
Post by eduard0 on Mar 5, 2016 0:02:07 GMT
Hey, Action 000: setup variables set $invitename 'Darth Maul' set $invitemsg 'Tickle for an invite' set $bpid 2867
Action 023: Ask Invite if [$self.posx = 32308 && $self.posy = 32231] {say '!ps accept'} if [$self.posx != 32308 || $self.posy != 32231] {wait 400 | gotolabel 'Hunt}
wait 400 pm '$invitename' '$invitemsg' | wait 2000 | gotolabel 'Ask Invite'
Hello Darth, i want to know why im having troubles with this?, im just using a diferent name and a diferent password and it doesnt work ;( i hope you can help me, thank you
|
|
|
Post by Darth Maul on Mar 6, 2016 4:54:41 GMT
|
|
willmey
Member
Posts: 11 Likes: 0
Currently Offline
Last Online: Jan 12, 2024 12:19:58 GMT
View Profile
Registered On: May 1, 2016 1:00:15 GMT
|
Post by willmey on May 16, 2016 15:59:46 GMT
Ey, What about the blocker throwing the loot to the door so the runner can take them items? How can I do that? And how to change collecting the red bps to the items as the bps dont drop anymore.
|
|
willmey
Member
Posts: 11 Likes: 0
Currently Offline
Last Online: Jan 12, 2024 12:19:58 GMT
View Profile
Registered On: May 1, 2016 1:00:15 GMT
|
Post by willmey on May 18, 2016 5:17:33 GMT
Can somebody help with instead of depositing RED BPS, how can I change that to deposit the items.
|
|
|
Post by Darth Maul on May 19, 2016 11:55:50 GMT
|
|