iamreyne 4 Share Posted January 14, 2018 Here is the source to the "Lite" version of my plank processing script, PlankBuddy.I'm releasing this as there seems to be a serious lack of open source material for TaskScript. GitHub Gist This was my very first script without a tutorial, so it isn't the greatest, but it does work with some bugs. If you have any questions or suggestions, please let me know. Enjoy! Link to comment Share on other sites More sharing options...
Articron 738 Share Posted January 14, 2018 Good guy Reyne Thanks for the contribution! Link to comment Share on other sites More sharing options...
Hashtag 8670 Share Posted January 14, 2018 Nice to see open source content. If I may throw my suggestions in, it'd be wise to create a framework that only does one action per loop. For example, now it searchs for the NPC even though the player is at the bank. During that same loop after interacting it's clicking the widget. It may work a couple of times but in the long run it'll cause problems. A better approach would be something like this: is widget open? Yes: click the widget. No: talk with the NPC etc. And if I saw correctly you were returning 0 after each loop. To reduce the work the cpu has to do, make it a few hundred. It will still work the same way, but is more performance efficient. But other than that, good job! Link to comment Share on other sites More sharing options...
Banker 175 Share Posted January 14, 2018 Good job broski Link to comment Share on other sites More sharing options...
dQw4w9WgXcQ 184 Share Posted January 14, 2018 . Link to comment Share on other sites More sharing options...
Pseudo 179 Share Posted January 14, 2018 Nice job on the open source release. Hopefully some aspiring scripters can find use in this as a learning resource. Link to comment Share on other sites More sharing options...
iamreyne 4 Author Share Posted January 17, 2018 Nice to see open source content. If I may throw my suggestions in, it'd be wise to create a framework that only does one action per loop. For example, now it searchs for the NPC even though the player is at the bank. During that same loop after interacting it's clicking the widget. It may work a couple of times but in the long run it'll cause problems. A better approach would be something like this: is widget open? Yes: click the widget. No: talk with the NPC etc. And if I saw correctly you were returning 0 after each loop. To reduce the work the cpu has to do, make it a few hundred. It will still work the same way, but is more performance efficient. But other than that, good job! Thanks! I'll work on the one action per loop. This was my very first script so I have improved since, but I've still got lots of work to do. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.