triboww
New Member
Posts: 1 Likes: 0
Currently Offline
Last Online: Feb 17, 2022 17:12:51 GMT
View Profile
Registered On: Feb 11, 2022 22:09:12 GMT
|
Post by triboww on Feb 11, 2022 22:25:06 GMT
Hello Guys, I'm looking for this script long time so far, and i couldnt find one that works properly.
I'm trying to do a script to reach item on ground but i need this script only works after stop the cavebot. and after collect the item, the cavebot set on again.
i've already tried a lot of possibilities... like this... but didnt work.
auto 1000 if [reachgrounditem 2786] {statusmessage 'colletcting ground item' | setcavebot off | reachgrounditem 2786 | wait 2000 | end} | if [$caveboton == 0] {statusmessage 'BORA VOLTAR COM O CAVEBOT' | $caveboton | setcavebot on | wait 1000}
Please help me. You guys are my last Expentancy. I hope someone can help me.
Thank you so much in advance...
=)
|
|
Hiresk
Senior Member
Posts: 30 Likes: 3
Currently Offline
Last Online: Jan 25, 2024 5:58:41 GMT
View Profile
Registered On: Oct 1, 2022 4:09:16 GMT
|
Post by Hiresk on Oct 1, 2022 4:13:48 GMT
Quizás esto te sirva (no lo he testeado aun)
auto 1000 {dontlist} if [$rreachgrounditem == 1] {setcavebot off | statusmessage 'collecting ground item' | reachgrounditem 2786 | collectitems 'empty' 2786 | wait 2000 | setcavebot on | statusmessage 'BORA VOLTAR COM O CAVEBOT' | set $rreachgrounditem '0'}
en el cavebot antes de hacer la accion 'reachgrounditem' debes agregar una 'action' y escribes esto: set $rreachgrounditem '1' no hace falta hacer un $rreachgrounditem '0' ya que automáticamente se desactivara cuando se active
si quieres recogerlo desde una backpack especifica o tu mainbp, debes poner el nombre de la bp en donde dice 'empty'
|
|
Hiresk
Senior Member
Posts: 30 Likes: 3
Currently Offline
Last Online: Jan 25, 2024 5:58:41 GMT
View Profile
Registered On: Oct 1, 2022 4:09:16 GMT
|
Post by Hiresk on Aug 3, 2023 17:49:26 GMT
I didnt quite understand what you want, do you want an item detector on the floor?
{if [$reacheditem != 'ON'] {if [$topitem.$posx.$posy.$posz == 2786 || $topitem.($posx+1).$posy.$posz == 2786 || $topitem.($posx-1).$posy.$posz == 2786 || $topitem.$posx.($posy-1).$posz == 2786 || $topitem.$posx.($posy+1).$posz == 2786] {if [$topitem.($posx+1).($posy-1).$posz == 2786 || $topitem.($posx-1).($posy-1).$posz == 2786 || $topitem.($posx+1).($posy+1).$posz == 2786 || $topitem.($posx-1).($posy+1).$posz == 2786] {set $reacheditem 'ON'}}}}
{if [$reacheditem != 'OFF'] {if [$topitem.$posx.$posy.$posz != 2786 || $topitem.($posx+1).$posy.$posz != 2786 || $topitem.($posx-1).$posy.$posz != 2786 || $topitem.$posx.($posy-1).$posz != 2786 || $topitem.$posx.($posy+1).$posz != 2786] {if [$topitem.($posx+1).($posy-1).$posz != 2786 || $topitem.($posx-1).($posy-1).$posz != 2786 || $topitem.($posx+1).($posy+1).$posz != 2786 || $topitem.($posx-1).($posy+1).$posz != 2786] {reachgrounditem 2786 | setcavebot off | set $reacheditem 'OFF'}}}}
In case you simply want to use an item on the floor and activate cavebot you could simply use usegrounditem {itemid}
and when it disappears it will follow the cavebot to its normal path
|
|