Slushpies

SW Application

Recommended Posts

RZME   
11 hours ago, Slushpies said:

https://github.com/Slushpies/RSBot-Scripts/tree/master/src/Slushpies

 

Completes cooks assistant quest, thought this would be good enough to apply for script writer. Tested only in fixed mode.

 

Script can be started at any stage of the quest, uses tasks to avoid getting stuck.

 

https://github.com/Slushpies/RSBot-Scripts/blob/727cb51f74b31b9d9966700f11e050bfea67f672/src/Slushpies/task/quest/cooksAssistant/handInQuest.java#L33

Basically all of it should be rewritten. Use a loop, use chat query.

https://github.com/Slushpies/RSBot-Scripts/blob/master/src/Slushpies/main/TestQuest.java

u are stacking up ur task list with the same 17 tasks every loop (300ms), add them in the start method

 

Haven't looked at more atm but i'm sure someone else will

Edited by RZME

Share this post


Link to post
iDzn   
37 minutes ago, RZME said:

u are stacking up ur task list with the same 17 tasks every loop (300ms), add them in the start method

I didn’t clock this when I looked this morning as I only looked in the HandInQuest task.

 

As we mentioned on discord, try to get a handle on the basics first, understand what loops are available and how they work especially when it comes to how they apply to writing scripts.

 

As RZME said, your poll() is a loop which will continually repeat the code inside it, you’re asking it to add those tasks again and again.

 

Once they’re in your task list, that will remain as is and no need to add them again as below that, you’re then using a for loop to go through each tasks conditions that you set, if they’re true, you execute the task.

 

You’ve openly said in discord that you just want the rank to remove the limit for your fishing farm or whatever but throwing some garbage into the SDN with just a little knowledge and giving nothing back to Powerbot seems a little unfair.

Edited by iDzn

Share this post


Link to post
Guest
This topic is now closed to further replies.