# Thread: [Reflection] Kristi's Pest Control

1. ## [Reflection] Kristi's Pest Control

Kristi's Pest Control
Version: 1.0

Features:
• Walks to a random portal and attacks NPC:s, prioritizing portals and spinners
• Detects if a portal shield is down and attacks that portal, if it's close enough
• Human-like: mouse (thanks to Flight), anti-pattern behaviour (such as walking to random tile in boat or hovering players), among others
• Prayer support
• Breaks support
• Auto-updater, made to be very user friendly
• Sexy paint

Requirements:

Proggys (including breaks):

Credits:
Thanks to Slacky, Turpinator, Harrier and all the other people answering my questions in IRC . Ineedbot for his R_Interacttile, Kyle for the reflection include and GRATS for his stats service (let me know if I missed anyone!)

Can't get it working?

Solution: Add "//" before "{$I Files PC/PC.simba}" at line 37, run the script and then delete the "//". "Debug box says "[] [Status] All cached references free'd from memory" but script doesn't start" Solution: Delete the "//" before "{$I Files PC/PC.simba}" at line 37.

2. SRL Junior Member
Join Date
Jun 2015
Posts
31
Mentioned
0 Post(s)
Quoted
14 Post(s)
Nice, I'll give it a go and see how it goes, does this work for med boats?

3. Why did you use RSWalker? Why not go pure reflection?

4. Originally Posted by Harrier
Why did you use RSWalker? Why not go pure reflection?
I think it is because the pest control island tiles change

edit : nvm, just realized it doesn't use the aerolib include

5. Originally Posted by jstemper
I think it is because the pest control island tiles change

edit : nvm, just realized it doesn't use the aerolib include
I explained it to him a while back on IRC how to get around that.

6. script looks amazing, congratulations on release!

7. Originally Posted by Darkest
Nice, I'll give it a go and see how it goes, does this work for med boats?
Yes

Originally Posted by Harrier
I explained it to him a while back on IRC how to get around that.
Tried that, however I had issues with finding the knight, so RSWalker was easier
Originally Posted by hoodz
script looks amazing, congratulations on release!
Thank you

8. Made a small error, please re-download the script if you have issues getting it working (line 37 was supposed to be commented from the beginning, comment it, run the script and then delete the '//')

9. SRL Junior Member
Join Date
Apr 2012
Posts
108
Mentioned
1 Post(s)
Quoted
21 Post(s)
Very nice script, Thanks! Don't thinking breaking is working properly though, well doesn't seem to take breaks at all for me

Very nice script, Thanks! Don't thinking breaking is working properly though, well doesn't seem to take breaks at all for me
Will have a look. Seems to be a weird issue with stats, 800k experience and 286 min commit time don't feel reasonable.

11. Originally Posted by kristi
Will have a look. Seems to be a weird issue with stats, 800k experience and 286 min commit time don't feel reasonable.
Sounds like you're adding on the xp gained overall each time not the xp gain since last commit.

Edit: Just read a bit of the script, try to make your standards consistent they're all over the place atm and a large amount of the stuff you copied from aerolib into the script is already in the reflection include.
Last edited by Harrier; 05-07-2016 at 09:15 PM.

12. Originally Posted by Harrier
Sounds like you're adding on the xp gained overall each time not the xp gain since last commit.

Edit: Just read a bit of the script, try to make your standards consistent they're all over the place atm and a large amount of the stuff you copied from aerolib into the script is already in the reflection include.
Yeah I'm not sure how it works, is the values you send when you commit add to the previoua values or do the previous values change to the ones recently sent?

13. Originally Posted by kristi
Yeah I'm not sure how it works, is the values you send when you commit add to the previoua values or do the previous values change to the ones recently sent?
Afaik each time you commit to the server it's updated on the server so you need to reset what your committing or else you'll start committing the same data + whatever each time

but I'm sleepy and will look into it in the morning to find out for sure (I haven't used stats for over a year)
Last edited by Harrier; 05-07-2016 at 09:26 PM.

14. Originally Posted by Harrier
Afaik each time you commit to the server it's updated on the server so you need to reset what your committing or else you'll start committing the same data + whatever each time

but I'm sleepy and will look into it in the morning to find out for sure (I haven't used stats for over a year)
I do that, I'm guessing it has something to do with the procedure that sets the initial xp values returning 0. I thought I had fixed it earlier but I'll have to go through it again.

15. SRL Junior Member
Join Date
Jun 2015
Posts
31
Mentioned
0 Post(s)
Quoted
14 Post(s)
Tested it out for a few hours and I find it gets stuck at the doors once it is closed and no way to open the doors so it goes all around. If you did add something like this would you also include closing the door behind as a feature?

16. very nice script kristi

17. SRL Junior Member
Join Date
Apr 2012
Posts
108
Mentioned
1 Post(s)
Quoted
21 Post(s)
I wonder why breaking is working for everybody else :S, Had a read through the code and it seems as it should.

18. Originally Posted by Darkest
Tested it out for a few hours and I find it gets stuck at the doors once it is closed and no way to open the doors so it goes all around. If you did add something like this would you also include closing the door behind as a feature?
Reflection is kinda buggy with finding the gates, but I'll see if I can do something about it later
Originally Posted by jstemper
very nice script kristi
Nice proggy
I wonder why breaking is working for everybody else :S, Had a read through the code and it seems as it should.
Yeah breaking worked for me, try lowering cBREAKIN?

19. SRL Junior Member
Join Date
Apr 2012
Posts
108
Mentioned
1 Post(s)
Quoted
21 Post(s)
Yes I lowered it to one but still didn't work, I'm probably just going to change the breaking procedure myself if I can't get it to work

Yes I lowered it to one but still didn't work, I'm probably just going to change the breaking procedure myself if I can't get it to work
Might add that it only breaks when on the PC island, that plus the randomness added can make it take longer than usual to break.

21. SRL Junior Member
Join Date
Apr 2012
Posts
108
Mentioned
1 Post(s)
Quoted
21 Post(s)
Yeh I've had the time set to 2 minutes with randomness of one minute with no luck, Out of ideas to be honest all other scripts I use work :/

Yeh I've had the time set to 2 minutes with randomness of one minute with no luck, Out of ideas to be honest all other scripts I use work :/
That's very strange, can anyone else confirm this issue?

23. SRL Junior Member
Join Date
Jun 2015
Posts
31
Mentioned
0 Post(s)
Quoted
14 Post(s)
Also, would you be add something for the towers to climb up for range and mage? You can shoot very far and works really nice if you aren't going for portals. Another cool feature as well.

24. Registered User
Join Date
May 2012
Posts
22
Mentioned
0 Post(s)
Quoted
4 Post(s)
Says incorrect Stats information for me. I've rechecked with the stats website, logs in fine. Tried 3 times. Anything I can do?

Edit: Tried signing up with a second account. Still not working.
Last edited by Death Iz Pro; 05-09-2016 at 05:20 AM.

25. Originally Posted by Death Iz Pro
Says incorrect Stats information for me. I've rechecked with the stats website, logs in fine. Tried 3 times. Anything I can do?

Edit: Tried signing up with a second account. Still not working.
Make sure you type in your Stats ID and not usetname.