Jump to content

Perfect Pest Control


Czar

Recommended Posts

Paint still says 8.0 is that correct?


UPDATE:

Paint disapread on me again. 

 

[DEBUG][11/15 04:41:35 PM]: OSBot is now ready!
[iNFO][11/15 04:41:36 PM]: Loaded 4 RS accounts!
[iNFO][11/15 04:41:37 PM]: Welcome to OSBot 2.4.99!
[iNFO][11/15 04:41:46 PM]: Updated injection hooks for client revision : 126!
[DEBUG][bot #1][11/15 04:41:46 PM]: Initializing mirror client bot...
[iNFO][bot #1][11/15 04:42:04 PM]: Initializing 36 API modules...
[iNFO][11/15 04:42:04 PM]: Started bot #1
[DEBUG][11/15 04:42:18 PM]: Loading script id : 897
[DEBUG][11/15 04:42:22 PM]: Loaded script!
[DEBUG][11/15 04:42:22 PM]: Launching script...
[iNFO][bot #1][11/15 04:42:22 PM]: [break Manager] After botting for 45 minute(s), you will break for 23 minute(s).
[iNFO][bot #1][11/15 04:42:22 PM]: Loaded 5 built-in random solvers!
[iNFO][bot #1][11/15 04:42:24 PM]: Started random solver : Auto Login
[iNFO][bot #1][11/15 04:42:29 PM]: Random solver exited : Auto Login
[iNFO][bot #1][11/15 04:42:33 PM]: Started random solver : Welcome Screen
[iNFO][bot #1][11/15 04:42:36 PM]: Definitions loaded: 19704
[iNFO][bot #1][11/15 04:42:36 PM]: 22 APIs loaded
[iNFO][bot #1][11/15 04:42:37 PM]: Random solver exited : Welcome Screen
[iNFO][bot #1][11/15 04:42:37 PM]: "pc_mode" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "prioritize_spinners" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "stay_center" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "last_stand" changed to "1"
[iNFO][bot #1][11/15 04:42:37 PM]: "ss_difficulty" changed to "40"
[iNFO][bot #1][11/15 04:42:37 PM]: "portal_sequence" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "portal_chosen" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "ss_portal" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "ws_real_distance_mode" changed to "1"
[iNFO][bot #1][11/15 04:42:37 PM]:  2 actionpoints ready
[iNFO][bot #1][11/15 04:42:37 PM]: Attempted to setVoidKnightPosition but it was null
[iNFO][bot #1][11/15 04:42:37 PM]: "portal_e" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "portal_w" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "portal_sw" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "portal_se" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: "portal_sequence" changed to "0"
[iNFO][bot #1][11/15 04:42:37 PM]: We are now out of a game.
[iNFO][bot #1][11/15 04:42:39 PM]: Yay!
[iNFO][11/15 04:42:39 PM]: Started script : Perfect Pest Control
[iNFO][bot #1][11/15 04:43:28 PM]: Script Perfect Pest Control has paused!
[iNFO][bot #1][11/15 04:44:08 PM]: "ss_mode" changed to "1"
[iNFO][bot #1][11/15 04:44:08 PM]: "fight_portal_down" changed to "1"
[iNFO][bot #1][11/15 04:44:08 PM]: "prioritize_spinners" changed to "1"
[iNFO][bot #1][11/15 04:44:08 PM]: "portal_prediction" changed to "2"
[iNFO][bot #1][11/15 04:44:08 PM]: "ss_difficulty" changed to "70"
[iNFO][bot #1][11/15 04:44:08 PM]: Defiler is selected
[iNFO][bot #1][11/15 04:44:08 PM]: Ravager is selected
[iNFO][bot #1][11/15 04:44:08 PM]: Shifter is selected
[iNFO][bot #1][11/15 04:44:08 PM]: Spinner is selected
[iNFO][bot #1][11/15 04:44:08 PM]: Torcher is selected
[iNFO][bot #1][11/15 04:44:08 PM]: "brawler_mode" changed to "1"
[iNFO][bot #1][11/15 04:44:14 PM]: Script Perfect Pest Control has resumed!
[iNFO][bot #1][11/15 04:44:16 PM]: Set zeal point widget: [407,15]
[iNFO][bot #1][11/15 04:44:36 PM]: Gangplank not found, going to nearest... (restart mirror-client if object is not detected)
 
  • Like 1
Link to comment
Share on other sites

Guys, make sure you don't start the script while already in a pest control game it may mess up the script, I also added error handling for paint and so the paint will not disappear anymore, and if the script ever encounters an error, it will not interrupt the script and the script will know what to do and continue :D Just waiting on the new version to be updated :D

 

As for errors, the new update (v9.0) has many bugfixes and error preventions, just waiting for the update to be registered - it will definitely be done today since many hours have passed ^^ biggrin.png Apologies for any inconvenience everyone, I know how annoying it can be sad.png

Edited by Czar
Link to comment
Share on other sites

 


 

Noticed it is not prioritizing spinner, or portal over monsters. I think its still not using special attack. It does seem to run vastly smoother than 8.0

Left it, came back found logged out 


 

[iNFO][bot #1][11/16 06:34:07 PM]: Attempting to negotiate obstacle at: [x=11297, y=2777, z=0]

[iNFO][bot #1][11/16 06:34:23 PM]: Found a portal!

[iNFO][bot #1][11/16 06:34:23 PM]: "ss_portal" changed to "e"

[iNFO][bot #1][11/16 06:34:23 PM]: Activating portal (e)

[iNFO][bot #1][11/16 06:34:23 PM]: "portal_e" changed to "1"

[iNFO][bot #1][11/16 06:34:23 PM]: "portal_sequence" changed to "e"

[iNFO][bot #1][11/16 06:34:28 PM]: Brawler nearby!!

[iNFO][bot #1][11/16 06:34:36 PM]: Brawler nearby!!

[iNFO][bot #1][11/16 06:34:48 PM]: Activating portal (sw)

[iNFO][bot #1][11/16 06:34:48 PM]: "portal_sw" changed to "1"

[iNFO][bot #1][11/16 06:34:48 PM]: "portal_sequence" changed to "ea"

[iNFO][bot #1][11/16 06:34:50 PM]: Portal destroyed, generating new portal...

[iNFO][bot #1][11/16 06:34:50 PM]: "portal_e" changed to "0"

[iNFO][bot #1][11/16 06:34:50 PM]: "ss_portal" changed to "sw"

[iNFO][bot #1][11/16 06:35:00 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:03 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:04 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:05 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:06 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:07 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:08 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:10 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:11 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:12 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:14 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:15 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:16 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:16 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:17 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:19 PM]: Activating portal (se)

[iNFO][bot #1][11/16 06:35:19 PM]: "portal_se" changed to "1"

[iNFO][bot #1][11/16 06:35:19 PM]: "portal_sequence" changed to "eab"

[iNFO][bot #1][11/16 06:35:19 PM]: Portal destroyed, generating new portal...

[iNFO][bot #1][11/16 06:35:19 PM]: "portal_sw" changed to "0"

[iNFO][bot #1][11/16 06:35:19 PM]: "ss_portal" changed to "se"

[iNFO][bot #1][11/16 06:35:19 PM]: Portal open, attacking now!!

[iNFO][bot #1][11/16 06:35:43 PM]: Portal destroyed, generating new portal...

[iNFO][bot #1][11/16 06:35:43 PM]: "portal_se" changed to "0"

[iNFO][bot #1][11/16 06:35:43 PM]: "ss_portal" changed to "e"

[iNFO][bot #1][11/16 06:35:43 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:45 PM]: Portal destroyed, generating new portal...

[iNFO][bot #1][11/16 06:35:45 PM]: "portal_e" changed to "0"

[iNFO][bot #1][11/16 06:35:45 PM]: "ss_portal" changed to "e"

[iNFO][bot #1][11/16 06:35:45 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:45 PM]: Portal destroyed, generating new portal...

[iNFO][bot #1][11/16 06:35:45 PM]: "portal_e" changed to "0"

[iNFO][bot #1][11/16 06:35:45 PM]: "ss_portal" changed to "sw"

[iNFO][bot #1][11/16 06:35:45 PM]: Walking to portal...

[iNFO][bot #1][11/16 06:35:46 PM]: Portal destroyed, generating new portal...

[iNFO][bot #1][11/16 06:35:46 PM]: "portal_sw" changed to "0"

[iNFO][bot #1][11/16 06:35:46 PM]: "ss_portal" changed to "e"

[iNFO][bot #1][11/16 06:35:48 PM]: Brawler nearby!!

[iNFO][bot #1][11/16 06:35:49 PM]: Found a portal!

[iNFO][bot #1][11/16 06:35:49 PM]: "ss_portal" changed to "w"

[iNFO][bot #1][11/16 06:35:49 PM]: Activating portal (w)

[iNFO][bot #1][11/16 06:35:49 PM]: "portal_w" changed to "1"

[iNFO][bot #1][11/16 06:35:49 PM]: "portal_sequence" changed to "eabw"

[iNFO][bot #1][11/16 06:36:37 PM]: Attempted to setVoidKnightPosition but it was null

[iNFO][bot #1][11/16 06:36:37 PM]: "ss_portal" changed to ""

[iNFO][bot #1][11/16 06:36:37 PM]: "portal_e" changed to "0"

[iNFO][bot #1][11/16 06:36:37 PM]: "portal_w" changed to "0"

[iNFO][bot #1][11/16 06:36:37 PM]: "portal_sw" changed to "0"

[iNFO][bot #1][11/16 06:36:37 PM]: "portal_se" changed to "0"

[iNFO][bot #1][11/16 06:36:37 PM]: "portal_sequence" changed to "0"

[iNFO][bot #1][11/16 06:36:37 PM]: We are now out of a game.

[iNFO][bot #1][11/16 06:37:15 PM]: Current information successfully set!, void knight position = [x=12254, y=2976, z=0] and square size: 72

[iNFO][bot #1][11/16 06:37:15 PM]: We have started a game!

[iNFO][bot #1][11/16 06:37:15 PM]: "ss_portal" changed to "se"

[iNFO][bot #1][11/16 06:37:15 PM]: Set void knight position from event: [x=12254, y=2976, z=0]

[iNFO][bot #1][11/16 06:37:15 PM]: "ss_portal" changed to "sw"

[iNFO][bot #1][11/16 06:37:37 PM]: Found a portal!

[iNFO][bot #1][11/16 06:37:37 PM]: "ss_portal" changed to "w"

[iNFO][bot #1][11/16 06:37:37 PM]: Activating portal (w)

[iNFO][bot #1][11/16 06:37:37 PM]: "portal_w" changed to "1"

[iNFO][bot #1][11/16 06:37:37 PM]: "portal_sequence" changed to "w"

[iNFO][bot #1][11/16 06:37:42 PM]: Paint error: java.lang.RuntimeException: Union object is null or owned by someone else

at client.nat.stream.Stream.m22(Native Method)

at client.Nnx.getDefinition(Unknown Source)

at org.osbot.rs07.api.model.NPC.getId(wg:217)

at org.osbot.rs07.api.model.NPC.getDefinition(wg:19)

at org.osbot.rs07.api.NPCS.getAll(vg:11)

at org.osbot.rs07.api.EntityAPI.closest(ek:277)

at org.osbot.rs07.api.EntityAPI.closest(ek:176)

at b.a.AUx.e(mk:1292)

at b.a.AUx.onPaint(mk:1444)

at org.osbot.rs07.canvas.WrappedCanvas.IiIIiiiiIiiI(df:150)

at org.osbot.rs07.canvas.WrappedCanvas.getGraphics(df:28)

at client.rKQh.run(Unknown Source)

[iNFO][bot #1][11/16 06:38:01 PM]: Activating portal (e)

[iNFO][bot #1][11/16 06:38:01 PM]: "portal_e" changed to "1"

[iNFO][bot #1][11/16 06:38:01 PM]: "portal_sequence" changed to "we"

[iNFO][bot #1][11/16 06:38:32 PM]: Activating portal (se)

[iNFO][bot #1][11/16 06:38:32 PM]: "portal_se" changed to "1"

[iNFO][bot #1][11/16 06:38:32 PM]: "portal_sequence" changed to "web"

[iNFO][bot #1][11/16 06:39:02 PM]: Activating portal (sw)

[iNFO][bot #1][11/16 06:39:02 PM]: "portal_sw" changed to "1"

[iNFO][bot #1][11/16 06:39:02 PM]: "portal_sequence" changed to "weba"

[iNFO][bot #1][11/16 06:39:19 PM]: Detected 0 hp, going back to action!

[iNFO][bot #1][11/16 06:39:21 PM]: Brawler nearby!!

[iNFO][bot #1][11/16 06:39:27 PM]: Attempted to setVoidKnightPosition but it was null

[iNFO][bot #1][11/16 06:39:27 PM]: "ss_portal" changed to ""

[iNFO][bot #1][11/16 06:39:27 PM]: "portal_e" changed to "0"

[iNFO][bot #1][11/16 06:39:27 PM]: "portal_w" changed to "0"

[iNFO][bot #1][11/16 06:39:27 PM]: "portal_sw" changed to "0"

[iNFO][bot #1][11/16 06:39:27 PM]: "portal_se" changed to "0"

[iNFO][bot #1][11/16 06:39:27 PM]: "portal_sequence" changed to "0"

[iNFO][bot #1][11/16 06:39:27 PM]: We are now out of a game.

[iNFO][bot #1][11/16 06:39:30 PM]: Main loop error: java.lang.NullPointerException

at org.osbot.rs07.api.map.Position.distance(bj:24)

at perfect.scripting.b.c.NUl.e(li:412)

at b.a.AUx.onLoop(mk:260)

at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(mh:48)

at java.lang.Thread.run(Unknown Source)

[iNFO][bot #1][11/16 06:41:51 PM]: java.lang.RuntimeException: Unknown response

at client.nat.stream.Stream.m17(Native Method)

at client.sk.getWalkingQueueY(Unknown Source)

at org.osbot.rs07.api.model.Character.getY(yf:275)

at org.osbot.rs07.api.map.Position.<init>(bj:134)

at org.osbot.rs07.api.model.Player.getPosition(oo:41)

at org.osbot.rs07.script.MethodProvider.myPosition(zj:546)

at perfect.scripting.b.a.aUx.e(sm:129)

at b.a.b.NUL.e(ll:107)

at perfect.scripting.LoopScript.e(sg:223)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 


 

Noticed it is not prioritizing spinner, or portal over monsters. I think its still not using special attack. It does seem to run vastly smoother than 8.0

Left it came back found logged out 

  • Like 1
Link to comment
Share on other sites

Latest version will now be v10.0 biggrin.png Will edit this post with full changelog ASAP. This new update will most likely be the final version to make the script flawless ^^ biggrin.png

 

EDIT:

 

New update (v10.0)

 

- Special attacks finally re-added

- Added an update for boat boarding

- Spinners are now prioritized in stages, with more focus

- If portal spawns while in combat (in fight_portal mode) the script will stop combat and attack the portal

- Spinners are now attackable during fight_portal mode and ignore the 'fight while portal down' system

- Added a few extra stability and error handlers

- Script will run to any portal or at least center upon game starting

 

Guys, spinners will only be attacked if less than 20 tiles away, otherwise the script will just continue what it was doing. I may add a new option to completely focus on spinners if necessary

 

Also if using VIP client and there is an error, try a client restart or lower the reaction time, it can improve the performance of the script

Edited by Czar
  • Like 1
Link to comment
Share on other sites

This version if working succesfully (only got v9 now haha) will address all the problems I had with the script - I wasnt' going mention that it prioritizes spinners too much, but it's good you noticed that! 

This one is the most important:  - If portal spawns while in combat (in fight_portal mode) the script will stop combat and attack the portal


I'll let you know how it runs when it eventually gets through the system! 

Edited by walterww
  • Like 1
Link to comment
Share on other sites

I like to pick things wrong :D 

1; it's missing the amount of points earned / total points. 

 

2, a big one for me. if for example it's trying to attack something outside a gate but then the gate gets closed it will click again and moonwalk / run all the way around the map to the next open gate to try and attack that monster. Maybe change it to where if target is more than 10/15 tiles away find new monster to attack? 

Also I'll trial green drag script if you want :s i fancy getting banned :P 

  • Like 1
Link to comment
Share on other sites

Quick prayer isn't working very well, seems to turn prayer on when not in combat and turn it off when in combat :p. Might be better for the time being to turn it on when engaging in the first combat and then just leaving it on?

 

Special attacks working decently, recognises that dds is the spec weapon and uses it, but switches to inventory every time instead of just using the 4 specs up.

 

Script is kind've slow to respond to changes on portal mode however the other 2 pest control scripts have about this reaction time so may be due to the nature of the script/game mode.  Fight monsters mode is pretty nice, but I feel like players report you or suspect you of botting. Overall portal mode needs some work if I'm honest. 

 

Oh I've forgot to mention - every time it fights a brawler it will attack, then click on the minimap, and repeat. Has been present since I started using the script. 

 

Boarding the boat seems slower than before. wub.png

Edited by walterww
  • Like 1
Link to comment
Share on other sites

- Hmm I will increase the speed of boat boarding, made it 3 times slower in last update

- Should I make the script immediately run to the next portal if the current target portal is destroyed?

- As for special attacks, will add an update to prevent tab switching to inventory until special energy reaches 0

- As for brawler, will add an update for brawlers to make the script either stay in combat or evade the brawlers

- Quickprayer will be fixed ASAP

- Total points will be re-added to the script

- Next update will have a system to fix the current tile destination and prevent the script from running around all over the place

 

Update coming up very soon ^^ biggrin.png

 

Edited by Czar
Link to comment
Share on other sites

  • Deceiver changed the title to Perfect Pest Control
  • Maldesto locked this topic
  • Decode unlocked this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...