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 Jul 6, 2016 22:54:01 GMT
Paste into Hotkeys > Persistent
set $1T 0 | set $2T 0 auto 1 listas '1BL' | if [$posx == 295 && $posy == 2013] {turnn | set $1T 1} auto 1 listas '1TL' | if [$posx == 295 && $posy == 2003] {turne} auto 1 listas '2TL' | if [$posx == 296 && $posy == 2003] {turns} auto 1 listas '2BL' | if [$1T == 1 && $posx == 296 && $posy == 2013] {turne} auto 1 listas '3BL' | if [$1T == 1 && $posx == 297 && $posy == 2013] {turnn} auto 1 listas '3TL' | if [$posx == 297 && $posy == 2003] {turne} auto 1 listas '4TL' | if [$posx == 298 && $posy == 2003] {turns} auto 1 listas '4BL' | if [$1T == 1 && $posx == 298 && $posy == 2013] {turne} auto 1 listas '5BL' | if [$1T == 1 && $posx == 299 && $posy == 2013] {turnn} auto 1 listas '5TL' | if [$posx == 299 && $posy == 2003] {turne} auto 1 listas '6TL' | if [$posx == 300 && $posy == 2003] {turns} auto 1 listas '6BL' | if [$1T == 1 && $posx == 300 && $posy == 2013] {turne} auto 1 listas '7BL' | if [$1T == 1 && $posx == 301 && $posy == 2013] {turnn} auto 1 listas '7TL' | if [$posx == 301 && $posy == 2003] {turne} auto 1 listas '8TL' | if [$posx == 302 && $posy == 2003] {turns} auto 1 listas '8BL' | if [$1T == 1 && $posx == 302 && $posy == 2013] {turne} auto 1 listas '9BL' | if [$1T == 1 && $posx == 303 && $posy == 2013] {turnn} auto 1 listas '9TL' | if [$posx == 303 && $posy == 2003] {turne} auto 1 listas '10TL' | if [$2T == 0 && $posx == 304 && $posy == 2003] {turns} auto 1 listas '10BL' | if [$1T == 1 && $posx == 304 && $posy == 2013] {turne} auto 1 listas '11BL' | if [$1T == 1 && $posx == 305 && $posy == 2013] {turnn} auto 1 listas '11TL' | if [$posx == 305 && $posy == 2003] {turnw | set $2T 1 | set $1T 0} auto 1 listas '1BKTL' | if [$2T == 1 && $posx == 304 && $posy == 2003] {turns} auto 1 listas '1BKBL' | if [$2T == 1 && $posx == 304 && $posy == 2013] {turnw | set $1T 0 | set $2T 0}
All you have to do is run it, and start a game of snake, bot will play it.
|
|
noxxarn
New Member
Posts: 3 Likes: 0
Currently Offline
Last Online: Oct 12, 2017 23:50:53 GMT
View Profile
Registered On: Jul 12, 2016 20:06:24 GMT
|
Snake
Jul 12, 2016 21:15:09 GMT
Post by noxxarn on Jul 12, 2016 21:15:09 GMT
Is it possible to make it go in another order or make it function better? Right now it can't get more than like 21 points because the order he walks in so when he turns left he will walk into himself. and sometimes it just randomly dies but that might be due to me not having the client in focus. If It's possible it would be awesome if you could make it identify the sqm and walk to it in a smart way. I made a paint picture showing how it could be made to work after 21 points. My paint skills aren't what it once used to be. The first picture (the left one) shows how it currently is working and how it dies once it reaches a x amount of points. With the second picture design it would not hit itself and would allow us to make alot more cash. Nice script anyway, thanks for sharing, I've used it alot!
|
|
|
Snake
Jul 13, 2016 15:20:41 GMT
Post by Darth Maul on Jul 13, 2016 15:20:41 GMT
This is how I'd edit the above script to solve your problem noxxarn: set $topleftx '295' | set $toplefty '2003' | set $ysize '10' set $label 'None' | set $lap '0'
auto 1 listas '$label Currently on lap: $lap'
auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 1. [$posx], [$posy], [$posz].' | inc $lap} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 2. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 2. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+2) && $posy == ($toplefty+1)] {turns | set $label '(Turning South) - Top Row, Column 3. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+2) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 3. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+3) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 4. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+3) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 4. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+4) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 5. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+4) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 5. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+5) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North)- Bottom Row, Column 6. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+5) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 6. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 7. [$posx], [$posy], [$posz].L'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 7. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+7) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 8. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+7) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 8. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+8) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 9. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+8) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 9. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 10. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty)] {turnw | set $label '(Turning West)- Top Row, Column 10. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty)] {turns | set $label '(Turning North) - Top Row, Column 1. [$posx], [$posy], [$posz].'}
(here's a picture of how it should work, I liked how you drew yours so I'll use the same layout ) I haven't tested it, so there might be a typo/bug.
|
|
|
Snake
Jul 13, 2016 16:06:28 GMT
Post by Kai on Jul 13, 2016 16:06:28 GMT
This is how I'd edit the above script to solve your problem noxxarn : set $topleftx '295' | set $toplefty '2003' | set $ysize '10'
auto 1 listas '1BL' | if [$posx == ($topleftx) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '2BL' | if [$posx == ($topleftx+1) && $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '2TL' | if [$posx == ($topleftx+1) && $posy == ($toplefty+1)] {turne} auto 1 listas '3TL' | if [$posx == ($topleftx+2) && $posy == ($toplefty+1)] {turns} auto 1 listas '3BL' | if [$posx == ($topleftx+2) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '4BL' | if [$posx == ($topleftx+3) && $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '4TL' | if [$posx == ($topleftx+3) && $posy == ($toplefty+1)] {turne} auto 1 listas '5TL' | if [$posx == ($topleftx+4) && $posy == ($toplefty+1)] {turns} auto 1 listas '5BL' | if [$posx == ($topleftx+4) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '6BL' | if [$posx == ($topleftx+5) && $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '6TL' | if [$posx == ($topleftx+5) && $posy == ($toplefty+1)] {turne} auto 1 listas '7TL' | if [$posx == ($topleftx+6) && $posy == ($toplefty+1)] {turns} auto 1 listas '7BL' | if [$posx == ($topleftx+6) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '8BL' | if [$posx == ($topleftx+7) && $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '8TL' | if [$posx == ($topleftx+7) && $posy == ($toplefty+1)] {turne} auto 1 listas '9TL' | if [$posx == ($topleftx+8) && $posy == ($toplefty+1)] {turns} auto 1 listas '9BL' | if [$posx == ($topleftx+8) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '10BL' | if [$posx == ($topleftx+9)&& $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '10TL' | if [$posx == ($topleftx+9)&& $posy == ($toplefty+1)] {turne} auto 1 listas '11BL' | if [$posx == ($topleftx+10)&& $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '11TL' | if [$posx == ($topleftx+10)&& $posy == ($toplefty)] {turnw} auto 1 listas '1BKTL' | if [$posx == ($topleftx) && $posy == ($toplefty)] {turns} (here's a picture of how it should work, I liked how you drew yours so I'll use the same layout ) I haven't tested it, so there might be a typo/bug. BUgged at the last lane in the east.
|
|
|
Snake
Jul 14, 2016 6:51:33 GMT
Post by Darth Maul on Jul 14, 2016 6:51:33 GMT
This is how I'd edit the above script to solve your problem noxxarn : set $topleftx '295' | set $toplefty '2003' | set $ysize '10'
auto 1 listas '1BL' | if [$posx == ($topleftx) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '2BL' | if [$posx == ($topleftx+1) && $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '2TL' | if [$posx == ($topleftx+1) && $posy == ($toplefty+1)] {turne} auto 1 listas '3TL' | if [$posx == ($topleftx+2) && $posy == ($toplefty+1)] {turns} auto 1 listas '3BL' | if [$posx == ($topleftx+2) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '4BL' | if [$posx == ($topleftx+3) && $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '4TL' | if [$posx == ($topleftx+3) && $posy == ($toplefty+1)] {turne} auto 1 listas '5TL' | if [$posx == ($topleftx+4) && $posy == ($toplefty+1)] {turns} auto 1 listas '5BL' | if [$posx == ($topleftx+4) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '6BL' | if [$posx == ($topleftx+5) && $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '6TL' | if [$posx == ($topleftx+5) && $posy == ($toplefty+1)] {turne} auto 1 listas '7TL' | if [$posx == ($topleftx+6) && $posy == ($toplefty+1)] {turns} auto 1 listas '7BL' | if [$posx == ($topleftx+6) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '8BL' | if [$posx == ($topleftx+7) && $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '8TL' | if [$posx == ($topleftx+7) && $posy == ($toplefty+1)] {turne} auto 1 listas '9TL' | if [$posx == ($topleftx+8) && $posy == ($toplefty+1)] {turns} auto 1 listas '9BL' | if [$posx == ($topleftx+8) && $posy == ($toplefty+$ysize)] {turne} auto 1 listas '10BL' | if [$posx == ($topleftx+9)&& $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '10TL' | if [$posx == ($topleftx+9)&& $posy == ($toplefty+1)] {turne} auto 1 listas '11BL' | if [$posx == ($topleftx+10)&& $posy == ($toplefty+$ysize)] {turnn} auto 1 listas '11TL' | if [$posx == ($topleftx+10)&& $posy == ($toplefty)] {turnw} auto 1 listas '1BKTL' | if [$posx == ($topleftx) && $posy == ($toplefty)] {turns} (here's a picture of how it should work, I liked how you drew yours so I'll use the same layout ) I haven't tested it, so there might be a typo/bug. BUgged at the last lane in the east. I think I fixed the bug. I also added in a way for the player to see what the bot is doing after reaching each waypoint, and a lap counter. Let me know if it's still bugged. set $topleftx '295' | set $toplefty '2003' | set $ysize '10' set $label 'None' | set $lap '0'
auto 1 listas '$label Currently on lap: $lap'
auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 1. [$posx], [$posy], [$posz].' | inc $lap} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 2. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 2. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+2) && $posy == ($toplefty+1)] {turns | set $label '(Turning South) - Top Row, Column 3. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+2) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 3. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+3) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 4. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+3) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 4. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+4) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 5. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+4) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 5. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+5) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North)- Bottom Row, Column 6. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+5) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 6. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 7. [$posx], [$posy], [$posz].L'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 7. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+7) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 8. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+7) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 8. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+8) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 9. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+8) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 9. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 10. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty)] {turnw | set $label '(Turning West)- Top Row, Column 10. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty)] {turns | set $label '(Turning North) - Top Row, Column 1. [$posx], [$posy], [$posz].'}
|
|
noxxarn
New Member
Posts: 3 Likes: 0
Currently Offline
Last Online: Oct 12, 2017 23:50:53 GMT
View Profile
Registered On: Jul 12, 2016 20:06:24 GMT
|
Snake
Jul 14, 2016 16:42:01 GMT
Post by noxxarn on Jul 14, 2016 16:42:01 GMT
This is how I'd edit the above script to solve your problem noxxarn : set $topleftx '295' | set $toplefty '2003' | set $ysize '10' set $label 'None' | set $lap '0'
auto 1 listas '$label Currently on lap: $lap'
auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 1. [$posx], [$posy], [$posz].' | inc $lap} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 2. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 2. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+2) && $posy == ($toplefty+1)] {turns | set $label '(Turning South) - Top Row, Column 3. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+2) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 3. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+3) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 4. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+3) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 4. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+4) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 5. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+4) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 5. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+5) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North)- Bottom Row, Column 6. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+5) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 6. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 7. [$posx], [$posy], [$posz].L'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 7. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+7) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 8. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+7) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 8. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+8) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 9. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+8) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 9. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 10. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty)] {turnw | set $label '(Turning West)- Top Row, Column 10. [$posx], [$posy], [$posz].'} auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty)] {turns | set $label '(Turning North) - Top Row, Column 1. [$posx], [$posy], [$posz].'}
(here's a picture of how it should work, I liked how you drew yours so I'll use the same layout ) I haven't tested it, so there might be a typo/bug. It could work perfectly, expect the room is 11x11 and not 10x10 like on your picture, so when it goes up like your picture there's one last sqm row on the east side. I do not know how to fix that. That makes it all harder as we have a odd number we can't get every sqm in one lap. Currently it moves like lap A. The only thing I can figure out is to have it do lap A first, and then lap B, covering all SQM's after 2 laps.
|
|
|
Snake
Jul 14, 2016 18:07:15 GMT
Post by Kai on Jul 14, 2016 18:07:15 GMT
my version Snake 2.elfc (4.58 KB) auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty+$ysize)] {turne | set $label '1'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+$ysize)] {turnn | set $label '2'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+9)] {turnw | set $label '3'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+9)] {turnn | set $label '4'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+8)] {turne | set $label '5'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+8)] {turnn | set $label '6'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+7)] {turnw | set $label '7'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+7)] {turnn | set $label '8'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+6)] {turne | set $label '9'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+6)] {turnn | set $label '10'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+5)] {turnw | set $label '11'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+5)] {turnn | set $label '12'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+4)] {turne | set $label '13'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+4)] {turnn | set $label '14'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+3)] {turnw | set $label '15'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+3)] {turnn | set $label '16'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+2)] {turne | set $label '17'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+2)] {turnn | set $label '18'} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty+1)] {if [$go == 0] turnw | if [$go == 1] turnn | set $label '19' | {wait 2000 | set $go 1}} auto 1 | if [$posx == ($topleftx+10) && $posy == ($toplefty)] {turnw | set $label '20 | {wait 2000 | set $go 0}} auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty+1)] {turns | set $label '21'} auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty)] {turns | set $label '22'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+$ysize)] {turne | set $label '23'}
auto 1 | if [$posx == 301 && $posy == 2020 ] {moven} auto 1 | if [$posx == 301 && $posy == 2019 ] {moven} auto 1 | if [$posx == 301 && $posy == 2018 ] {moven} auto 1 | if [$posx == 301 && $posy == 2017 ] {moven} auto 1 | if [$posx == 301 && $posy == 2016 ] {moven} auto 1 | if [$posx == 301 && $posy == 2015 ] {moven} auto 1 | if [$posx == 32345 && $posy == 32230 ] {moves} auto 1 | if [$posx == 32239 && $posy == 32369 ] {moveto 32345 32230 7} auto 1 | if [$posx == 31869 && $posy == 32239 ] {moveto 31882 32244 6} auto 1 | if [$posx == 31869 && $posy == 32242 ] {moveto 31882 32244 6} auto 1 | if [$posx == 31869 && $posy == 32241 ] {moveto 31882 32244 6} auto 1 | if [$posx == 31882 && $posy == 32244 ] {moves} auto 1 | if [$posx == 31882 && $posy == 32246 ] {moveto 31902 32235 7} auto 1 | if [$posx == 31882 && $posy == 32247 ] {moveto 31902 32235 7} auto 1 | if [$posx == 31882 && $posy == 32248 ] {moveto 31902 32235 7} auto 1 | if [$posx == 31902 && $posy == 32235 ] {moven} auto 1 | if [$posx == 297 && $posy == 2021 ] {moveto 301 2020 8} auto 1 | if [$posx == 297 && $posy == 2020 ] {moveto 301 2020 8} auto 1 | if [$posx == 297 && $posy == 2019 ] {moveto 301 2020 8} auto 1 | if [$posx == 297 && $posy == 2018 ] {moveto 301 2020 8}
set $topleftx '295' | set $toplefty '2003' | set $ysize '10' set $label 'None' | set $lap '0'
auto 1 listas 'Label: $label Go: $go' auto 1 listas '$posx $posy $posz'
|
|
|
Snake
Jul 15, 2016 3:35:14 GMT
Post by Darth Maul on Jul 15, 2016 3:35:14 GMT
Well shoot, I didn't know it was 11x11.. Let me see what I can do.
|
|
|
Snake
Jul 15, 2016 4:53:57 GMT
Post by Darth Maul on Jul 15, 2016 4:53:57 GMT
Useing some of the above code, and images, I think I have something that should work. There's probably bugs, let me know when you find one. CODE: set $topleftx '295' | set $toplefty '2003' | set $ysize '10' set $label 'None' | set $lap '0'
auto 1 listas '$label Currently on lap: $lap' auto 1 listas '[$posx], [$posy], [$posz].'
auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 1.' | inc $lap} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 2.'} auto 1 | if [$posx == ($topleftx+1) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 2.'} auto 1 | if [$posx == ($topleftx+2) && $posy == ($toplefty+1)] {turns | set $label '(Turning South) - Top Row, Column 3.'} auto 1 | if [$posx == ($topleftx+2) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 3.'} auto 1 | if [$posx == ($topleftx+3) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 4.'} auto 1 | if [$posx == ($topleftx+3) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 4.'} auto 1 | if [$posx == ($topleftx+4) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 5.'} auto 1 | if [$posx == ($topleftx+4) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 5.'} auto 1 | if [$posx == ($topleftx+5) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North)- Bottom Row, Column 6.'} auto 1 | if [$posx == ($topleftx+5) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 6.'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 7.'} auto 1 | if [$posx == ($topleftx+6) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 7.'} auto 1 | if [$posx == ($topleftx+7) && $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Bottom Row, Column 8.'} auto 1 | if [$posx == ($topleftx+7) && $posy == ($toplefty+1)] {turne | set $label '(Turning East) - Top Row, Column 8.'} auto 1 | if [$posx == ($topleftx+8) && $posy == ($toplefty+1)] {turns | set $label '(Turning South)- Top Row, Column 9.'} auto 1 | if [$posx == ($topleftx+8) && $posy == ($toplefty+$ysize)] {turne | set $label '(Turning East) - Bottom Row, Column 9.'}
auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+$ysize)] {turnn | set $label '(Turning North) - Row 11, Column 11.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-1])] {turnw | set $label '(Turning West)- Row 10, Column 11.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-1])] {turnn | set $label '(Turning North) - Row 10, Column 10.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-2])] {turne | set $label '(Turning East)- Row 9, Column 10.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-2]] {turnn | set $label '(Turning North) - Row 9, Column 11.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-3])] {turnw | set $label '(Turning West)- Row 8, Column 11.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-3])] {turnn | set $label '(Turning North) - Row 8, Column 10.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-4])] {turne | set $label '(Turning East)- Row 7, Column 10.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-4]] {turnn | set $label '(Turning North) - Row 7, Column 11.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-5])] {turnw | set $label '(Turning West)- Row 6, Column 11.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-5])] {turnn | set $label '(Turning North) - Row 6, Column 10.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-6])] {turne | set $label '(Turning East)- Row 5, Column 10.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-6]] {turnn | set $label '(Turning North) - Row 5, Column 11.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-7])] {turnw | set $label '(Turning West)- Row 4, Column 11.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-7])] {turnn | set $label '(Turning North) - Row 4, Column 10.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-8])] {turne | set $label '(Turning East)- Row 3, Column 10.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-8]] {turnn | set $label '(Turning North) - Row 3, Column 11.'} auto 1 | if [$posx == ($topleftx+10)&& $posy == ($toplefty+[$ysize-9])] {turnw | set $label '(Turning West)- Row 2, Column 11.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty+[$ysize-9])] {turnn | set $label '(Turning North) - Row 2, Column 10.'} auto 1 | if [$posx == ($topleftx+9)&& $posy == ($toplefty)] {turnw | set $label '(Turning West)- Top Row, Column 10.'} auto 1 | if [$posx == ($topleftx) && $posy == ($toplefty)] {turns | set $label '(Turning South) - Top Row, Column 1.'}
|
|
|
Snake
Jul 15, 2016 10:38:23 GMT
Post by Kai on Jul 15, 2016 10:38:23 GMT
its 10by 11
|
|
noxxarn
New Member
Posts: 3 Likes: 0
Currently Offline
Last Online: Oct 12, 2017 23:50:53 GMT
View Profile
Registered On: Jul 12, 2016 20:06:24 GMT
|
Snake
Oct 12, 2017 23:50:53 GMT
Post by noxxarn on Oct 12, 2017 23:50:53 GMT
Bump, tested all of these here, neither of them works correctly. Can anyone try to make a working version? I want to use it on Masiyah if that helps so you can test it yourself if you want to.
|
|
pmaearl
New Member
Posts: 2 Likes: 0
Currently Offline
Last Online: Apr 26, 2020 1:13:12 GMT
View Profile
Registered On: Mar 6, 2020 15:17:40 GMT
|
Snake
Apr 20, 2020 3:56:11 GMT
Post by pmaearl on Apr 20, 2020 3:56:11 GMT
Is there an updated version of this for 11x11 room?
|
|