mxC
Senior Member
Posts: 37 Likes: 14
Currently Offline
Last Online: Oct 20, 2023 22:25:43 GMT
View Profile
Registered On: Apr 28, 2016 11:30:06 GMT
|
Post by mxC on Apr 28, 2016 12:15:59 GMT
I've been trying to figure out how to make my MCs go downstairs at once, but i failed in the process, thats why im here asking for help. I use navigation to control my MCs, and i would like to send a command that makes all the character walk into a pre determined grounditemID (not xyz). i dont know if this is possible with elfbot, but i hope so. i've tried to use many many things , like trying to combine moveto with topitem.xyz = id. Do anybody have a light in the end of the tunnel? Thanks in advance.
|
|
Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on Apr 28, 2016 16:36:42 GMT
reachgrounditem ID
|
|
mxC
Senior Member
Posts: 37 Likes: 14
Currently Offline
Last Online: Oct 20, 2023 22:25:43 GMT
View Profile
Registered On: Apr 28, 2016 11:30:06 GMT
|
Post by mxC on Apr 28, 2016 23:51:43 GMT
Yeah, I do realize reachgrounditem will get close to the spot, but i want to make the character move into the stairs/hole, so i will need something more to follow the reachgrounditem.
|
|
Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on Apr 29, 2016 17:58:28 GMT
set $stair ID auto 1000 reachgrounditem $stair auto 1000 set $north $topitem.[$posx].[$posy-1].[$posz] | if [$north == $stair] { moven } auto 1000 set $northeast $topitem.[$posx+1].[$posy-1].[$posz] | if [$northeast == $stair] { movene } auto 1000 set $east $topitem.[$posx+1].[$posy].[$posz] | if [$east == $stair] { movee } auto 1000 set $southeast $topitem.[$posx+1].[$posy+1].[$posz] | if [$southeast == $stair] { movese } auto 1000 set $south $topitem.[$posx].[$posy+1].[$posz] | if [$south == $stair] { moves } auto 1000 set $southwest $topitem.[$posx-1].[$posy+1].[$posz] | if [$southwest == $stair] { movesw } auto 1000 set $west $topitem.[$posx-1].[$posy].[$posz] | if [$west == $stair] { movew } auto 1000 set $northwest $topitem.[$posx-1].[$posy-1].[$posz] | if [$northwest == $stair] { movenw }
|
|
mxC
Senior Member
Posts: 37 Likes: 14
Currently Offline
Last Online: Oct 20, 2023 22:25:43 GMT
View Profile
Registered On: Apr 28, 2016 11:30:06 GMT
|
Post by mxC on Apr 30, 2016 3:30:36 GMT
set $stair ID auto 1000 reachgrounditem $stair auto 1000 set $north $topitem.[$posx].[$posy-1].[$posz] | if [$north == $stair] { moven } auto 1000 set $northeast $topitem.[$posx+1].[$posy-1].[$posz] | if [$northeast == $stair] { movene } auto 1000 set $east $topitem.[$posx+1].[$posy].[$posz] | if [$east == $stair] { movee } auto 1000 set $southeast $topitem.[$posx+1].[$posy+1].[$posz] | if [$southeast == $stair] { movese } auto 1000 set $south $topitem.[$posx].[$posy+1].[$posz] | if [$south == $stair] { moves } auto 1000 set $southwest $topitem.[$posx-1].[$posy+1].[$posz] | if [$southwest == $stair] { movesw } auto 1000 set $west $topitem.[$posx-1].[$posy].[$posz] | if [$west == $stair] { movew } auto 1000 set $northwest $topitem.[$posx-1].[$posy-1].[$posz] | if [$northwest == $stair] { movenw } This looks cool bro, still wont solve my problem because i want the chars to move there without setting the exact direction to move, because it will use reachground item, and the MCs will be following each other, so they wont be in the same exact place.
|
|
Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on Apr 30, 2016 18:00:19 GMT
On leader use:
set $stair ID auto 1000 reachgrounditem $stair
auto 1000 set $north $topitem.[$posx].[$posy-1].[$posz] | if [$north == $stair] {navsay X:$posx | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | moven | navsay stairs}
auto 1000 set $northeast $topitem.[$posx+1].[$posy-1].[$posz] | if [$northeast == $stair] {navsay X:[$posx+1] | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | movene | navsay stairs}
auto 1000 set $east $topitem.[$posx+1].[$posy].[$posz] | if [$east == $stair] {navsay X:[$posx+1] | navsay Y:$posy | navsay Z:$posz | wait 1000 | movee | navsay stairs}
auto 1000 set $southeast $topitem.[$posx+1].[$posy+1].[$posz] | if [$southeast == $stair] {navsay X:[$posx+1] | navsay Y:[$posy+1] | navsay Z:$posz | wait 1000 | movese | navsay stairs}
auto 1000 set $south $topitem.[$posx].[$posy+1].[$posz] | if [$south == $stair] {navsay X:$posx | navsay Y:[$posy+1] | navsay Z:$posz}
auto 1000 set $southwest $topitem.[$posx-1].[$posy+1].[$posz] | if [$southwest == $stair] {navsay X:[$posx-1] | navsay Y:[$posy+1] | navsay Z:$posz | wait 1000 | movesw | navsay stairs}
auto 1000 set $west $topitem.[$posx-1].[$posy].[$posz] | if [$west == $stair] {navsay X:[$posx-1] | navsay Y:$posy | navsay Z:$posz | wait 1000 | movew | navsay stairs}
auto 1000 set $northwest $topitem.[$posx-1].[$posy-1].[$posz] | if [$northwest == $stair] {navsay X:[$posx-1] | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | navsay stairs}
On MCs use:
set $leader NAME auto 1 foreach 'newmessages' $1 if [$1.isnavi && $1.sender == $leader && $1.content ? 'X:'] {set $movex $cutstr.'$1.content'.3.5} auto 1 foreach 'newmessages' $2 if [$2.isnavi && $2.sender == $leader && $2.content ? 'Y:'] {set $movey $cutstr.'$2.content'.3.5} auto 1 foreach 'newmessages' $3 if [$3.isnavi && $3.sender == $leader && $3.content ? 'Z:'] {set $movez $cutstr.'$3.content'.3.2} auto 1 foreach 'newmessages' $4 if [$4.isnavi && $4.sender == $leader && $4.content ? 'stairs'] {moveto [$movex] [$movey] [$movez]}
Didn't test the script fully but the way it should work: >Leader reaches stairs >Gives X Y Z to mcs on navsay >MCs set the given X Y Z to $movex $movey $movez >Leader moves north,east,west etc depending on where the stairs are at and tells MCs to move >MCs move to $movex $movey $movez
|
|
mxC
Senior Member
Posts: 37 Likes: 14
Currently Offline
Last Online: Oct 20, 2023 22:25:43 GMT
View Profile
Registered On: Apr 28, 2016 11:30:06 GMT
|
Post by mxC on May 4, 2016 15:29:26 GMT
On leader use: set $stair ID auto 1000 reachgrounditem $stair
auto 1000 set $north $topitem.[$posx].[$posy-1].[$posz] | if [$north == $stair] {navsay X:$posx | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | moven | navsay stairs}
auto 1000 set $northeast $topitem.[$posx+1].[$posy-1].[$posz] | if [$northeast == $stair] {navsay X:[$posx+1] | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | movene | navsay stairs}
auto 1000 set $east $topitem.[$posx+1].[$posy].[$posz] | if [$east == $stair] {navsay X:[$posx+1] | navsay Y:$posy | navsay Z:$posz | wait 1000 | movee | navsay stairs}
auto 1000 set $southeast $topitem.[$posx+1].[$posy+1].[$posz] | if [$southeast == $stair] {navsay X:[$posx+1] | navsay Y:[$posy+1] | navsay Z:$posz | wait 1000 | movese | navsay stairs}
auto 1000 set $south $topitem.[$posx].[$posy+1].[$posz] | if [$south == $stair] {navsay X:$posx | navsay Y:[$posy+1] | navsay Z:$posz}
auto 1000 set $southwest $topitem.[$posx-1].[$posy+1].[$posz] | if [$southwest == $stair] {navsay X:[$posx-1] | navsay Y:[$posy+1] | navsay Z:$posz | wait 1000 | movesw | navsay stairs}
auto 1000 set $west $topitem.[$posx-1].[$posy].[$posz] | if [$west == $stair] {navsay X:[$posx-1] | navsay Y:$posy | navsay Z:$posz | wait 1000 | movew | navsay stairs}
auto 1000 set $northwest $topitem.[$posx-1].[$posy-1].[$posz] | if [$northwest == $stair] {navsay X:[$posx-1] | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | navsay stairs} On MCs use: set $leader NAME auto 1 foreach 'newmessages' $1 if [$1.isnavi && $1.sender == $leader && $1.content ? 'X:'] {set $movex $cutstr.'$1.content'.3.5} auto 1 foreach 'newmessages' $2 if [$2.isnavi && $2.sender == $leader && $2.content ? 'Y:'] {set $movey $cutstr.'$2.content'.3.5} auto 1 foreach 'newmessages' $3 if [$3.isnavi && $3.sender == $leader && $3.content ? 'Z:'] {set $movez $cutstr.'$3.content'.3.2} auto 1 foreach 'newmessages' $4 if [$4.isnavi && $4.sender == $leader && $4.content ? 'stairs'] {moveto [$movex] [$movey] [$movez]} Didn't test the script fully but the way it should work: >Leader reaches stairs >Gives X Y Z to mcs on navsay >MCs set the given X Y Z to $movex $movey $movez >Leader moves north,east,west etc depending on where the stairs are at and tells MCs to move >MCs move to $movex $movey $movez This is great, thanks a lot for your effort, still im looking for something to use moveto directly on a grounditem ID, but i guess its not possible
|
|
King Heinrich
Full Member
Respect your efforts, respect yourself. Self-respect leads to self-discipline.That's the real power.
Posts: 22 Likes: 5
Currently Offline
Last Online: Oct 14, 2021 12:15:28 GMT
View Profile
Registered On: Mar 23, 2016 21:03:57 GMT
|
Post by King Heinrich on May 14, 2016 18:02:16 GMT
Mr. Mexicows, I would like to tell you something that I probably used for my own MC's. The solution of your "Problem" is (MageBot), and because I'd used MageBot over 3yrs there's no problem with it, and what your asking for is in MageBot. What ever your Leader goes throw your MC's will follow you at the same second, you can go downstairs, upstairs, rope, walk, and so on. MageBot is epic for those things. ElfBot + MageBot is very powerfull for MC's and at the same time It's easier to control MC's.
http://www.tibiabrasil.net/2010/07/bots-do-tibia-860.html , (DOWNLOAD MAGEBOT + MB CRACK)
|
|
veidosenhordosaneis
New Member
Posts: 2 Likes: 0
Currently Offline
Last Online: Mar 27, 2022 6:29:56 GMT
View Profile
Registered On: Mar 24, 2022 19:51:32 GMT
|
Post by veidosenhordosaneis on Mar 27, 2022 6:29:56 GMT
On leader use: set $stair ID auto 1000 reachgrounditem $stair
auto 1000 set $north $topitem.[$posx].[$posy-1].[$posz] | if [$north == $stair] {navsay X:$posx | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | moven | navsay stairs}
auto 1000 set $northeast $topitem.[$posx+1].[$posy-1].[$posz] | if [$northeast == $stair] {navsay X:[$posx+1] | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | movene | navsay stairs}
auto 1000 set $east $topitem.[$posx+1].[$posy].[$posz] | if [$east == $stair] {navsay X:[$posx+1] | navsay Y:$posy | navsay Z:$posz | wait 1000 | movee | navsay stairs}
auto 1000 set $southeast $topitem.[$posx+1].[$posy+1].[$posz] | if [$southeast == $stair] {navsay X:[$posx+1] | navsay Y:[$posy+1] | navsay Z:$posz | wait 1000 | movese | navsay stairs}
auto 1000 set $south $topitem.[$posx].[$posy+1].[$posz] | if [$south == $stair] {navsay X:$posx | navsay Y:[$posy+1] | navsay Z:$posz}
auto 1000 set $southwest $topitem.[$posx-1].[$posy+1].[$posz] | if [$southwest == $stair] {navsay X:[$posx-1] | navsay Y:[$posy+1] | navsay Z:$posz | wait 1000 | movesw | navsay stairs}
auto 1000 set $west $topitem.[$posx-1].[$posy].[$posz] | if [$west == $stair] {navsay X:[$posx-1] | navsay Y:$posy | navsay Z:$posz | wait 1000 | movew | navsay stairs}
auto 1000 set $northwest $topitem.[$posx-1].[$posy-1].[$posz] | if [$northwest == $stair] {navsay X:[$posx-1] | navsay Y:[$posy-1] | navsay Z:$posz | wait 1000 | navsay stairs} On MCs use: set $leader NAME auto 1 foreach 'newmessages' $1 if [$1.isnavi && $1.sender == $leader && $1.content ? 'X:'] {set $movex $cutstr.'$1.content'.3.5} auto 1 foreach 'newmessages' $2 if [$2.isnavi && $2.sender == $leader && $2.content ? 'Y:'] {set $movey $cutstr.'$2.content'.3.5} auto 1 foreach 'newmessages' $3 if [$3.isnavi && $3.sender == $leader && $3.content ? 'Z:'] {set $movez $cutstr.'$3.content'.3.2} auto 1 foreach 'newmessages' $4 if [$4.isnavi && $4.sender == $leader && $4.content ? 'stairs'] {moveto [$movex] [$movey] [$movez]} Didn't test the script fully but the way it should work: >Leader reaches stairs >Gives X Y Z to mcs on navsay >MCs set the given X Y Z to $movex $movey $movez >Leader moves north,east,west etc depending on where the stairs are at and tells MCs to move >MCs move to $movex $movey $movez After some work on scripts, it works fine for me! Thank you!
|
|