bparty Posted July 16, 2013 Share Posted July 16, 2013 (edited) EYE DONT KNOW! going to test it out in my plank making script now! gets stuck at 4th node heres my path if you notice anything wrong =/ private int[][] path1 = new int[][] { { 3254, 3424 }, { 3266, 3427 }, { 3278, 3429 }, { 3287, 3440 }, {3288 ,3445}, {3290 ,3450}, { 3292, 32452 }, { 3299, 3479 }, { 3302, 3490 }}; I fixed my path I think, but now it gets stuck on 3rd node =/ private int[][] path1 = new int[][] { { 3254, 3424 }, { 3266, 3427 }, { 3275, 3429 }, {3283,3435}, { 3287, 3440 }, {3290 ,3450},{ 3292, 3460 }, { 3299, 3467 }, { 3299, 3475 },{ 3300, 3483 }, { 3302, 3490 }}; Edited July 17, 2013 by bparty Link to comment Share on other sites More sharing options...
Joseph Posted July 16, 2013 Share Posted July 16, 2013 Node 4: I've notice from node 3 to 4 your "Y" are kinda a far distinct from one another 3429 to 3440 it's kinda a big gap. Try a short distance. PLUS Node 7: You have to many numbers in your "Y" from the looks of your number I think you were trying to type "3452". That's all I've notice Link to comment Share on other sites More sharing options...
bparty Posted July 16, 2013 Share Posted July 16, 2013 rofl will try out, I guess I was tried when I typed these numbers XD Link to comment Share on other sites More sharing options...
bparty Posted July 17, 2013 Share Posted July 17, 2013 I fixed my path I think, but now it gets stuck on 3rd node =/ private int[][] path1 = new int[][] { { 3254, 3424 }, { 3266, 3427 }, { 3275, 3429 }, {3283,3435}, { 3287, 3440 }, {3290 ,3450},{ 3292, 3460 }, { 3299, 3467 }, { 3299, 3475 },{ 3300, 3483 }, { 3302, 3490 }}; Link to comment Share on other sites More sharing options...
danieldaniel Posted July 17, 2013 Share Posted July 17, 2013 very nice of you Link to comment Share on other sites More sharing options...
bparty Posted July 17, 2013 Share Posted July 17, 2013 Yes, I solved my problem! I've been needing something like this and it does work completely flawless THANKS SO MUCH! Link to comment Share on other sites More sharing options...
Confused Posted July 17, 2013 Share Posted July 17, 2013 Hello. How can I find the ID's? Link to comment Share on other sites More sharing options...
GoldenGates Posted July 17, 2013 Share Posted July 17, 2013 Good job, but it could've been written simpler. And by convention, is it not supposed to be walkAlongPath? Link to comment Share on other sites More sharing options...
Gildarts Posted July 23, 2013 Share Posted July 23, 2013 Thanks a ton for this Divine. Link to comment Share on other sites More sharing options...
Divine Posted July 28, 2013 Author Share Posted July 28, 2013 5th edit: Is there a debug to draw the path onscreen? There is not in this specific code. This doesn't handle building paths though, this makes the character walk to the path you create yourself. Link to comment Share on other sites More sharing options...
SavageNerdz Posted July 28, 2013 Share Posted July 28, 2013 Hey Divine, any chance of you adding in a running option? Or possibly making it detect when to run? Link to comment Share on other sites More sharing options...
Th3 Posted July 28, 2013 Share Posted July 28, 2013 Hey Divine, any chance of you adding in a running option? Or possibly making it detect when to run? if (this.client.getRunEnergy() > 30) { setRunning(true); } Link to comment Share on other sites More sharing options...
NxJr Posted July 28, 2013 Share Posted July 28, 2013 Hey Divine, any chance of you adding in a running option? Or possibly making it detect when to run? if (this.client.getRunEnergy() > 30) { setRunning(true); } if (this.client.getRunEnergy() > 30 && !isRunning()) { setRunning(true); } Link to comment Share on other sites More sharing options...
TheAnswer Posted July 29, 2013 Share Posted July 29, 2013 Thanks for this Link to comment Share on other sites More sharing options...
hero3128 Posted July 31, 2013 Share Posted July 31, 2013 It's nice but for somereason it gets stuck sometimes. Code im using Stuck at: [iNFO ][07/31/13 02:57:45 AM]: Walking to node:1 Partial Path: private int[][] testPath = new int[][]{{2725, 3492}, {2718, 3485}, {2716, 3485}, {2709, 3485}, {2703, 3485}, {2701, 3485}, Any idea why? It gets to the directed spot but never moves again Link to comment Share on other sites More sharing options...