joseamica
New Member
Posts: 2 Likes: 0
Currently Offline
Last Online: Oct 17, 2015 15:49:39 GMT
View Profile
Registered On: Oct 8, 2015 4:05:47 GMT
|
Post by joseamica on Oct 14, 2015 3:27:52 GMT
Hello, Ive seen u Darth Maul help other ppl, I want to know if u can help me. Its about private spawn, i got everything i need, but the thing is, i need a waypoint that when capacity is below 300 the knight will run to my house, and just drop the red backack (loot), and come back to position, and accpt invitation to private spawn Thanksss
|
|
|
Post by Darth Maul on Oct 16, 2015 4:35:04 GMT
Hey, I can't give you a complete cavebot file that you can use without knowing where your house is, and without having access to it. (to make the waypoints)
I can give you a few pieces of code that might help.
Label Name: Cap Checker Type: Action Hint: This would be placed above you 'hunting' waypoints. Code: if [$cap < 310] {gotolabel 'exit ps'} if [$cap >= 310] {gotolabel 'hunting'}
Label Name: exit ps Hint: This would be placed above your 'exit ps' waypoints, usually you'll have waypoints to walk towards a door, open it if it's closed, then walk towards, and through, the teleporter. At the end of these, (when you go through the tp), you'd have the 'walk to house' waypoints.
//to open doors, consider this code if [$topitem.$self.posx-1.$self.posy.$self.posz = 8352] usegrounditem 8352 wait 1000
Label Name: 'walk to house' Hint: This would be placed after the 'exit ps' waypoints, and would walk your charater into your house, infront of a chest. You might consider even disabling targeting during this phase.
//to change the status of your targeting consider this code settargeting on
stopattack settargeting off
Label Name: Deposit Loot Hint: This would deposit all your loot into the chest. Code:
//commented code //this would open the chest, only needs to be called once - change the position according to where the chest is (doesn't have to be a chest) usegroundxyz [$posx-1] $posy $posz //add a delay.. wait 500 //if I have more then 1 item with the id of 2867, move it into the chest (if you're not using a chest, change the 'Chest' to the container name). if [$itemcount.2867 >= 1] {moveitems 2867 'Chest'} //add more items here using the above as an example wait 500 //goto label 'ask invite', to return to ps gotolabel 'ask invite'
usegroundxyz [$posx-1] $posy $posz wait 500 if [$itemcount.2867 >= 1] {moveitems 2867 'Chest'} wait 500 gotolabel 'ask invite'
Label Name: ask invite Hint: Asks your PS invite for an invite, if no invite received, re-ask for an invite.
if [$lastmsg.content ? 'invited' && $curmsg.isprivate] {say '!ps accept' | wait 400 | gotolabel 'hunt'} | pm 'Darth Maul' 'tickle for an invite' | wait 2000 | gotolabel 'ask invite'
|
|
|
Post by Darth Maul on Oct 16, 2015 8:41:34 GMT
|
|