SRL Archive - RS3 Outdated / Broken Scripts

The Cutting Edge


Yago

2012-03-09 23:01:09

The Cutting Edge
Current Version: 0.6 ~~ (Updated 6/16/12)
By: Yago



Description: This script cuts down the two Yew Trees near the Edgeville Bank.

Requirements:
  • Appropriate Woodcutting Level and Hatchet

SRL Stats Page


Features:
  1. Awesome Paint
  2. Multiplayer
  3. Multiple Axe Support (Bronze to Dragon)
  4. AutoUpdater
  5. AntiRandoms
  6. Antiban
  7. SRL Stats

Start-up:
  1. Fill In Your SRL-Stats Information.
  2. Fill In Your Username, Password, and Pin.
  3. Set AxeWielded True If Your Axe Is Wielded And False If Not.
  4. If Axe Is Not Wielded Then Place It In The First Inventory Slot.
  5. Make Sure Player Is In The Edgeville Bank Or Near Both Yews.
  6. Press Run.


Known Bugs/Errors :stirthepot:
  1. No Other Known Problems. Post If You Find Any.


Suggestions

  1. Breaks
  2. Deathwalk
  3. Form
  4. Hard Restart Option For SMARTMananger?
  5. Suggestions Welcome!


Debugging
If you believed the script randomly stopped or there was a problem with the script:
  1. Set the Debug_Script constant to True (False by default).
  2. This option allows for extensive debug to be printed in SIMBA's debug box.
  3. Also, a screenshot of SMART will be taken before logging out of Runescape and will be saved to your SIMBA directory in /Includes/SRL/Logs/.
  4. Afterwards, you can post the Debug from SIMBA in [noparse]
    [/noparse] tags in this thread, and I will be able to tell you why the script stopped.

Other:
Github Link: https://github.com/Yago/SIMBA-Scripts/
This is my fourth public script for runescape!!!
Thanks to Euphemism for the paint!!!
++ Rep Me If You Feel Like It!!!



Change Log

1. -- 3/09/12 v0.1 -- Script Released To Public. Thanks to all who made it possible. (67 Views)
2. -- 3/10/12 v0.2 -- Automatic Downloading of the Paint.
3. -- 3/17/12 v0.3 -- SRL Stats. Other Fixes.
4. -- 5/01/12 v0.4 -- Remove SPS and Add ObjDTM.
5. -- 5/11/12 v0.5 -- Add Dragon Hatchet and More efficient ObjDTM. (Thanks to [B]euphemism[/B] for the account!!)
6. -- 6/16/12 v0.6 -- Added Custom Walking Functions Based on Trig. Added the MyColor Type and Obejct Loading Function.

gabrieldu832

2012-03-10 01:00:34

Nice script, working very well ;)

Suggestions :
The bot could take breaks each 30mins or something like that and after that return to work :)


Bugs : It does that for me …
Exception in Script: The bitmap[3] does not exist


Hope it will help you :)

cyberrion

2012-03-10 04:48:19

Seems legit :p

Gala

2012-03-10 05:58:46

Very nice script.
Especially I like the debug on the minimap and the nice paint. :)

Edit: It doesnt work for me. It does a right click, but it can't click the "chop down yew" text. :(

Yago

2012-03-10 22:23:48

From: gabrieldu832
Nice script, working very well ;)

Suggestions :


Bugs : It does that for me …


Hope it will help you :)


Thank-you for the suggestion for breaks. I am planning on implementing this. As for the exception, it isn't really an error so you can ignore that.

From: cyberrion
Seems legit :p


Thank-you :)

From: Gala
Very nice script.
Especially I like the debug on the minimap and the nice paint. :)

Edit: It doesnt work for me. It does a right click, but it can't click the "chop down yew" text. :(


Thank-you.
Regarding the error: I've ran the script for over 20 hours, and I've been watching for over 10 hours and I haven't noticed this error. Can you tell me if it continues or is there any way to recreate this error?

Yago

2012-03-10 22:27:47

Update. The Cutting Edge v0.2

Changes Include:
  • Automatic Download Of The Paint
  • Minor Edits/Fixes

Enjoy :spot:

Anyone Want To Get Me A Good Progress Report?

anti theist

2012-03-10 23:47:35

Absolutely love the name choice.
Running great so far, but how do I remove the paint? Setting PaintWait to zero doesn't work, nor does ignoring PrintOnSMART when it's called on in the report procedure.
\_(0_o)_/

StickToTheScript

2012-03-11 01:17:36

Looking good, and had a nice paint… i enjoy it. Good Job!

This bot also makes it seem the most like i am playing the game compared to all of the other bots there botting with me… lol

It moves nicely and very well done.

p.s.: I love how before you bot, you dont notice the other bots too much, but after you start botting, almost everyone is a bot.

EDIT: BTW… Does it have SRL Randoms? I dont really want to go looking through the whole script… lol

Yago

2012-03-11 09:07:10

From: anti theist
Absolutely love the name choice.
Running great so far, but how do I remove the paint? Setting PaintWait to zero doesn't work, nor does ignoring PrintOnSMART when it's called on in the report procedure.
\_(0_o)_/


I'll add this in the next version. I absolutely forgot that I called this in the starting. What you can do is removed the first two lines in the init procedure as well as removing paintonsmart in the report function.

From: StickToTheScript
Looking good, and had a nice paint… i enjoy it. Good Job!

This bot also makes it seem the most like i am playing the game compared to all of the other bots there botting with me… lol

It moves nicely and very well done.

p.s.: I love how before you bot, you dont notice the other bots too much, but after you start botting, almost everyone is a bot.

EDIT: BTW… Does it have SRL Randoms? I dont really want to go looking through the whole script… lol


I try my best to do what I call smart botting. Yes the script has both antirandoms and antiban. You can even see the SRLRandoms report above the progress report in the debug box.

StickToTheScript

2012-03-11 10:12:51

Sweet, thanks!!! plus…….. i love this script man!!!! 5 stars man!

Yago

2012-03-11 16:12:37

From: StickToTheScript
Sweet, thanks!!! plus…….. i love this script man!!!! 5 stars man!


Thank you.

Remember, I'm always open to any new suggestions.

sk80rdie76

2012-03-11 18:41:26

[php]*—————————————————————-*
| The Cutting Edge 0.2 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 6 min 59 sec |
| Total Logs Chopped : 421 |
| Total Experience Gained : 73675 |
| |
|—————————————————————-|[/php]

manually stopped. good script

typestyle

2012-03-11 19:35:53

Pretty beast scripts too bad that edgeville is ALWAYS flooded but anyways sick man, thanks for the script

gabrieldu832

2012-03-12 13:46:48

That's what the script says to me after a while :
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active…
All players not active!

Yago

2012-03-12 15:10:48

From: gabrieldu832
That's what the script says to me after a while :


Does it say anything after that?

Sin

2012-03-12 15:12:58

Entered into the comp :)
Imo, the best entry yet :3

Yago

2012-03-12 15:16:12

From: Sin
Entered into the comp :)
Imo, the best entry yet :3


Thank-you. :)

Are you judging performance-wise or reading the code?

gabrieldu832

2012-03-12 16:55:27

From: Yago
Does it say anything after that?


No it says only this :

Status: Waiting
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Current player: Skilic1


And there's something else that the script writes in simba and then the script stop :
Exception in Script: The bitmap[3] does not exist


What does that mean ?

Yago

2012-03-12 18:05:48

That all means that the current player stopped and there are no more players so the script is terminating. The last exception is nothing… It always says that. Its just a hint for the scripter. It doesn't affect the script or anything though.

From: sk80rdie76
[php]*—————————————————————-*
| The Cutting Edge 0.2 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 6 min 59 sec |
| Total Logs Chopped : 421 |
| Total Experience Gained : 73675 |
| |
|—————————————————————-|[/php]

manually stopped. good script


Thank-you very much for the report :)

gabrieldu832

2012-03-12 22:22:58

From: Yago
That all means that the current player stopped and there are no more players so the script is terminating. The last exception is nothing… It always says that. Its just a hint for the scripter. It doesn't affect the script or anything though.


Yeah it stops the script but after restarting it few times, it works fine ;)

There's some stats :
[PHP]|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 4 hr 42 min 29 sec |
| Total Logs Chopped : 413 |
| Total Experience Gained : 72275 |
| |
|—————————————————————-|[/PHP]

Thx for that powerful script :)

Yago

2012-03-12 23:24:22

I may add a a hard restart option with smart manager…

gabrieldu832

2012-03-13 07:29:42

Really, whenit does that, the whole script stops :
Exception in Script: The bitmap[3] does not exist 

Yago

2012-03-13 08:11:05

If you read above, you can see that's not an error

But for the sake of you guys, I'll remove this message in the next version.

akuenpb

2012-03-13 15:12:49

Mine says "player not active" and then ends the script. Maximum it seems to work for is about 20 minutes. It could just be me.

Oh and would there be any way to make it that when you run the script it doesn't have to open a new window? That would make restarting it after it errors out a lot simpler. Other-wise I have to log in again every 20 minutes -.-

Yago

2012-03-13 15:32:59

From: akuenpb
Mine says "player not active" and then ends the script. Maximum it seems to work for is about 20 minutes. It could just be me.

Oh and would there be any way to make it that when you run the script it doesn't have to open a new window? That would make restarting it after it errors out a lot simpler. Other-wise I have to log in again every 20 minutes -.-


What do you mean by a new window? What kind of window does it open?

I have run this script for 5h+ and stopped it manually. Very rarely has it run for a short amount of time.

Also, I have a lot of failsafe's in the script. They are there to prevent errors that make you look like a bot and get you banned.

Did your account get stuck in a random or something?

Otherwise, if you would like to help me improve the quality of the script, you can set DebugScript to True and PM me some debug, so I can evaluate the error and flaws in the script in order to make it better.

akuenpb

2012-03-13 15:50:44

From: Yago
What do you mean by a new window? What kind of window does it open?

I have run this script for 5h+ and stopped it manually. Very rarely has it run for a short amount of time.

Also, I have a lot of failsafe's in the script. They are there to prevent errors that make you look like a bot and get you banned.

Did your account get stuck in a random or something?

Otherwise, if you would like to help me improve the quality of the script, you can set DebugScript to True and PM me some debug, so I can evaluate the error and flaws in the script in order to make it better.


By window I mean the actual SRL window. When the script stops itself and I have to restart it the second I press play it closes the already open window and runs a new one rather then just logging in to the one currently open.

The account didn't get stuck in a random. It's just approximately every 20 minutes it stops itself. I have no idea why. If it does it again this time I'll run a debug the next time and send it to you. It's been doing it every 20 minutes roughly for the past three hours. Very frustrating as you can imagine.

Yago

2012-03-13 16:01:24

From: akuenpb
By window I mean the actual SRL window. When the script stops itself and I have to restart it the second I press play it closes the already open window and runs a new one rather then just logging in to the one currently open.

The account didn't get stuck in a random. It's just approximately every 20 minutes it stops itself. I have no idea why. If it does it again this time I'll run a debug the next time and send it to you. It's been doing it every 20 minutes roughly for the past three hours. Very frustrating as you can imagine.


Are you using SMARTManager?

By the window, you need to be more specific. Do you mean SMART or SIMBA or another window?

akuenpb

2012-03-13 16:06:30

SMART window. It closes the SMART window and reopens it every time I press play when it comes to a standstill.

Yago

2012-03-13 16:20:04


lol @ whoever derepped me :) I do as I please ;)

From: akuenpb
SMART window. It closes the SMART window and reopens it every time I press play when it comes to a standstill.


I tried logging in, ending my script and repeating the same process all over. It doesn't happen to me. Can you reproduce this error? How does this happen?

akuenpb

2012-03-13 16:38:15

How do I send you the debug? Do I just copy everything in the window underneath the script? Oh and it stopped on 17 minutes. Yes, I can reproduce the window bug. It happens EVERY time I play the script.

Yago

2012-03-13 16:41:06

Sure. You may want to remove your runescape username. If you would like you can PM it to me or post it in this thread in code tags:

[noparse]

----Debug Info
[/noparse]

akuenpb

2012-03-13 16:47:48

Says the texts too long. Do you know if there's a limit on characters in pm's?

EDIT: There is -.- I'll just send it to you in two pm's.

EDIT EDIT: Done. Keep in mind that every time it stopped was because it stopped itself.

clinkton5

2012-03-14 11:11:26

the bot does not do randoms.

Yago

2012-03-14 15:27:55

Does it not detect the random or des it not solve it?

clinkton5

2012-03-14 15:45:12

it detects that there is a random but it does not solve it

Yago

2012-03-14 15:47:34

From: clinkton5
it detects that there is a random but it does not solve it


Oh, then that is not my script's problem. Go to the SRL Repository > SRL Randoms section and post there…

akuenpb

2012-03-14 16:19:58

Any news on my bug?

Yago

2012-03-14 16:32:31

From: akuenpb
Any news on my bug?


I haven't had a computer in a few days, but as soon as I get time ill check it out…

You still didn't answer this question:

  1. Are you using SMARTManager?
  2. Do you enter your player details in the script?
  3. Did you follow the startup instructions seen in the main post?

akuenpb

2012-03-14 17:17:54

From: Yago
I haven't had a computer in a few days, but as soon as I get time ill check it out…

You still didn't answer this question:

  1. Are you using SMARTManager?
  2. Do you enter your player details in the script?
  3. Did you follow the startup instructions seen in the main post?



By SMART manager I'm assuming you mean the window which has "Smart Enabled" "Graphics Enabled" etc at the bottom of it. I already answered that with Yes. It's the window that pops up when you run the script.

Yes I enter my player details

Yes I followed the instructions.

Yago

2012-03-14 17:23:46

From: akuenpb
By SMART manager I'm assuming you mean the window which has "Smart Enabled" "Graphics Enabled" etc at the bottom of it. I already answered that with Yes. It's the window that pops up when you run the script.

Yes I enter my player details

Yes I followed the instructions.


No, I meant another program… What is your wc lvl and axe type?

It's set to timeout after a while if you haven't seen a tree. I may change that, but I still have to check your debug and the script.

esaesa

2012-03-14 17:46:51

hey, whenever i run this script it goes very very slowly, like when i press the run button, it starts to lag reeeaaal bad only when i pres run for your script. BTW, can you make a magic log script in the moss giant dungeon and have it bank too? just a request.

akuenpb

2012-03-14 18:10:46

From: Yago
No, I meant another program… What is your wc lvl and axe type?

It's set to timeout after a while if you haven't seen a tree. I may change that, but I still have to check your debug and the script.


My woodcutting level is 74 and my axe is rune.

coldblitz

2012-03-14 20:41:55

This is my first script I've attempted running and I'm having some difficulties.

I enter my information and what not into the script as instructed and click run. SMART pops up and the log in screen appears. Nothing happens after that point. My account name and password are not entered.

Going against my intuition I thought maybe I was supposed to manually enter my account information and log in. I've done it a couple times but after which I cannot choose a world or hit the play button.

Where am I going wrong? Also, for my own benefit, can you clarify what "SRL-Stats Information" refers to?

akuenpb

2012-03-14 20:52:34

From: coldblitz
This is my first script I've attempted running and I'm having some difficulties.

I enter my information and what not into the script as instructed and click run. SMART pops up and the log in screen appears. Nothing happens after that point. My account name and password are not entered.

Going against my intuition I thought maybe I was supposed to manually enter my account information and log in. I've done it a couple times but after which I cannot choose a world or hit the play button.

Where am I going wrong? Also, for my own benefit, can you clarify what "SRL-Stats Information" refers to?


SRL stats isn't important. It's just a way that this site can keep track of what your account has levelled up, how many hours it took etc.

Yago

2012-03-14 20:57:23

From: coldblitz
This is my first script I've attempted running and I'm having some difficulties.

I enter my information and what not into the script as instructed and click run. SMART pops up and the log in screen appears. Nothing happens after that point. My account name and password are not entered.

Going against my intuition I thought maybe I was supposed to manually enter my account information and log in. I've done it a couple times but after which I cannot choose a world or hit the play button.

Where am I going wrong? Also, for my own benefit, can you clarify what "SRL-Stats Information" refers to?


Based on this information, your graphics settings are not correct and the bot cannot tell its at the login screen.

Take a look at this guide and tell me if it helps:
http://villavu.com/forum/showthread.php?t=60510

SRL-Stats are not a requirement and are there as a convenience.

I have not currently added them to this script, but they are coming in the future.

kevin33

2012-03-14 21:29:54

It cannot be the graphics. The scrpt worked for me and I had my graphics set on max by mistake.
In other news, great script so far. Working at 10k xp/hr with some competition of course. Only thing Ive noticed is it sometimes gets confused with the wall and has to wait a minute or so to try to re find the tree. Other then that… Yay.

Yago

2012-03-14 21:40:34

From: kevin33
It cannot be the graphics. The scrpt worked for me and I had my graphics set on max by mistake.
In other news, great script so far. Working at 10k xp/hr with some competition of course. Only thing Ive noticed is it sometimes gets confused with the wall and has to wait a minute or so to try to re find the tree. Other then that… Yay.


I was directing that message towards Coldblitz…

I haven't noticed the wall thing… I may add a check though just in case. Now that i think of it it could be looking for the tree trunk which has similar colors to the wall.

I have to make a mental note to look at all these posts for the weekend. So I can hopefully work on this script with my free time (after work of course).

coldblitz

2012-03-14 22:43:51

From: Yago
Based on this information, your graphics settings are not correct and the bot cannot tell its at the login screen.

Take a look at this guide and tell me if it helps:
http://villavu.com/forum/showthread.php?t=60510

SRL-Stats are not a requirement and are there as a convenience.

I have not currently added them to this script, but they are coming in the future.


My graphics setting for starters were way off however that was not the problem. The problem had to do something with MSI player (0). In all honesty I don't know exactly what I did but I finally got it up and running… but not before screwing things up royally, getting a couple different error messages as a result, and having to uninstall and reinstall once… or maybe twice. :duh:

I was just about ready to give up for the night when all of a sudden a red dot appeared and typed in my information.


I'm up and running and everything appears flawless thus far. Nice work on your script.

Thanks!

Yago

2012-03-14 23:11:29

Thank-you… If you need any help don't be afraid to post in the appropriate sections.

Also, In case you did not know, this script is separate from MSI. :)

kevin33

2012-03-15 00:38:42

Yea I know it was directed at the other guy, just thought I would point it out.
BTW the wall thing may have been because of the wrong graphic settings. I am no longer getting it with the settings back to min. I will let you know of any more problems :)

Yago

2012-03-15 08:04:35

From: kevin33
Yea I know it was directed at the other guy, just thought I would point it out.
BTW the wall thing may have been because of the wrong graphic settings. I am no longer getting it with the settings back to min. I will let you know of any more problems :)


Ok that's good to know. Thank-you for the feedback :)

coldblitz

2012-03-15 14:42:14

From: Yago
Thank-you… If you need any help don't be afraid to post in the appropriate sections.

Also, In case you did not know, this script is separate from MSI. :)


I'm still learning and familiarizing myself with the forums here. At the time I didn't know it was an MSI problem. I didn't even know what MSI was…

I ran your script all night, roughly 5hours, without a hitch. I just found out what a proggy is, it's not food, so I didn't save the information to share with you, but I'll definitely give you a proggy next time.

Yago

2012-03-15 15:23:09

From: coldblitz
I'm still learning and familiarizing myself with the forums here. At the time I didn't know it was an MSI problem. I didn't even know what MSI was…

I ran your script all night, roughly 5hours, without a hitch. I just found out what a proggy is, it's not food, so I didn't save the information to share with you, but I'll definitely give you a proggy next time.


Thank-you. Yup, this is a learning process so feel free for help anytime. A progress report is also welcome. :)

Too803

2012-03-15 17:44:22

Do you know why once I cut the north yew, my guy head to the south yew, cuts it, and then never heads to the north yew/cuts the south yew again.

Yago

2012-03-15 18:17:36

From: Too803
Do you know why once I cut the north yew, my guy head to the south yew, cuts it, and then never heads to the north yew/cuts the south yew again.


I actually don't know; it shouldn't be doing that.

Anouncement

My script website is currently down. The host said they would fix the problem in two hours. Auto-update will not work for a while and you will experience a few seconds of delay upon startup.

Too803

2012-03-15 18:22:49

Could there be something in my settings causing it? I use the settings people say to use, min graphics, etc.

Yago

2012-03-15 18:38:21

From: Too803
Could there be something in my settings causing it? I use the settings people say to use, min graphics, etc.


Nope it shouldn't be unless your settings are incorrect and they are messing up yew detection.

I designed my script to go cut a tree and as soon as you're done, go to the next tree and wait… And repeat this all over.

Try it again and let me know if it happens…

Too803

2012-03-15 19:30:20

Works fine, I just picked a different world, I assume some people were blocking detection w/e.

Too803

2012-03-15 19:49:55

New issue.. The script will run for around 25 minutes then goto the player info,world select screen, then stop.

Yago

2012-03-15 20:24:22

From: Too803
New issue.. The script will run for around 25 minutes then goto the player info,world select screen, then stop.


First of all, please don't double post. Use the edit button.

I've been running mine today for around 2 hours so far and haven't noticed this. Can you reproduce this error? Where you in a random event? Try running it again and tell me if it happens again.

akuenpb

2012-03-15 21:00:33

So you've had access to a computer? Did you find a reason why it's being so odd for mine in that debug I sent you?

Too803

2012-03-15 21:36:33

Here is the thing where it sits at the screen.

Yago

2012-03-15 21:54:19

From: akuenpb
So you've had access to a computer? Did you find a reason why it's being so odd for mine in that debug I sent you?


I have briefly looked over your messages and the debug. However, I am working on my Senior Thesis(school project)…

Based on the debug I see no direct correlation, however I'll have to look more closely at the code and the debug. Ill have a lot of extra time over the weekend.

From: Too803
Here is the thing where it sits at the screen.


Honestly, this shouldn't happen… based on that picture I can't tell whats going on wrong.

akuenpb

2012-03-16 07:39:37

Ok, I'll get back to you on Monday.

Yago

2012-03-16 08:03:20

From: akuenpb
Ok, I'll get back to you on Monday.


On a brief overview of your debug and after experiencing the same thing myself, this error shouldn't happen at all…

I believe that either our players are randomly logging out (not caused by the script) or they are logged in but the SRL function LoggedIn() has a bug or something…

akuenpb

2012-03-16 09:26:02

So it's a problem with SRL and not with your script?

Yago

2012-03-16 15:20:32

From: akuenpb
So it's a problem with SRL and not with your script?


Not necessarily… I'd need someone to take a video of the script failing with a visible debug console to see what's up.

akuenpb

2012-03-16 16:40:47

I could try to do that. Do you reckon fraps would record it or do you have something better in mind?

Too803

2012-03-16 17:44:13

How can I commit time to SRL with this script, I have finally got it working good.

Yago

2012-03-16 20:10:22

From: Too803
How can I commit time to SRL with this script, I have finally got it working good.


What do you mean? I haven't implemented SRL Stats in the script yet. But the next update should contain it after i sort some bugs…

From: akuenpb
I could try to do that. Do you reckon fraps would record it or do you have something better in mind?


Well, anything where you can see the debug decently along with the RS screen… I haven't tried fraps or any "recording" programs because I don't think my computer will be able to handle this, but you help will be greatly appreciated…

Edit: If you will be recording then in the SMART window, press disable debug, so I can see the chat screen :) I tried recording, and it was a fail on my computer.

akuenpb

2012-03-16 22:05:40

From: Yago

Well, anything where you can see the debug decently along with the RS screen… I haven't tried fraps or any "recording" programs because I don't think my computer will be able to handle this, but you help will be greatly appreciated…

Edit: If you will be recording then in the SMART window, press disable debug, so I can see the chat screen :) I tried recording, and it was a fail on my computer.


Ok. I'll take a recording of the closing and reopening SMART window whenever I restart the script and a separate video of the script running. Do you have a preferred host? I'll upload the video to rapidshare or w/e you want.

Yago

2012-03-16 22:07:56

From: akuenpb
Ok. I'll take a recording of the closing and reopening SMART window whenever I restart the script and a separate video of the script running. Do you have a preferred host? I'll upload the video to rapidshare or w/e you want.


Wait… I just noticed that the script fails if SMART is minimized and regains focus… That is because SMART upon re-focus has a completely black screen. Now If check if I'm logged in and the script sees the screen all black and thinks I'm not and logs out…

Too803

2012-03-16 22:19:26

Ah! That could be my issue of it returning to login screen when I am running the script.

Yago

2012-03-16 22:24:09

I will be adding a small check to see if the screen is black and testing it for a few days to see if that fixes the problem. Also, the next version will include SRL STATS.

Edit I will hopefully get it out this weekend or next week.

akuenpb

2012-03-16 22:31:06

But I don't run it minimized. Would a fullscreen video cause it? Nonetheless I'll let it do it's own thing and record it and then you can see for yourself.

Yago

2012-03-16 22:34:32

From: akuenpb
But I don't run it minimized. Would a fullscreen video cause it? Nonetheless I'll let it do it's own thing and record it and then you can see for yourself.


It occurs not only when its minimized… It occurs when it gains focus.

So for example, I am on my web browser, then I switch to SMART. The script will log out.

So far I modified the script and its working great… Its not logging out like before.

Ill test it a little bit more and then release when its ready.

Too803

2012-03-16 23:41:16

Ahh nice! I noticed the problem when I was browsing on the internet while running the script.

akuenpb

2012-03-16 23:57:19

Ahhh so it's not the video it's the swapping between applications. Right o. Well I won't bother sending you the video of that because it's over an hour long -.- I will however send you the video of it closing the SMART window upon restarting the script.

Scratch that. The screen capture software I had works oddly/was a virus. Not sure yet :3 When the script stops on it's own and you press play does the SMART screen close itself and then reopen? That's what happens for me.

Yago

2012-03-17 00:19:04

From: akuenpb
Ahhh so it's not the video it's the swapping between applications. Right o. Well I won't bother sending you the video of that because it's over an hour long -.- I will however send you the video of it closing the SMART window upon restarting the script.

Scratch that. The screen capture software I had works oddly/was a virus. Not sure yet :3 When the script stops on it's own and you press play does the SMART screen close itself and then reopen? That's what happens for me.


It shouldn't … At least it doesn't for me. That's not a bug or anything though. Just make sure that SMART_WORLD in the SMART constants is not set to 0.

akuenpb

2012-03-17 12:19:02

I don't have a SMART_WORLD constant for some reason. It's not mentioned anywhere in the script. I do have a SMART_SERVER which is set to WORLD but that's clearly not what you were talking about.

If you could take a screenshot of what that bit of code should look like and where it should be I'll just add it in myself.

Yago

2012-03-17 16:43:50

From: akuenpb
I don't have a SMART_WORLD constant for some reason. It's not mentioned anywhere in the script. I do have a SMART_SERVER which is set to WORLD but that's clearly not what you were talking about.

If you could take a screenshot of what that bit of code should look like and where it should be I'll just add it in myself.


It looks like this:

                         {----SMART Setup Constants----}
WORLD = 10; // Choose What Server To Load. Set As 0 For Random Sever.
MEMBERS = False; // Member's Server? True = Members. False = Non-Members.
{-----------------------------}

If you choose 0 for WORLD, it will open another SMART every time your run it. Also, if you change numbers a rerun the script, it will open a new SMART.

akuenpb

2012-03-17 18:20:29

From: Yago
It looks like this:

                         {----SMART Setup Constants----}
WORLD = 10; // Choose What Server To Load. Set As 0 For Random Sever.
MEMBERS = False; // Member's Server? True = Members. False = Non-Members.
{-----------------------------}

If you choose 0 for WORLD, it will open another SMART every time your run it. Also, if you change numbers a rerun the script, it will open a new SMART.


Ahhhh. Maybe you should explain that in the original post? I'll set it to a single world from now on. Glad we sorted that out though :) When you update the script will it update on it's own or will I have to re-download it from here?

Yago

2012-03-17 18:56:00

From: akuenpb
Ahhhh. Maybe you should explain that in the original post? I'll set it to a single world from now on. Glad we sorted that out though :) When you update the script will it update on it's own or will I have to re-download it from here?


If you have AutoUpdate set to True then it will automatically download the script to SIMBA/Scripts/ folder.

akuenpb

2012-03-17 19:08:38

So as there's an update I take it you fixed the focusing issue?

EDIT: Oh and do you have any idea why when I set it to use world 13 it used world 35?

Yago

2012-03-17 19:11:57

Update. The Cutting Edge v0.3

Changes Include:
  • [Major Addition] Added SRL Stats.
  • [Bug Fix] Added IsLoggedIn to replace SRL's LoggedIn in order to failsafe the SMART blackscreen on focus bug.
  • [Minor] Report is now printed to the debug console every 60 seconds by default
  • [Minor] Paint is downloaded to the script's directory instead of a static location.
  • [Minor] Added a small failsafe to banking.

Enjoy :spot:

The script should now run longer than every. Another proggy anyone?

Edit: Script is also on github: https://github.com/Yago/SIMBA-Scripts

Edit2: Let me know if the bug still happens with this version…

akuenpb

2012-03-17 19:59:11

Well I'll give you a proggy when I notice the script is finished next. Hopefully 6 hours from now :P

Yago

2012-03-17 20:13:51

From: akuenpb
Well I'll give you a proggy when I notice the script is finished next. Hopefully 6 hours from now :P


Great. I was relieved to find out that my script recently stopped due to a random event and not a bug…

I'd love a 6hr+ proggy :)

If you use this tool:

http://villavu.com/forum/showthread.php?t=76404

you can bypass the 6 hour limit.

akuenpb

2012-03-17 20:19:41

Well it's been running for 43minutes but I'll start it again using SMART manager. Thanks for that I was looking for a way past the 6 hour limit.

EDIT: Here's an update for you so far. I'll make a new post when I hit the 6 hour mark :)

akuenpb

2012-03-18 03:21:38

And here's the 6 hour update:

Yago

2012-03-18 16:51:37

Wow nice. Thank-you for the proggy. I believe the script is nearing flawless… But it looks like the xp and logs per hour are failing.

akuenpb

2012-03-18 18:52:22

Yeah it always just stays at one like it's pulling the number from some other preset constant.

sk80rdie76

2012-03-18 18:55:56

[php]|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Beekeeper Solved ~ 1 |
| Rewards Solved ~ 2 |
| |
|────────────────────────────────────|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 2 min 13 sec |
| Total Logs Chopped : 424 |
| Total Experience Gained : 74200 |
| |
|—————————————————————-|[/php]

stopped after 6 hours

bluephx2

2012-03-18 20:16:37

Can you add a Dragon Hatch for it?

Yago

2012-03-18 21:41:34

From: akuenpb
Yeah it always just stays at one like it's pulling the number from some other preset constant.


You said that was from the update though, so I'm guessing the script thought it was logged out which would give it reason to fail somehow…

From: sk80rdie76
[php]|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Beekeeper Solved ~ 1 |
| Rewards Solved ~ 2 |
| |
|────────────────────────────────────|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 2 min 13 sec |
| Total Logs Chopped : 424 |
| Total Experience Gained : 74200 |
| |
|—————————————————————-|[/php]

stopped after 6 hours


Thank-you for the proggy.

From: bluephx2
Can you add a Dragon Hatch for it?


I could, I'm not a member though so I'd need someone else to test it…

akuenpb

2012-03-18 22:20:37

You said that was from the update though, so I'm guessing the script thought it was logged out which would give it reason to fail somehow…


It was doing that before the update too though.

Yago

2012-03-18 22:21:40

From: akuenpb
It was doing that before the update too though.


That's odd then. Can you recreate the error? I haven't experienced this error at all…

akuenpb

2012-03-18 22:35:58

From: Yago
That's odd then. Can you recreate the error? I haven't experienced this error at all…


Well I can screenshot my current progress report which is showing it. I've restarted Simba several times between showing you my previous progress report and now so if it was just an issue with the update then it should have resolved itself.

Recarnate

2012-03-19 04:20:59

Thanks for making this nice script dude. Here's a progress report for you @ level 65-66 woodcut.


squares

2012-03-19 11:56:28

well done!

I really like how fast it detects yew, this is my NO.1 script from now on.

akuenpb

2012-03-19 17:34:27

I ran the script on a different box and the exp/hour and logs/hour work properly for some reason. Weird? Yes. A problem? Not really.

Yago

2012-03-19 17:53:33

Thanks to all for your compliments and reports. Comments such as these really uplift a scripter.

From: akuenpb
I ran the script on a different box and the exp/hour and logs/hour work properly for some reason. Weird? Yes. A problem? Not really.


By box do you mean computer? I tried everything to recreate that error and couldn't. I am hoping that is a one time error. Oh, and thank-you specifically for your feedback and bug reporting.

akuenpb

2012-03-19 18:13:38

Yes I ran it on a different laptop and it works fine. Oh and I don't know if it was your script specifically or Simba but it failed to do the Leo/Gravedigger random.

EDIT: As far as the bug-reporting is concerned you're welcome :) Anything I can do to make the script better/more efficient I'm happy to help.

Yago

2012-03-19 18:20:08

From: akuenpb
Yes I ran it on a different laptop and it works fine. Oh and I don't know if it was your script specifically or Simba but it failed to do the Leo/Gravedigger random.

EDIT: As far as the bug-reporting is concerned you're welcome :) Anything I can do to make the script better/more efficient I'm happy to help.


The calculators rely on the computer time… so maybe if somethign is wrong there it may be messed up. Anyways, glad its not a global problem.

As for the random events, a good script is able to detect them in all circumstances. The include itself, SRL, and not my script, is what solves randoms.

Here is the link: http://villavu.com/forum/forumdisplay.php?f=460

The randoms need constructive criticism and helpful feedback :)

Edit: That specific random event is disabled, but they may need an account to help fix the solver.

akuenpb

2012-03-19 18:35:20

Edit: That specific random event is disabled, but they may need an account to help fix the solver.


Yeah I had a look in it's thread and they've already got enough accounts. Three non-working randoms isn't a big issue as most of the others do currently work.

sk80rdie76

2012-03-19 23:49:58

[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 45 min 59 sec |
| Total Logs Chopped : 518 |
| Total Experience Gained : 90650 |
| |
|—————————————————————-|[/php]

manually stopped. love this script

Recarnate

2012-03-21 23:34:49

Automatically stopped, dunno why.
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active...
All players not active!
[Report]
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Cap'n Arnav Solved ~ 1 |
| Rewards Solved ~ 3 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.3 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 1 min 39 sec |
| Total Logs Chopped : 513 |
| Total Experience Gained : 89775 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]: xxx
| |
| Time Active : 6 hr 1 min 20 sec |
| Logs Chopped : 513 |
| Logs Per Hour : 86 |
| Experience Gained : 89775 |
| Experience Per Hour : 14908 |
| |
*----------------------------------------------------------------*
[/Report]
"Bye Guys" - Yago
Successfully executed.
The following bitmaps were not freed: [3]

Ganja83

2012-03-21 23:49:45

Thank you!

Yago

2012-03-21 23:51:37

Do you think it was because of the 6hr limit? It ran for around 6 hours.

akuenpb

2012-03-22 02:30:39

The longest I've heard of anyone running a bot for since they implemented the client token thing was 10 hours. I've never managed to get one to run past say 6 hours 5 minutes.

Yago

2012-03-23 17:59:29

I'm working on an update to include Deathwalking. In that way, you can start anywhere in runescape as long as you have an axe and are not in a random event.

I'm doing this because I noticed that some of our solvers fail a random and you are teleported out.

sk80rdie76

2012-03-23 21:13:57

[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 4 hr 33 min 11 sec |
| Total Logs Chopped : 270 |
| Total Experience Gained : 47250 |
| |
|—————————————————————-|[/php]

stopped because SRL couldnt solve maze random

Yago

2012-03-23 21:24:41

From: sk80rdie76
[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 4 hr 33 min 11 sec |
| Total Logs Chopped : 270 |
| Total Experience Gained : 47250 |
| |
|—————————————————————-|[/php]

stopped because SRL couldnt solve maze random


Wow nice. I got mine stopped cause of a random too.

As for the deathwalk I was going to introduce, it will have to wait because of some SPS innaccuracies and problems.

sk80rdie76

2012-03-28 23:41:17

[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 31 min 35 sec |
| Total Logs Chopped : 439 |
| Total Experience Gained : 76825 |
| |
|—————————————————————-|[/php]

manually stopped

Awkwardsaw

2012-03-29 08:04:26

*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 1 min 18 sec |
| Total Logs Chopped : 402 |
| Total Experience Gained : 70350 |
| |
|—————————————————————-|


it stopped when the client reloaded

Yago

2012-03-29 20:08:53

Thank-you guys for the proggies. They mean a lot. I always welcome proggies and suggestions

@Awkwardsaw Long time. Nice to see you around again.

Awkwardsaw

2012-03-29 20:26:31

From: Yago
Thank-you guys for the proggies. They mean a lot. I always welcome proggies and suggestions

@Awkwardsaw Long time. Nice to see you around again.


I finally have free time again. ;) expect some more

sk80rdie76

2012-03-29 23:48:16

[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 13 min 28 sec |
| Total Logs Chopped : 536 |
| Total Experience Gained : 93800 |
| |
|—————————————————————-|[/php]

manually stopped

Awkwardsaw

2012-03-30 17:09:03

*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 2 min 53 sec |
| Total Logs Chopped : 688 |
| Total Experience Gained : 120400 |
| |
|—————————————————————-|

sk80rdie76

2012-03-31 00:20:57

[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 55 min 17 sec |
| Total Logs Chopped : 795 |
| Total Experience Gained : 139125 |
| |
|—————————————————————-|[/php]

manually stopped. got 94 wc this run.

Yago

2012-03-31 11:16:43

From: sk80rdie76
[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 55 min 17 sec |
| Total Logs Chopped : 795 |
| Total Experience Gained : 139125 |
| |
|—————————————————————-|[/php]

manually stopped. got 94 wc this run.


Congrats. Any new features you would like to see in newer versions?

sk80rdie76

2012-03-31 14:57:03

From: Yago
Congrats. Any new features you would like to see in newer versions?


a breaking option would be nice

Yago

2012-03-31 15:09:16

From: sk80rdie76
a breaking option would be nice


OK. Ill work on that next.

Awkwardsaw

2012-03-31 15:46:51


it stopped because of molly a few hours after me taking that screen.

clinkton5

2012-04-04 19:24:48

yago i set members to true and when it logs in now it says bitmaps not freed (3) and stops the script

Yago

2012-04-04 19:41:00

From: clinkton5
yago i set members to true and when it logs in now it says bitmaps not freed (3) and stops the script


I'm going to need a lot more details than that… Have you tried running the script multiple times?

Which members do you mean? Do you mean the SMART constant or the MyPlayer variable in declare players?

clinkton5

2012-04-04 22:46:26

ok nvm i figured out what it was it didnt recognize dragon hatchet had to put rune back on so mayb that is something you should put in your next version, being able to use d hatchet

Yago

2012-04-05 09:28:25

I plan to do so, but I need an account….

sk80rdie76

2012-04-06 23:57:34

[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 53 min 14 sec |
| Total Logs Chopped : 511 |
| Total Experience Gained : 89425 |
| |
|—————————————————————-|[/php]

manually stopped

EDIT:
another one

[php]*—————————————————————-*
| The Cutting Edge 0.3 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 57 min 50 sec |
| Total Logs Chopped : 474 |
| Total Experience Gained : 82950 |
| |[/php]

BobboHobbo

2012-04-15 08:51:39

I was having a geeze through the script, cause im a wood cutting script lover haha, I love it ! was written so well, thought id give you a thumbs up on your work :). Good job !

Yago

2012-04-15 11:50:12

From: BobboHobbo
I was having a geeze through the script, cause im a wood cutting script lover haha, I love it ! was written so well, thought id give you a thumbs up on your work :). Good job !


Thank-you man. It means a lot from a scripter's perspective to another scripter. Thank God for people like you :)

Have you read the code or just by running it? If you decide on reading it, then check out the non-SPS walking parts (probably what I enjoyed problem solving and coding most).

sk80rdie76

2012-04-18 18:37:35

Do you think you'll update the script to SPS 2.0?

Yago

2012-04-18 18:42:00

From: sk80rdie76
Do you think you'll update the script to SPS 2.0?


Most likely once I get time. I might be able to do it today, if not then I wont be here next week.

sk80rdie76

2012-04-20 19:31:19

From: Yago
Most likely once I get time. I might be able to do it today, if not then I wont be here next week.


Alright, I look forward to it.

Yago

2012-04-20 23:47:36

From: sk80rdie76
Alright, I look forward to it.


Turns out that SPS is not as stable as the last version, so I might go to ObjectDTM's.

golfergag

2012-04-21 19:37:42

I'm sure this doesn't happen with only your script, however i never seem to be able to run a script for more than an hour without my account logging out. It keeps saying my player is not active then just stops the script. How do i fix this?

Yago

2012-04-21 21:54:14

From: golfergag
I'm sure this doesn't happen with only your script, however i never seem to be able to run a script for more than an hour without my account logging out. It keeps saying my player is not active then just stops the script. How do i fix this?


read above…

Kindful

2012-04-21 22:18:12

Working great, hope you can add Dragon Hatchet support. Thanks mate!

Dylan

2012-04-25 15:59:23

Great work.
Only problems I have with the script are:
- debug in SMART is a bit resource intensive
- doesn't handle lag perfectly
- CPU usage seems to increase with time until reaching a max, causing the script to fail.
- occasionally gets hung up in bank (might just be from above)
This may just be a problem with my computer, so quick stats:
CPU: Dual-core 2.17GHz
RAM: 4 GB
OS: Windows 7 64-bit


Other suggestions:
- options for break time
- support for the new on-screen advertisements (might be SRL)
- a way to switch worlds automatically when the server has too many players chopping relative to the players in the world itself. (if resource intensive, also an option to shut it off)
- and, of course, dragon hatchet support

Thanks for the script.

Yago

2012-05-01 21:25:33

From: Dylan
Great work.
Only problems I have with the script are:
- debug in SMART is a bit resource intensive
- doesn't handle lag perfectly
- CPU usage seems to increase with time until reaching a max, causing the script to fail.
- occasionally gets hung up in bank (might just be from above)
This may just be a problem with my computer, so quick stats:
CPU: Dual-core 2.17GHz
RAM: 4 GB
OS: Windows 7 64-bit


Other suggestions:
- options for break time
- support for the new on-screen advertisements (might be SRL)
- a way to switch worlds automatically when the server has too many players chopping relative to the players in the world itself. (if resource intensive, also an option to shut it off)
- and, of course, dragon hatchet support

Thanks for the script.


Thank-you very much for the feedback.

What exactly do you mean by the debug in SMART? Do you mean the paint?

What part during the script does it not handle lag perfectly?

Do you mean CPU usage or Memory? CPU doesn't often do that.

The world switching I may add but in the future. Breaks and dragons axes are next on my list of suggestions.

But first I am in the process of an update to remove SPS and fix walking.

Yago

2012-05-01 22:13:15

Update. The Cutting Edge v0.4

Changes Include:
  • [Major Change] Removed SPS 2.0 (Inaccurate) And Switched To ObjDTM.
  • [Minor] More Accurate Stats
  • [Minor] Shortened code using xor…

Enjoy :spot:

Detailed Changes – https://github.com/Yago/SIMBA-Scripts/commits/master

Hitachi

2012-05-01 23:39:42

finally! new update, i was stucked there i mean while banking and not returning to tree.

gotta give it a try. btw does it fix the stuck part? while banking?


edit:
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

error when i press play (green arrow)

Yago

2012-05-02 08:05:29

From: Hitachi
finally! new update, i was stucked there i mean while banking and not returning to tree.

gotta give it a try. btw does it fix the stuck part? while banking?


edit:
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

error when i press play (green arrow)


Try to use the search button or read the FAQ or something…

edit: have you tried the update? if so, are you saying it doesn't bank, or walk to the bank, or walk from the bank to trees?

Dylan

2012-05-02 10:31:45

From: Yago
Thank-you very much for the feedback.

What exactly do you mean by the debug in SMART? Do you mean the paint?

What part during the script does it not handle lag perfectly?

Do you mean CPU usage or Memory? CPU doesn't often do that.

The world switching I may add but in the future. Breaks and dragons axes are next on my list of suggestions.

But first I am in the process of an update to remove SPS and fix walking.


I believe in do mean the paint. The overlaying display on the message box. Clicking the disable debug button in SMART always makes the client run smoother and the script run longer.

Its seems to get hung up most often while banking, specifically:
- in between those graves on the way back to the bank
- in the bank just before selecting a banker
- and in the bank inventory screen

I mean CPU. I don't have the best processor, but it starts out using 50-75% of my CPU and slowly increases, while memory seems to stay at about 50% including general usage.

thanks for the update.

EDIT:
CPU/lag problems fixed with the v0.4

Lordzsolt

2012-05-02 12:39:29

By AntiRandoms support you mean it solves random events?

Hitachi

2012-05-02 14:09:21

From: Yago
Try to use the search button or read the FAQ or something…

edit: have you tried the update? if so, are you saying it doesn't bank, or walk to the bank, or walk from the bank to trees?




i tried the v4.0 and i got the objecttdm error,

i was refering to v3.0 that the banking stucked

Yago

2012-05-02 14:58:55

From: Lordzsolt
By AntiRandoms support you mean it solves random events?


Correct, but it uses SRL Randoms solvers. Not all randoms are supported.

From: Hitachi
i tried the v4.0 and i got the objecttdm error,

i was refering to v3.0 that the banking stucked


The ObjDTM error is a common one so a simple search would suffice. And version 0.4 is supposed to fix all the walking errors… Once you get 0.4 running let me know if you still experience problems.


Edit:

@Dylan, You can control the paint by altering the paintwait constant. There are instructions in the script to help you out.

Lordzsolt

2012-05-02 15:20:57

From: Yago
Correct, but it uses SRL Randoms solvers. Not all randoms are supported.


What happens in case of an unsupported random? Does it log out?

Yago

2012-05-02 15:22:24

From: Lordzsolt
What happens in case of an unsupported random? Does it log out?


It should by default… then my script will notice and move on to the next player or terminate.

Dylan

2012-05-02 16:34:39

From: Yago
@Dylan, You can control the paint by altering the paintwait constant. There are instructions in the script to help you out.


Changed the paintwait constant to 1000, client skipped a frame or two with each paint update, as well as more overall compared to disabling paint in SMART.
changed paintwait constant to 0, client skipped more compared to disabling paint in SMART.

Perhaps I'm misunderstanding, is how we perceive the client running with the paint also how the script perceives the client with the paint?
or in other words, does enabling paint or disabling paint have any effect on how the script perceives the clients framerate?
if it doesn't, then my problem is irrelevant.

Yago

2012-05-02 17:50:01

From: Dylan
Changed the paintwait constant to 1000, client skipped a frame or two with each paint update, as well as more overall compared to disabling paint in SMART.
changed paintwait constant to 0, client skipped more compared to disabling paint in SMART.

Perhaps I'm misunderstanding, is how we perceive the client running with the paint also how the script perceives the client with the paint?
or in other words, does enabling paint or disabling paint have any effect on how the script perceives the clients framerate?
if it doesn't, then my problem is irrelevant.


Well, if we read this line near the top of the script

 PaintWait = 50;            // How Often In Miliseconds To Print On Screen. Set To 0 For No Paint   

We can alter how often to update the paint. Also, we see that it says "Set To 0 For No Paint"..

If you set it to 0 then there should be no onscreen paint. I have just tested it and it should be working fine…

As for the frames per second, the paintwait does not control that… The slider to the right Of SMART does… If you set that all the way down then you get no fps and the script that relies on color should fail to work. Try loading runescape in a browser and see how much CPU it takes up… RS has become a pretty CPU intensive game. I have a machine similar to yours and I can barely run 2 SMARTS @ 100%+ and one SMART at 70-80%

sk80rdie76

2012-05-02 20:11:36

i get this error when banking:

[php]Status: Banking
Walking to path node 0.
Flag distance reached.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Failed to walk to path node 1, trying to step forward or back one node.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Error: Out Of Range at line 1777
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3]
[/php]

Yago

2012-05-02 21:07:44

From: sk80rdie76
i get this error when banking:

[php]Status: Banking
Walking to path node 0.
Flag distance reached.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Did not find path node 1.
Failed to walk to path node 1, trying to step forward or back one node.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Did not find Object DTM.
Error: Out Of Range at line 1777
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3]
[/php]


That's odd, I've run it quite sometime with no errors. Do you get this on your way to the bank? On your way to the trees from the bank or at the bank?

I can see what is possibly causing this error…

sk80rdie76

2012-05-02 22:41:54

From: Yago
That's odd, I've run it quite sometime with no errors. Do you get this on your way to the bank? On your way to the trees from the bank or at the bank?

I can see what is possibly causing this error…


on my way to the bank with a full load

shap08

2012-05-04 21:02:39

Hey Yago, great script!

However im having trouble banking. At the yew tree furthest from the bank appears to be a black spot. It doesnt know where to go once the inventory is full. But if i disable SMART and move towards the bank it pick up the points again and is able too locate the bank. There must be a point missing near this tree.

If the inventory is full at the yew closest too the bank it is fine, it detects the point that you have created and finds its way straight too the bank and back. It just has issues with the other tree.

Great script tho. Works really well. Good tree detection etc.


Level 96 Woodcutting with a rune hatchet.

here is the where script wont bank:
and as you can see once i move the character into another location it pick up and is able to bank and return cutting yews.

If you need any further info please ask.

Cheers

Yago

2012-05-04 22:00:33

From: shap08
Hey Yago, great script!

However im having trouble banking. At the yew tree furthest from the bank appears to be a black spot. It doesnt know where to go once the inventory is full. But if i disable SMART and move towards the bank it pick up the points again and is able too locate the bank. There must be a point missing near this tree.

If the inventory is full at the yew closest too the bank it is fine, it detects the point that you have created and finds its way straight too the bank and back. It just has issues with the other tree.

Great script tho. Works really well. Good tree detection etc.


Level 96 Woodcutting with a rune hatchet.

here is the where script wont bank:
and as you can see once i move the character into another location it pick up and is able to bank and return cutting yews.

If you need any further info please ask.

Cheers


Thank-you for this detailed report with pictures and everything. Perfect feedback, I know exactly what must be changed.

Expect an update soon.

Yago

2012-05-04 23:10:43

Can you replace line 77 with and let me know if you still experience these same errors?

MidPoint = '107:49:5:1:7:33:48:1:7:34:92:3:7:36:76:3:7:40:64:3:7:24:72:4:99:41:116:41:116:59:99:59';

shap08

2012-05-05 04:10:14

alright im testing that out now. Ill report back.

Thanks man.

Yago

2012-05-05 09:35:02

From: shap08
alright im testing that out now. Ill report back.

Thanks man.


Ok, be sure to let me know and thank-you

shap08

2012-05-05 13:21:29

Still getting stuck


sk80rdie76

2012-05-05 17:31:01

after I changed line 77, so far its working well.

[php]*—————————————————————-*
| The Cutting Edge 0.4 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 3 min 15 sec |
| Total Logs Chopped : 649 |
| Total Experience Gained : 113575 |
| |
|—————————————————————-|[/php]

SMART restarted

Yago

2012-05-05 17:43:57


If you look really closely, on of the trees on the minimap is missing a trunk… I have yet another solution for this.

golfergag

2012-05-05 19:18:37

It says: Unable to find ObjectDTM/ObjDTMInclude.simba before I can even run it.

sk80rdie76

2012-05-05 19:42:51

From: Yago

If you look really closely, on of the trees on the minimap is missing a trunk… I have yet another solution for this.


awesome…..right after I posted that proggy, my next account started having the same old issues:duh:

shap08

2012-05-05 19:57:01

From: golfergag
It says: Unable to find ObjectDTM/ObjDTMInclude.simba before I can even run it.


Please read the FAQ page or search "How too install ObjDTMInclude.simba"

euphemism

2012-05-05 20:46:20

From: sk80rdie76
i get this error when banking:

[php]Status: Banking
Walking to path node 0.
Flag distance reached.
Did not find path node 1.
-snip-
Failed to walk to path node 1, trying to step forward or back one node.
-snip-
Did not find Object DTM.
Error: Out Of Range at line 1777
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3]
[/php]


Would you mind either opening Simba/Includes/ObjectDTM/ObjDTMInclude.simba and posting the version number that is near the top of the file, or forcing an update for the Object DTM Include and posting what the debug box says is the "Local Version"?

From: Yago

If you look really closely, on of the trees on the minimap is missing a trunk… I have yet another solution for this.


Both of the rare tree symbols appear to have trunks, or maybe you are referring to a normal tree image? If you are concerned with that affecting your Object DTMs the include doesn't look for trunks when it searches for the trees.

sk80rdie76

2012-05-05 20:58:15

From: euphemism
Would you mind either opening Simba/Includes/ObjectDTM/ObjDTMInclude.simba and posting the version number that is near the top of the file, or forcing an update for the Object DTM Include and posting what the debug box says is the "Local Version"?





says I have 9.9

EDIT: went to your thread and downloaded the extension for Simba and manually updated, will test now.

euphemism

2012-05-05 23:27:56

From: sk80rdie76
says I have 9.9

EDIT: went to your thread and downloaded the extension for Simba and manually updated, will test now.


Well, if you have updated to 10.0 you should no longer experience a script crash if a path walk fails.

sk80rdie76

2012-05-06 12:37:22

while banking it quit again

[php]Status: Banking
Error: Out Of Range at line 1846
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3][/php]


Gator

2012-05-06 13:45:50

works flawlessly for me thanks!!!!!!!!!!!!!! i will post proggy soon

EDIT: it wont do anything after i got a randowm it just sits there.

EDIT EDIT: nevermind i just had to restart simba for some reason but working again will post proggy soon :)

Yago

2012-05-06 18:56:36

From: euphemism
Both of the rare tree symbols appear to have trunks, or maybe you are referring to a normal tree image? If you are concerned with that affecting your Object DTMs the include doesn't look for trunks when it searches for the trees.


Oh hey euph, :)

I didn't mean the rare tree, I was looking at the normal tree but if thats not the case, then what do you think is affecting the ObjDTM? All objects I use are on-screen? Any ideas?

From: sk80rdie76
while banking it quit again

[php]Status: Banking
Error: Out Of Range at line 1846
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3][/php]


Let me know if this still happens with 10.0

Edit: Actually, it looks like node 1 is messed up and I've been trying to go for node 0. Time to recheck by path. Hopefully, this is the problem.

sk80rdie76

2012-05-06 20:26:35

From: Yago






Let me know if this still happens with 10.0

Edit: Actually, it looks like node 1 is messed up and I've been trying to go for node 0. Time to recheck by path. Hopefully, this is the problem.


that did happen with 10.0

Gator

2012-05-06 22:06:15

the bot was working good till today now it wont bank it just stand there saying banking but does nothing then it logs out…

euphemism

2012-05-07 00:15:35

From: Yago
Oh hey euph, :)

I didn't mean the rare tree, I was looking at the normal tree but if thats not the case, then what do you think is affecting the ObjDTM? All objects I use are on-screen? Any ideas?


An errant dot might have wandered over one of the objects causing it to fail. I am not really sure. Sometime in the near future there is to be an overhaul on the include to improve reliability and to add enhanced features.

From: sk80rdie76
that did happen with 10.0


D'oh. Fixed.

shap08

2012-05-07 22:50:32

script appears too be just rotating the camera in a 360 now.

FIXED:
From: Brandon
Open C:\Simba\Includes\SRL\SRL\core\flag.simba

change line 38 to:
FindColorsSpiralTolerance(T.x, T.y, TPA, 65536, x1, y1, x2, y2, 0);

That is the temporary fix until SRL updates.

sk80rdie76

2012-05-09 00:42:12

got a good run in

[php]*—————————————————————-*
| The Cutting Edge 0.4 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 45 min 37 sec |
| Total Logs Chopped : 861 |
| Total Experience Gained : 150675 |
| |
|—————————————————————-|[/php]

manually stopped

Hitachi

2012-05-09 09:29:50

sk8 - you got it to work now? i mean no stuck or stop moving?

sk80rdie76

2012-05-09 19:14:17

From: Hitachi
sk8 - you got it to work now? i mean no stuck or stop moving?


yea it worked fine….trying my second run now, ill keep you guys updated

Yago

2012-05-09 19:30:12

From: sk80rdie76
yea it worked fine….trying my second run now, ill keep you guys updated


Great…

Ill be releasing a new version in a few days… but before i release:

Anouncement:
Can anyone lend me an account with a dragon hatchet. I only need it to make the DTM and test it with the script. Thank-you

Cashbaq

2012-05-10 07:56:08

*—————————————————————-*
| The Cutting Edge 0.4 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 26 min 29 sec |
| Total Logs Chopped : 45 |
| Total Experience Gained : 7875 |
| |
|—————————————————————-|

Yago - If you're still keen for an acc with a d hatchet, I'll let you borrow mine. Let me know:)

~Cash~

http://tinypic.com/r/oax312/6

Sp0wn

2012-05-10 12:29:56

Hi there,

i am fairly new to simba botting,
i placed you're v0.4 in the simba client but when i try to run this i get this error
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

Is this an easy to fix problem or am i just doing something completely wrong.

Thanks,

Sp0wn

Gala

2012-05-10 15:13:38

Install the ObjDTM include. Search for "ObjDTM", it is an include by euphemism.

bricks

2012-05-10 21:06:11

Cuts trees fine but it won't bank my items, says the status is banking multiple times yet it fails to click to go to the bank.

rxngxrr

2012-05-10 21:26:17

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

Yago

2012-05-10 21:44:48

From: bricks
Cuts trees fine but it won't bank my items, says the status is banking multiple times yet it fails to click to go to the bank.


There will be an update soon.

From: rxngxrr
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''


Look a few posts above… Next time search before posting

Yago

2012-05-11 16:21:29

Update. The Cutting Edge v0.5

Changes Include:
  • [Major Addition] Added Dragon Hatchet.
  • [Minor] Changed ObjDTM BankPoint and Created ObjDTM_WalkPathEx.
  • [Minor] Removed Infinite Loop When Status Was Set To 'Banking'.
  • [Minor] Removed Unused, commented code

(Thanks to Euphemism for the account!!)

Enjoy :spot:

Detailed Changes – https://github.com/Yago/SIMBA-Scripts/commits/master

sk80rdie76

2012-05-11 23:41:30

With the new version:
[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 3 min 10 sec |
| Total Logs Chopped : 596 |
| Total Experience Gained : 104300 |
| |
|—————————————————————-|[/php]

Sp0wn

2012-05-13 07:18:57

Going to test this now,
thanks for you're time making this!

Sp0wn

Yago

2012-05-13 10:00:00

From: Sp0wn
Going to test this now,
thanks for you're time making this!

Sp0wn


Your welcome. Hopefully you like this script.

All feedback is greatly appreciated.

kyden11

2012-05-14 05:48:43

wont work for me says

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

Yago

2012-05-14 08:03:10

I won't even bother answering that question as you didn't bother reading up above or searching for an answer (*hint*)…

Cashbaq

2012-05-16 01:04:41

[PHP]|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 3 hr 35 min 35 sec |
| Total Logs Chopped : 479 |
| Total Experience Gained : 83825 |
| |
|—————————————————————-|[/PHP]
Note: With Dragon hatchet

THANK YOU YAGO!!

sk80rdie76

2012-05-16 01:58:42

[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 4 hr 29 min 50 sec |
| Total Logs Chopped : 406 |
| Total Experience Gained : 71050 |
| |
|—————————————————————-|[/php]

manually stopped

Yago

2012-05-16 08:10:13

From: Cashbaq
[PHP]|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 3 hr 35 min 35 sec |
| Total Logs Chopped : 479 |
| Total Experience Gained : 83825 |
| |
|—————————————————————-|[/PHP]
Note: With Dragon hatchet

THANK YOU YAGO!!


From: sk80rdie76
[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 4 hr 29 min 50 sec |
| Total Logs Chopped : 406 |
| Total Experience Gained : 71050 |
| |
|—————————————————————-|[/php]

manually stopped


Wow, both great reports. I still have to work on some updates of this script…

partyboyrawr

2012-05-16 10:20:07

really great, flawless. But I seem to be travelling to places :\, it would say banking then it would run off to another location

Yago

2012-05-16 15:01:06

From: partyboyrawr
really great, flawless. But I seem to be travelling to places :\, it would say banking then it would run off to another location


What places specifically?

partyboyrawr

2012-05-16 17:33:29

From: Yago
What places specifically?


so far the 2 places i've been too are wolf mountain(i've died from there) and towards the mugs or whatever across the river from the ban.k in edge

Yago

2012-05-16 23:32:29

From: partyboyrawr
so far the 2 places i've been too are wolf mountain(i've died from there) and towards the mugs or whatever across the river from the ban.k in edge


That's weird. Have you watched the bot go these places or did you just log in there?

shap08

2012-05-17 00:23:24

From: partyboyrawr
so far the 2 places i've been too are wolf mountain(i've died from there) and towards the mugs or whatever across the river from the ban.k in edge



I can confirm this.

I watched it walk too the mountains and also ive seen it wonder into those buildings above the edge bank.

Another wise great script thankyou again!

sk80rdie76

2012-05-17 00:26:07

[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 4 min 6 sec |
| Total Logs Chopped : 676 |
| Total Experience Gained : 118300 |
| |
|—————————————————————-|[/php]

another proggy

partyboyrawr

2012-05-17 02:55:03

From: Yago
That's weird. Have you watched the bot go these places or did you just log in there?


i've have seen it walk to the places and i've logged on to see that im dead from the wolfs in the mountain.

Yago

2012-05-17 08:07:26

From: partyboyrawr
i've have seen it walk to the places and i've logged on to see that im dead from the wolfs in the mountain.


That's a pretty long walk… I'm confused as to what's happening. I'll mess around with the walking and see what's up.

sk80rdie76

2012-05-18 00:16:11

[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 2 min 9 sec |
| Total Logs Chopped : 532 |
| Total Experience Gained : 93100 |
| |
|—————————————————————-|[/php]

caught it once trying to run north towards the wildy ditch from the edge bank

partyboyrawr

2012-05-18 04:37:39

From: Yago
That's a pretty long walk… I'm confused as to what's happening. I'll mess around with the walking and see what's up.


alrite thank you :) love the script by the way :)

sk80rdie76

2012-05-18 19:36:35

[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 4 min 8 sec |
| Total Logs Chopped : 580 |
| Total Experience Gained : 101500 |
| |
|—————————————————————-|[/php]

working very well

Yago

2012-05-18 23:33:56

From: sk80rdie76
[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 4 min 8 sec |
| Total Logs Chopped : 580 |
| Total Experience Gained : 101500 |
| |
|—————————————————————-|[/php]

working very well


Thank-you.

I don't know if Ill have to time to look over the script this weekend or maybe even this week cause of some work, but Ill be sure to attempt after Monday. If not I may most likely try next weekend.

BassDropping

2012-05-23 14:23:22

From: Yago
Does it say anything after that?


It keeps saying cant find Object.DTM, wtf dat mean HELPPP

sk80rdie76

2012-05-23 19:43:41

From: BassDropping
It keeps saying cant find Object.DTM, wtf dat mean HELPPP


post #180 and 181 will solve your problem

new proggy:
[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 35 min 22 sec |
| Total Logs Chopped : 528 |
| Total Experience Gained : 92400 |
| |
|—————————————————————-|[/php]

manually stopped

partyboyrawr

2012-05-24 09:48:53

From: Yago
That's a pretty long walk… I'm confused as to what's happening. I'll mess around with the walking and see what's up.


did you manage to find anything yago?

Yago

2012-05-24 11:20:11

From: partyboyrawr
did you manage to find anything yago?


I still haven't managed to find the time, and the rest of this week/weekend is going to be hectic.for me.

I'm thinking of trying new walking methods, because in order for ObjDtms to work all the time, they must be inaccurate to the point that they cause false positives. Yet, if you make them more accurate, then you get the bug from the last version: that the point cannot be found…

WeeJazzah

2012-05-25 12:32:12

I love this script although i also find myself in white wolf mountain or the grand exchange every now and then, also it somehow stops working after around 5 hours and logs me out not sure what the problem is there though. Besides that a very good script. Well Done :)

Yago

2012-05-25 14:24:09

From: WeeJazzah
I love this script although i also find myself in white wolf mountain or the grand exchange every now and then, also it somehow stops working after around 5 hours and logs me out not sure what the problem is there though. Besides that a very good script. Well Done :)


If it stops at around 5+ hours then, its most likely the client token error…
As for the walking, I'm working on it :)

Edit: Can anyone record this happening live for me? If one of you do, can you also record the SIMBA debug box and set DebugScript to True in the script constants?

Thank-you. Its much appreciated.

mid flows

2012-05-25 21:35:05

mine wont even load correctly it logs in then as logoutstatus

mid flows

2012-05-25 21:41:43

runs fine if i use ruen axe but not d axe….

Yago

2012-05-25 22:13:30

From: mid flows
runs fine if i use ruen axe but not d axe….


What does the debug say? Please be a bit more descriptive as to what the script does also.

Crit

2012-05-26 10:57:35

Hey Guys
i know post 181 explains the problem with the
" Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from ''" error. I have downloaded the ObjectDTM.sex and placed insode my extensions folder.
Yet the problem persists and i am out of ideas. Somebody please help??
-Crit

litoris

2012-05-26 11:27:34

From: Crit Boy
Hey Guys
i know post 181 explains the problem with the
" Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from ''" error. I have downloaded the ObjectDTM.sex and placed insode my extensions folder.
Yet the problem persists and i am out of ideas. Somebody please help??
-Crit


You need to enable it from View>Extensions, and then update it using the new ODTM tab you get.

feh55

2012-05-26 14:51:37

I dont got any progress report saved but i love this script. But im concerned and confused about the script running off from the spot. I found it near the south western corner of grand exchange and it had logged out after a while. This morning i found it at the general store in edgeville just standing there. Just plain wierd, any solution? As i said i love this script and i thank you so much for putting your time in to it :)

iiRoche

2012-05-26 15:38:16

It runes for about 18 minutes then logs me out and says the thing below.
It also has slow reactions and low xp per hour rate for me, around 21k/h.

"Bye Guys" - Yago
Successfully executed.
The following bitmaps were not freed: [3]

partyboyrawr

2012-05-27 09:07:54

From: Yago
I still haven't managed to find the time, and the rest of this week/weekend is going to be hectic.for me.

I'm thinking of trying new walking methods, because in order for ObjDtms to work all the time, they must be inaccurate to the point that they cause false positives. Yet, if you make them more accurate, then you get the bug from the last version: that the point cannot be found…


haha seems like your gonna have a fun week then :) enjoy.

hmm bugs if you make it any more accurate. :\ seems difficult

From: Yago
If it stops at around 5+ hours then, its most likely the client token error…
As for the walking, I'm working on it :)

Edit: Can anyone record this happening live for me? If one of you do, can you also record the SIMBA debug box and set DebugScript to True in the script constants?

Thank-you. Its much appreciated.


ill try to go on sometime this week and record myself.

shap08

2012-05-29 18:43:32

banking appears to be broken. They changed the colour.

Yago

2012-05-29 19:33:18

From: shap08
banking appears to be broken. They changed the colour.


I guess this is my anti leech then. Don't worry though, this update will be reverted after around two weeks.

shap08

2012-05-29 22:21:48

Is there a quick fix? Changing the bank colours?

Yago

2012-05-29 23:34:04

Essential, or you could use the SRL colors or you could use the SRL function…

shap08

2012-05-30 03:59:27

Is this right?
http://i.imgur.com/WgKvR.jpg

Roflme

2012-05-30 21:54:25

From: shap08
Is this right?
http://i.imgur.com/WgKvR.jpg


Don't just ask if it's right; try it out yourself :tongue:

Great script, will get you a proggy in the morning. Smart manager just closed a 5 hour one :duh:

Yago

2012-05-30 22:28:35

I might get around to releasing an unofficial version … but ill be kind of busy the rest of this week and next week with tests/finals.

shadow131

2012-06-01 06:11:11

nvm :D

Yago

2012-06-03 18:36:16

I'm still waiting for some videos if you guys can… I tried SPS again and it started working slighty. But at least it started working for what we need. I may reintroduce SPS back into the script if it runs well.

kevin33

2012-06-03 18:43:15

I altered the banker colours so it would work for me (v. 0.5). It was working fine just havent used it that much. Ran it about an hour the other day cuz i was bored.
What do you need a video of??

Yago

2012-06-03 18:47:50

From: kevin33
I altered the banker colours so it would work for me (v. 0.5). It was working fine just havent used it that much. Ran it about an hour the other day cuz i was bored.
What do you need a video of??


Apparently, when walking the bot seems to veer off into other areas and often times the character ends up dying or is found in another area. I have found my character near the edgeville man house and stuff, but I have never actually witnessed the bot move to these places itself. And i've done tons of watching the bot lately. I don't know if its the RS client playing with me or what, but a video of RS and the debug box(with the constant debugscript set to true) would be highly helpful.

In the end, if I trun to SPS I may not need the video at all. Its just that SPS isn't as accurate as I need. I still have to play around with SPS a bit and see if it workout.

kevin33

2012-06-03 18:51:38

Well I for one have never had an issue with this when I used the script. You should make another woodcutting script BTW. Not enough f2p locations that work.
I will be using this again soon when my f2p only account gets 99 craft.

Yago

2012-06-03 18:56:05

From: kevin33
Well I for one have never had an issue with this when I used the script. You should make another woodcutting script BTW. Not enough f2p locations that work.
I will be using this again soon when my f2p only account gets 99 craft.


The problem is that I am f2p only and have always been(so no member spots for me). Most f2p spots are crap now…

Fanta

2012-06-04 04:56:12

End up near wolves..

Clairvoyance

2012-06-04 07:33:28

As soon as I hit level 60 with MSI powercutter which is in a few hours,I'm gonna try it and post a report.

The_Dude

2012-06-05 02:38:51

Any clues on how I can get this to bank? It really does cut very well!

Yago

2012-06-05 15:52:32

From: The_Dude
Any clues on how I can get this to bank? It really does cut very well!


Read up a bit…

kevin33

2012-06-05 15:58:50

Yago, if its alright with you (I will take it off if you would like) I will post the banking colours that work for me.
Line 71-74
BankerColor = 5997770;
BankerHue = 0.06;
BankerSat = 0.45;
BankerHSLTol = 30;

Yago

2012-06-05 16:11:17

From: kevin33
Yago, if its alright with you (I will take it off if you would like) I will post the banking colours that work for me.
Line 71-74
BankerColor = 5997770;
BankerHue = 0.06;
BankerSat = 0.45;
BankerHSLTol = 30;


Its totally fine with me. I'm still doing tests on SPS walking… But as soon as i get something stable and solid, its a release.

kevin33

2012-06-05 16:13:02

From: Yago
Its totally fine with me. I'm still doing tests on SPS walking… But as soon as i get something stable and solid, its a release.


Okay sounds good. Just had to bmake sure first. it will save you from a lot of questions and maybe stop people from posting the same question over and over for now.

The_Dude

2012-06-05 16:19:23

It seems to me that it walks to the bank better if the compass is north-facing before it leaves the yew area. If the script had a function to do that before it left, it might not click on the other side of the river as I see it to every so often.

kevin33

2012-06-06 08:06:17

Well this is proof that it is working well (just not the greatest xp cuz my level isnt that high on this particular pure account but w.e.).
[ATTACH]16318[/ATTACH]

rsbottman

2012-06-06 08:10:48

This is the banker color I used and it picked banker out sweet as the orange dot on thier helmets…7526653 I tried what kevin33 used but wouldnt work for me.

kevin33

2012-06-06 08:17:25

Make sure your graphic settings are set to minimum because that will mess witht he colours.
Other than that search for Auto Colour Aid on the forums here and read on it. Use it to find a colour that will work.
You could try just picking a colour but that may not work.

Another proggy, too lazy to gt the pic so here is the debug proggy.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Freaky Forester Solved ~ 1 |
| |
|────────────────────────────────────|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 4 hr 14 min 59 sec |
| Total Logs Chopped : 290 |
| Total Experience Gained : 50750 |
| |
|—————————————————————-|
| Individual Report: |
| |
| Player[0]: |
| |
| Time Active : 4 hr 15 min 0 sec |
| Logs Chopped : 290 |
| Logs Per Hour : 69 |
| Experience Gained : 50750 |
| Experience Per Hour : 11941 |
| |
*—————————————————————-*

Yago

2012-06-06 20:50:58

From: kevin33
Make sure your graphic settings are set to minimum because that will mess witht he colours.
Other than that search for Auto Colour Aid on the forums here and read on it. Use it to find a colour that will work.
You could try just picking a colour but that may not work.

Another proggy, too lazy to gt the pic so here is the debug proggy.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Freaky Forester Solved ~ 1 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.5 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 4 hr 14 min 59 sec |
| Total Logs Chopped : 290 |
| Total Experience Gained : 50750 |
| |


Nice proggy. Try using [noparse]
[/noparse] tags next time

For anyone having walking problems:

Try changing the following line 78:

BankPoint = '86:27:3:3:7:41:72:10:7:101:33:10:7:101:25:4:98:14:77:14:77:37:98:37';


to this line

BankPoint = '110:33:3:3:7:64:75:10:7:118:39:10:7:118:31:4:99:20:120:20:120:43:99:43';


Remember to report back if the problem persists. If I get positive responses, then I will release a new version that will fix walking and banking.

kevin33

2012-06-07 08:12:28

This proggy is better then my last but about the same as the one from like 2 posts ago.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Abyss Solved ~ 1 |
| Rewards Solved ~ 3 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.5 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 50 min 22 sec |
| Total Logs Chopped : 285 |
| Total Experience Gained : 49875 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]: |
| |
| Time Active : 5 hr 50 min 47 sec |
| Logs Chopped : 285 |
| Logs Per Hour : 49 |
| Experience Gained : 49875 |
| Experience Per Hour : 8531 |
| |
*----------------------------------------------------------------*

*Sorry bout before, it was late and I saw the Simba tags and figured why not :P *

Yago

2012-06-07 14:59:47

From: kevin33
This proggy is better then my last but about the same as the one from like 2 posts ago.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Abyss Solved ~ 1 |
| Rewards Solved ~ 3 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.5 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 50 min 22 sec |
| Total Logs Chopped : 285 |
| Total Experience Gained : 49875 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]: |
| |
| Time Active : 5 hr 50 min 47 sec |
| Logs Chopped : 285 |
| Logs Per Hour : 49 |
| Experience Gained : 49875 |
| Experience Per Hour : 8531 |
| |
*----------------------------------------------------------------*

*Sorry bout before, it was late and I saw the Simba tags and figured why not :P *


Wow nice report. Can you test the new bank point constant two posts above and tell me if you experience walking problems?

kevin33

2012-06-07 16:05:39

Of course I can. I will leave it on while I am reffing tonight and report back.

Yago

2012-06-07 17:01:06

From: kevin33
Of course I can. I will leave it on while I am reffing tonight and report back.


Ok great. Im going to need people to confirm walking with at least 10+ hrs of runtime. Please report back to me so I can release something good.

kevin33

2012-06-07 23:00:08

Well here what I got. Failed because random failed (3rd one in 2 days :P gotta start solving them). I will run with SMARTMANAGER and try to get you a 10+hr one if thats what your looking for. I made it so now the scriptwill log out once it detects a random so hopefully that will save my account from the Jagex banhammer after failing the unsolvable randoms 3 times in 2 days. Hopefully it does what it is supposed to. I will run with SmartManager overnight and attempt to get you a 10hr proggy. Fingers crossed.

|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Pinball Solved ~ 1 |
| Rewards Solved ~ 3 |
| |
|────────────────────────────────────|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 42 min 36 sec |
| Total Logs Chopped : 336 |
| Total Experience Gained : 58800 |
| |
|—————————————————————-|
| Individual Report: |
| |
| Player[0]: |
| |
| Status : Chopping |
| Time Active : 5 hr 42 min 32 sec |
| Logs Chopped : 336 |
| Logs Per Hour : 59 |
| Experience Gained : 58800 |
| Experience Per Hour : 10300 |
| |
*—————————————————————-*

Yago

2012-06-07 23:43:12

From: kevin33
Well here what I got. Failed because random failed (3rd one in 2 days :P gotta start solving them). I will run with SMARTMANAGER and try to get you a 10+hr one if thats what your looking for. I made it so now the scriptwill log out once it detects a random so hopefully that will save my account from the Jagex banhammer after failing the unsolvable randoms 3 times in 2 days. Hopefully it does what it is supposed to. I will run with SmartManager overnight and attempt to get you a 10hr proggy. Fingers crossed.

|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Pinball Solved ~ 1 |
| Rewards Solved ~ 3 |
| |
|────────────────────────────────────|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 42 min 36 sec |
| Total Logs Chopped : 336 |
| Total Experience Gained : 58800 |
| |
|—————————————————————-|
| Individual Report: |
| |
| Player[0]: |
| |
| Status : Chopping |
| Time Active : 5 hr 42 min 32 sec |
| Logs Chopped : 336 |
| Logs Per Hour : 59 |
| Experience Gained : 58800 |
| Experience Per Hour : 10300 |
| |
*—————————————————————-*


Ok thank-you . let me know if you witness.the character walking somewhere else or if you find the character ina different location other than the script area.

kevin33

2012-06-07 23:49:14

Alright will do. Need to first find out how to get it to click the x on my members trial on my simba pure account and then log in. Dont plan on using it until I get a higher skill level so need it to do that. For that reason I dont know if I can get one tonight, I will get a 5hr-6hr one for sure but a 10hr one I wont be able to get especially if it logs out because of randoms and because it cant sign in due to the popup for the trial. I will look into it more tomorrow. Didnt think that one through, thats my bad.

On the bright side, Ive never witnessed it walk to strange places, only been a few times when Ive ended up in different places on the map due to failed randoms :/

rsbottman

2012-06-08 07:14:19

I updated my script with new bank walk codes, hopefully I wont end up dead again when I come back to screen. I have been running the script for a few days, sometimes I end up dead other times I get 200-300 logs before it can no longer bank due to "bank limit on new accts". the remaining times I get logged from randoms. So far I love the script, made 600k+ so far.

Yago

2012-06-08 08:17:01

From: kevin33
Alright will do. Need to first find out how to get it to click the x on my members trial on my simba pure account and then log in. Dont plan on using it until I get a higher skill level so need it to do that. For that reason I dont know if I can get one tonight, I will get a 5hr-6hr one for sure but a 10hr one I wont be able to get especially if it logs out because of randoms and because it cant sign in due to the popup for the trial. I will look into it more tomorrow. Didnt think that one through, thats my bad.

On the bright side, Ive never witnessed it walk to strange places, only been a few times when Ive ended up in different places on the map due to failed randoms :/


I've never witnessed it myself either, but I've found my character in other places in edgeville and many people have reported their characters walk far distances and even die. It's ok if you can't run it for 10hrs, I just want a bit of testing, so I can get a perfect release. Oh and thanks for your help.

From: rsbottman
I updated my script with new bank walk codes, hopefully I wont end up dead again when I come back to screen. I have been running the script for a few days, sometimes I end up dead other times I get 200-300 logs before it can no longer bank due to "bank limit on new accts". the remaining times I get logged from randoms. So far I love the script, made 600k+ so far.


Im glad you love the script. Thank you for testing. Yea I want to prevent the walking bug from happening. You've mad 600k over how many accounts? Oh and.let me.know how the walking is with the new point.

kevin33

2012-06-08 08:20:41

Oh not a problem. Happy to test for you as I legit dung on my main. If Im going to use the script, might as well help make it awesome. When I get home from school I will possibly test this on a seperate account so that I can use Smart Manager with no login issues. Will post a proggy then and then try for the 10hrs :)

Because it doesnt add your proggies together, expect a proggy or 2 I have added together manually, or just 2 proggies run right in a row.

kurtfryer

2012-06-08 08:52:30

Error starting SMART, ensure the target page has an applet declaration.

I've been through the tutorials 20 times.

everything is up to date.

i've loaded the runescape browser.

i've loaded MSI.

Help please.


no point sending me back to tut island.

WeeJazzah

2012-06-08 09:13:49

I tested it and let it run with the line 78 changed to the new one and all i can say is it ran flawlessly for 11 hours without any wandering. Could have yourself a fix :) I will let it run even longer to make sure though. Thanks.

tris999

2012-06-08 14:52:45

Hey i tried running version 0.5 of your script but i get this:
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

can you help me solve my problem pls and thank you.

Yago

2012-06-08 15:07:56

From: WeeJazzah
I tested it and let it run with the line 78 changed to the new one and all i can say is it ran flawlessly for 11 hours without any wandering. Could have yourself a fix :) I will let it run even longer to make sure though. Thanks.


Great, definitely good to know. Can you continue to test it until I hear back from others just in case?

From: tris999
Hey i tried running version 0.5 of your script but i get this:
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

can you help me solve my problem pls and thank you.


Sure, you can use the search function in the forums or read this thread. There's also a guide somewhere in the forums and a posts in the script > utilities section

Thanatos

2012-06-08 15:24:57

From: tris999
Hey i tried running version 0.5 of your script but i get this:
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

can you help me solve my problem pls and thank you.


follow the instructions found in the link.

http://villavu.com/forum/showthread.php?t=68112

kevin33

2012-06-08 17:10:54

Noooo. Ran for 2 and a half hours but this happened with new coordinates. First time ever.
I will try again tonight and we shall see what happens.
[ATTACH]16355[/ATTACH]

Yago

2012-06-08 17:38:27

Oh man… The same things happened to me too… How did you die?

kevin33

2012-06-08 17:43:00

I have no idea I was at school. Never was in wildy so it mustve been from an NPC.

kurtfryer

2012-06-09 10:07:40

script doesnt even bank properly it just says log out and stands there.

ryanmd2012

2012-06-09 10:37:49

Im new to using this type of bots and i was wondering if i use ur script will it carry
On after the 6hours(log back in)

Yago

2012-06-09 11:15:43

From: kurtfryer
script doesnt even bank properly it just says log out and stands there.


You can read the above posts.

From: ryanmd2012
Im new to using this type of bots and i was wondering if i use ur script will it carry
On after the 6hours(log back in)


No, you need a special program called SMARTManager. Try searching the forums using the search button.

sk80rdie76

2012-06-09 18:55:30

[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 3 min 29 sec |
| Total Logs Chopped : 501 |
| Total Experience Gained : 87675 |
| |
|—————————————————————-|[/php]

Used those new banking points you posted but they ended up messing up so I switched back to the old ones.

007sonic

2012-06-10 01:57:31

From: Yago
You can read the above posts.



No, you need a special program called SMARTManager. Try searching the forums using the search button.


How exactly would you go about changing the colors i've never tried scripting seems kinda complicated. I do know that the banking colors are in line 545 just don't know the color to change it to
Nevermind I checked kevin33's post (It's on page 10 about halfway through if anyone else is having the same problem) It seems I looked wayyyy too far into the script the banking colors were actually closer than I thought.

sk80rdie76

2012-06-10 17:23:48

[php]*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 2 min 18 sec |
| Total Logs Chopped : 511 |
| Total Experience Gained : 89425 |
| |
|—————————————————————-|[/php]

so far so good

kevin33

2012-06-11 15:59:57

Well I gots you a decent proggy (no actually proggy because it doesnt save them).
Used SmartManager and got you almost a 14 and a half hr proggy. Stopped because there was a storm and my house lost the Internet causing me to log off and it would not let me access Smart so I had to close it. Amyways heres the pic:
[ATTACH]16389[/ATTACH]


Also used it with previous coordinates for walking because they always worked well for me.
I tried using the new ones but after a 3 and a half hour proggy, if got stuck in the house at edgeville.

Yago

2012-06-11 16:32:25

From: kevin33
Well I gots you a decent proggy (no actually proggy because it doesnt save them).
Used SmartManager and got you almost a 14 and a half hr proggy. Stopped because there was a storm and my house lost the Internet causing me to log off and it would not let me access Smart so I had to close it. Amyways heres the pic:
[ATTACH]16389[/ATTACH]


Also used it with previous coordinates for walking because they always worked well for me.
I tried using the new ones but after a 3 and a half hour proggy, if got stuck in the house at edgeville.


Cool. Nice proggy.

Here's an update: I am working on a totally new walking system that uses trig!!!

kevin33

2012-06-11 16:35:30

When can we expect this update to be implemented?

Yago

2012-06-11 16:47:35

From: kevin33
When can we expect this update to be implemented?


I don't want to set a date and not keep it or keep people waiting. So I'm not going to make any promises. But as a for a release, I'm aiming for this week, but if not then I'm busy next week, so the week after.

kevin33

2012-06-11 16:57:57

Alright sounds good, I will continue using this script on the side while I legit dung on my main over the next week.

Roflme

2012-06-11 18:17:15

If the accounts are low leveled, there's a mugger that will attack them and can kill them. If the accounts are high enough then not a clue what could have possibly killed them.

Yago

2012-06-11 18:18:31

From: Roflme
If the accounts are low leveled, there's a mugger that will attack them and can kill them. If the accounts are high enough then not a clue what could have possibly killed them.


But these NPCs are aggressive?

Aggressive meaning you don't have to click on them to fight them, instead they just fight you.

Roflme

2012-06-11 18:46:28

Yes, aggressive until level 12 combat

Yago

2012-06-11 18:54:02

From: Roflme
Yes, aggressive until level 12 combat


Oh OK.

Now the cause to the deaths is walking… Walking so far has been coming along good. I have a new function to walk to the bank and its working great, even though I have only tested it a few times.

Walking back from the bank I have yet to create.. Afterwards, its just implementing the functions in the script and testing/fixing bugs and errors.

kevin33

2012-06-11 20:19:00

From: Yago
Oh OK.

Now the cause to the deaths is walking… Walking so far has been coming along good. I have a new function to walk to the bank and its working great, even though I have only tested it a few times.

Walking back from the bank I have yet to create.. Afterwards, its just implementing the functions in the script and testing/fixing bugs and errors.


Well when you decide its all set for implementing hit me with a pm or just post over the thread and I will most certainly test the walking for you.

MSmith

2012-06-12 01:44:25

Here's mine:


|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Evil Bob Solved ~ 1 |
| Rewards Solved ~ 2 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.5 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 26 min 27 sec |
| Total Logs Chopped : 365 |
| Total Experience Gained : 63875 |
| |
|----------------------------------------------------------------|


It's not that great of a proggie, but that's only because my wc is low and there was about 7-8 other people chopping those yews too lol. I replaced line 78 with the new walk you posted earlier and changed the bank color. The script is working perfectly (no walking problems). My suggestion is to let each person enter their own bank color as an anti-leech, since there are already many people chopping yews in Edgeville, especially in f2p. Keep up the great work! :)

ZestyStoner

2012-06-12 11:40:42

if you chop willows in remmington area you can get about 30k-38k xp an hour

kevin33

2012-06-12 15:45:56

If only the proggies were saved, then I could post them for you. That aspect should be added to the Manager. I got another pic of running it with Smart Manager. Pretty good one too :)
[ATTACH]16406[/ATTACH]

Note

2012-06-12 18:49:04

Sorry so i have read threw a few pages and i found the same problem that pepople encounterd before which was banking , i tryed using this
BankerColor = 5997770;
BankerHue = 0.06;
BankerSat = 0.45;
BankerHSLTol = 30;

but it didnt fix it , yet it still runs into the house full of "man - level 3"
if you could please guide me how to fix the banking problem it would be nice.

Thanks
Zac

Edit- Sorry with a little more reading , i found Bankpoint= '110:33:3:3:7:64:75:10:7:118:39:10:7:118:31:4:99:20:120:20:120:43:99:43'; works for me

Thanks, will post proggies soon.

Yago

2012-06-12 19:00:19

Great report guys….

So far I'm up to the process of bug-fixing and testing before I release this update. I may release a test version before releasing an official one.

Edit: Guys the other bots you see definitely aren't this script…

kevin33

2012-06-12 19:10:37

Sounds good Yago, thanks for the update.

Heres a proggy I got before school and right before SmartManager loaded a new client. It will continue running for as long as it can I guess.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Frog Solved ~ 1 |
| Rewards Solved ~ 2 |
| |
|────────────────────────────────────|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.5 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 1 min 41 sec |
| Total Logs Chopped : 404 |
| Total Experience Gained : 70700 |
| |
|—————————————————————-|
| Individual Report: |
| |
| Player[0]: |
| |
| Time Active : 6 hr 1 min 19 sec |
| Logs Chopped : 404 |
| Logs Per Hour : 68 |
| Experience Gained : 70700 |
| Experience Per Hour : 11741 |
| |
*—————————————————————-*

Issue now is that when I try to run the script, Smart tab opens up saying this:
Error: Exception: Access violation at line 15
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3]

Then this is highlighted:
procedure HoldMouse(x, y: Integer; button : integer); //this line
begin
if button = mouse_left then
SmartHoldMousePlus(x,y,1)
else if button = mouse_middle then
SmartHoldMousePlus(x,y,2)
else if button = mouse_right then
SmartHoldMousePlus(x,y,3)
else
raiseexception(ercustomerror,'Unknown mouse button in SmartHoldMousePlus');
end;

Just updated my SRL so is the update what caused the problem? Any ideas on a fix?

BTW can someone post so that way I can post as double posting is frowned upon because I dont want to keep editing.

Yago

2012-06-13 20:23:24

From: kevin33

Issue now is that when I try to run the script, Smart tab opens up saying this:
Error: Exception: Access violation at line 15
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3]


Its a common prob. Honestly I think I had the error before and it went away by itself. Anyways a simple search should give you tons of answers.

On another note:

I have released a beta version of TheCuttingEdge v0.6 on Github for testing purposes only.

Github Link: www.github.com/Yago/SIMBA-Scripts

I'd appreciate if a few of you guys test the script out and reported back if you guys experiences and bugs or errors. Once I get enough reports back, I'll release an official version.

For future references, the Github link will be posted in the Original Post.

kevin33

2012-06-13 22:42:56

Testing 0.6 now and will leave on overnight. Like this proggy for logs an hour :)
Walking seems like its working well but its only been a few minutes.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| |
|────────────────────────────────────|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.6 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 2 min 8 sec |
| Total Logs Chopped : 11 |
| Total Experience Gained : 1925 |
| |
|—————————————————————-|
| Individual Report: |
| |
| Player[0]: |
| |
| Status : Chopping |
| Time Active : 2 min 5 sec |
| Logs Chopped : 11 |
| Logs Per Hour : 317 |
| Experience Gained : 1925 |
| Experience Per Hour : 55433 |
| |
*—————————————————————-*

Note

2012-06-14 02:26:24

Hey there been running your script for about 12hours now haha its pretty good but does sometimes run around to the man house or the edgevill load stone , sometimes you have to find a new banker colour haha but over its good heres a 1hour proggy for it
Im going to test 0.6 Beta now will let you know how it goes.

Thanks
Zac

| | Version 0.6 Beta So far so good man i never once had to come check up on it till now haha its going pretty smooth
|—————————————————————-|
| Individual Report: |
| |
| Player[0]: |
| |
| Status : Chopping |
| Time Active : 2 hr 33 min 53 sec |
| Logs Chopped : 377 |
| Logs Per Hour : 147 |
| Experience Gained : 65975 |
| Experience Per Hour : 25723 |
| |
*—————————————————————-*

WeeJazzah

2012-06-14 07:13:29

0.6 beta seems to work like a charm, let it run for 10 hours and it hasn't wandered off yet. Not got a proggy for you i'm afraid i will make sure i have one after my next session for you. But so far so good and it seems to be slightly faster at cutting aswell. Good Job.

Yago

2012-06-14 08:51:15

Do you guys still experience the character running off with the Beta?

kevin33

2012-06-14 08:55:28

I have yet to experience it. I'm leaving it on while I'm at school. It ran all last night but my laptop decided it needed to update itself so it closed everything and reset so I didn't get the proggy. I do know that it stopped because of a random (Leo).

Yago

2012-06-14 09:01:51

Ok. I think we might have a winner, but ill let you guys run it for one or two more days just to be safe.

Randoms

2012-06-14 09:37:16

Thanks Yago for such an amazing complex script. Mind taking a look at mine (Flawless WillowChopper) and suggest what could be improved? :)

Yago

2012-06-14 10:03:05

From: Randoms
Thanks Yago for such an amazing complex script. Mind taking a look at mine (Flawless WillowChopper) and suggest what could be improved? :)


Ill take a look at it.

What you basically want to do when script-writing is go for accuracy… Once you have accuracy, then all that's left is you improving the speed and making it more human-like. For example, if a global function is not working for you, go for a custom made one (SPS vs Custom walking functions) :)

Randoms

2012-06-14 10:13:49

From: Yago
Ill take a look at it.

What you basically want to do when script-writing is go for accuracy… Once you have accuracy, then all that's left is you improving the speed and making it more human-like. For example, if a global function is not working for you, go for a custom made one (SPS vs Custom walking functions) :)


I'm thinking about Changing the tree detection to ACA.

Yago

2012-06-14 10:16:40

From: Randoms
I'm thinking about Changing the tree detection to ACA.


What do you use for tree detection?

Also, do you want me to tell you what you should change cosmetically? Or do you want me to tell you what you should change in your code? I don't know if you want me to give you answers or questions…

Randoms

2012-06-14 14:56:33

From: Yago
What do you use for tree detection?

Also, do you want me to tell you what you should change cosmetically? Or do you want me to tell you what you should change in your code? I don't know if you want me to give you answers or questions…

Suggestions would be fine. :p

kevin33

2012-06-14 15:38:13

Decent proggy using the beta 0.6. Stopped because failed moradut random. Will try for a 6hr proggy tonight.

|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| |
|────────────────────────────────────|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.6 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 5 min 27 sec |
| Total Logs Chopped : 505 |
| Total Experience Gained : 88375 |
| |
|—————————————————————-|
| Individual Report: |
| |
| Player[0]: |
| |
| Status : Waiting |
| Time Active : 5 hr 5 min 24 sec |
| Logs Chopped : 505 |
| Logs Per Hour : 100 |
| Experience Gained : 88375 |
| Experience Per Hour : 17363 |
| |
*—————————————————————-*

Yago

2012-06-14 16:55:09

Nice. Try to use [noparse]
[/noparse] tags around your report to make it save space and look better(like an actual report).

I'm still going 5hrs+

Here's the picture:


Zalagar619

2012-06-14 21:40:21

Im lost….. i have simba downloaded and everything uploaded, but when i paste the script into a new tab on simba and try to run it, i get an error. Is there any videos on how to set it up?

kevin33

2012-06-14 23:00:57

Whats the error??

Yago

2012-06-15 10:00:29

With 1 post, I'm guessing they need to go to Tutorial Island and get a good setting up SIMBA guide. Most likely an extremely common error.

Edit: Anyhow, how's the 0.6 BETA going for you guys? I accidentally closed mine at around 5 and a half hours…

Note

2012-06-15 10:24:02

So far this is how long i have ran the beta version for :)


I haven't ran out to the houses or anything like that . Goes to bank then back to tree's like it should.
Though there is thoes sometimes it every 450 logs or so it fails to bank but a script restart fixes it.

I would say you could release it but thats your call :) , im happy with the script :)

Thanks
Zac

P.s No im not gold farming :L if your going to ask that haha.. just my main account and another friends account.

Yago

2012-06-15 11:05:55

From: big man 1
So far this is how long i have ran the beta version for :)


I haven't ran out to the houses or anything like that . Goes to bank then back to tree's like it should.
Though there is thoes sometimes it every 450 logs or so it fails to bank but a script restart fixes it.

I would say you could release it but thats your call :) , im happy with the script :)

Thanks
Zac

P.s No im not gold farming :L if your going to ask that haha.. just my main account and another friends account.


I care not if you gold farm. I'd actually love if more people used my script :)

Glad to know the walking works well. You said that banking has failed for you though… That's something I'm interested in.

Ill see if i can release 0.6 either today or sometime this weekend when I get time.

Anyhow, have you personally witnessed banking fail?

Note

2012-06-15 11:31:26

From: Yago

Anyhow, have you personally witnessed banking fail?


Yes i have , all it does is walks to the bank and just stands there , nothing in the debug box O_O , it only happens every few hundred logs. maybe its the runescape colours changeing every so often , im no smart scripter but thats my guess.

Yago

2012-06-15 13:21:42

From: big man 1
Yes i have , all it does is walks to the bank and just stands there , nothing in the debug box O_O , it only happens every few hundred logs. maybe its the runescape colours changeing every so often , im no smart scripter but thats my guess.


OK thanks. I don't want to force you or anything, but if you'd like to help me fix this problem, could you set Debug-Script near the top of the script to True. So next time it happens I have some debug to work with. I'd appreciate it alot.

Also, if you do decide to help, could you change line 1188:

'logout': LogOut;

to

'logout': begin TakeScreen('TCE - Logout'); LogOut; end;

It should compile, but if it doesn't then let me know. Basically what I told you to change was setting debugging to true and taking a screen shot before logging out.

Edit: Also, I think I experienced the same problem… Where did you find your character?

kevin33

2012-06-15 15:54:55

I have noticed banking to fail every so often. It will stand there then end the script because it cannot bank. I dont know if its a colour thing because I have not had time to babysit but I will look into it this weekend when I do.

Yago

2012-06-15 17:57:21

From: kevin33
I have noticed banking to fail every so often. It will stand there then end the script because it cannot bank. I dont know if its a colour thing because I have not had time to babysit but I will look into it this weekend when I do.


ok. make sure to make the changes I posted above, so I can have something to work with.

kevin33

2012-06-15 18:45:21

Yea and Ive been watching to manually take a screenshot. Failed because molly random this time. I keep getting the unsolvavble randoms at about the 2hr mark :(

Heres a screenie.

[ATTACH]16450[/ATTACH]

Yago

2012-06-15 19:02:07

From: kevin33
Yea and Ive been watching to manually take a screenshot. Failed because molly random this time. I keep getting the unsolvavble randoms at about the 2hr mark :(


:) I got one at around 1.5 hours but it was solved… Molly is close to being solved.

kevin33

2012-06-15 19:14:17

Molly was the one it logged out of last, prison pete was before that. Did you take a look at the screenie?

Yago

2012-06-15 19:25:53

From: kevin33
Molly was the one it logged out of last, prison pete was before that. Did you take a look at the screenie?


Yes I did, it should technically work… Was this after you logged back in? Also, do you have debug?

kevin33

2012-06-15 23:50:46

Debug doesnt say anything. It just says "Bye" as it always does before it ends. And no this was after it tried to bank and failed. Doesnt happen all the time, just around 1 in every 10 uses and even thats pushing it.

Yago

2012-06-16 10:08:18

From: kevin33
Debug doesnt say anything. It just says "Bye" as it always does before it ends. And no this was after it tried to bank and failed. Doesnt happen all the time, just around 1 in every 10 uses and even thats pushing it.


OK. Ill see what I can get on my character, but I don't know if this is really a bug or just runescape being glitchy and laggy sometimes…. Anyhow, Ill go on with the release.

Note

2012-06-16 10:10:10

I swear to god i did a 6hours 15minute on your 0.6 beta , but i got cought up in a convo and forgot to take a screenie so im going to post this instead


:spot::spot::spot:

Yago

2012-06-16 10:41:54

Update. The Cutting Edge v0.6

Changes Include:
  • [Major Addition/Bug Fix] Added Custom Walking Functions Based on Trig. to Replace Previous ObjDTM Walking which was buggy.
  • [Minor] Added MyColor Type for Objects and Loading Functions
  • [Minor] Made the Bank ObjDTM More Robust for decreased False Positives
  • [Minor] Added A TakeScreen Upon Logout if Debug_Script is Enabled

Enjoy :spot:

Detailed Changes – https://github.com/Yago/SIMBA-Scripts/commits/master

Report any problems in this thread or open up an issue on GitHub.

kevin33

2012-06-16 12:24:50

This keeps happening to me, Im working on a decent proggy for you and a random screws it up. I just cant get you a 6hr one it seems. Get stopped too short. Heres what I got for you for now using 0.6.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Drill Demon Solved ~ 1 |
| Rewards Solved ~ 2 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.6 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 3 hr 56 min 31 sec |
| Total Logs Chopped : 324 |
| Total Experience Gained : 56700 |
| |
|----------------------------------------------------------------|
Ran Procedure AntiRandoms.
IsLoggedIn: True
| Individual Report: |
| |
| Player[0]: |
| |
| Status : Chopping |
| Time Active : 3 hr 53 min 35 sec |
| Logs Chopped : 324 |
| Logs Per Hour : 84 |
| Experience Gained : 56700 |
| Experience Per Hour : 14565 |
| |
*----------------------------------------------------------------*
Stopped because it screwed up the maze random :(

Yago

2012-06-16 14:10:04

Dang… Maybe try playing legit for a few, or do another activity until you stop gettign randoms?

This new version is working great!

yvan49

2012-06-16 17:02:49

I keep getting that Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

kevin33

2012-06-16 17:20:30

Heres another proggy. Still got randoms :) 0.6 runs really well, no problems yet.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Sandwich Lady Solved ~ 1 |
| Rewards Solved ~ 2 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.6 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 4 hr 16 min 10 sec |
| Total Logs Chopped : 350 |
| Total Experience Gained : 61250 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]: |
| |
| Time Active : 4 hr 16 min 14 sec |
| Logs Chopped : 350 |
| Logs Per Hour : 82 |
| Experience Gained : 61250 |
| Experience Per Hour : 14342 |
| |
*----------------------------------------------------------------*

sk80rdie76

2012-06-16 21:47:13

new version proggy

[php]*—————————————————————-*
| The Cutting Edge 0.6 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 22 min 53 sec |
| Total Logs Chopped : 475 |
| Total Experience Gained : 83125 |
| |
|—————————————————————-|[/php]

manually stopped. working great

kyleinkman

2012-06-17 01:25:34

hey i got this error?
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''


SOLVED for anyone else having this error go to here
http://villavu.com/forum/showthread.php?p=847813

kevin33

2012-06-17 12:07:23

Yay got you the 6hr proggy.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Freaky Forester Solved ~ 1 |
| Rewards Solved ~ 2 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.6 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 51 sec |
| Total Logs Chopped : 552 |
| Total Experience Gained : 96600 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]:
| |
| Time Active : 6 hr 35 sec |
| Logs Chopped : 552 |
| Logs Per Hour : 92 |
| Experience Gained : 96600 |
| Experience Per Hour : 16074 |
| |
*----------------------------------------------------------------*

Yago

2012-06-17 19:24:41

Yay finally :) Thanks for your proggies guys.

WeeJazzah

2012-06-17 19:50:50

I keep getting this error when i weild or use a dragon hatchet.

LoadAxeDTM: 0
LoadAxeDTM: 1
LoadAxeDTM: 2
LoadAxeDTM: 3
LoadAxeDTM: 4
LoadAxeDTM: 5
LoadAxeDTM: 6
LoadAxeDTM: 7
Player[0] StartUp: False
Aborting!

kevin33

2012-06-18 08:16:45

From: Yago
Yay finally :) Thanks for your proggies guys.


And here is another one :)
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| Cap'n Arnav Solved ~ 1 |
| Rewards Solved ~ 2 |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.6 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 6 hr 6 min 56 sec |
| Total Logs Chopped : 475 |
| Total Experience Gained : 83125 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]: |
| |
| Time Active : 6 hr 7 min 1 sec |
| Logs Chopped : 475 |
| Logs Per Hour : 78 |
| Experience Gained : 83125 |
| Experience Per Hour : 13589 |
| |
*----------------------------------------------------------------*

Yago

2012-06-18 10:24:12

From: WeeJazzah
I keep getting this error when i weild or use a dragon hatchet.

LoadAxeDTM: 0
LoadAxeDTM: 1
LoadAxeDTM: 2
LoadAxeDTM: 3
LoadAxeDTM: 4
LoadAxeDTM: 5
LoadAxeDTM: 6
LoadAxeDTM: 7
Player[0] StartUp: False
Aborting!


IS the hatchet being cutt-off, like sometimes the things in the inventory are?

WeeJazzah

2012-06-18 19:41:26

Not sure i will have a look again, but it tends to do this alot soon as i log in and then it logs me straight back out again.

PapaPwn

2012-06-18 21:32:04

I've run it 3 times and the longest time it's ran before logging out is an hour. is there anything I can do to make it go longer?

Yago

2012-06-18 22:19:09

From: PapaPwn
I've run it 3 times and the longest time it's ran before logging out is an hour. is there anything I can do to make it go longer?


Are the settings correct. What error do you receive? Where do you find your character? What does the debug say?

WeeJazzah

2012-06-19 14:36:49

I've run it 3 times and the longest time it's ran before logging out is an hour. is there anything I can do to make it go longer?


Yeah, i also have the same problem. Sometimes it starts up and logs straight back out again and stops the script, whereas, other times it runs for around 20 minutes or so and then logs me out.

I am a member on both my accounts now, one is a skiller and one is my main, therefore my skiller account cannot weild the dragon hatchet. However i have also tried with a rune hatchet aswell on both accounts but they still don't run for very long. Before i paid for a membership for the accounts, around a week ago, it was working fine when it was in the free worlds so i'm not sure if this has anything to do with it.

It seems to log me out and display this error in the debug box, or the one i posted before. Hope you can help Yago.

IsLoggedIn: False
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active…
All players not active!

Thanatos

2012-06-19 16:13:08

From: WeeJazzah
Yeah, i also have the same problem. Sometimes it starts up and logs straight back out again and stops the script, whereas, other times it runs for around 20 minutes or so and then logs me out.

I am a member on both my accounts now, one is a skiller and one is my main, therefore my skiller account cannot weild the dragon hatchet. However i have also tried with a rune hatchet aswell on both accounts but they still don't run for very long. Before i paid for a membership for the accounts, around a week ago, it was working fine when it was in the free worlds so i'm not sure if this has anything to do with it.

It seems to log me out and display this error in the debug box, or the one i posted before. Hope you can help Yago.

IsLoggedIn: False
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active…
All players not active!


Have you been present when your script stops? If not you should try partially babysitting it for a period of time just so you can find out what is going wrong. There is also a possibility that runescape has updated and your account has been kicked offline. Other than that i have not used this script yet so i can't really know whats going on with it.

WeeJazzah

2012-06-19 17:27:38

I have watched it plenty of times, it just stops and clicks through the player tabs and then goes to the cross at the top right corner and logs out. Nothing usual like wondering off or not being able to bank or find trees etc.

*I found this error when it tried to bank. I'm not sure if this is always the cause as it has logged out plenty of times, however, i'm not always in the bank and my inventory has a few logs in it when i log back in, but here is the error anyway.

Ran Procedure AntiRandoms.
IsLoggedIn: True
Unable To Open The Bank.
BankIt: False
Ran Procedure AntiRandoms.
IsLoggedIn: True
Status: LogOut
Screenshot of: TCE - Logout 39 Minutes and 0 Seconds

dx osiris1

2012-06-19 23:38:42

i think i found a bug because your script is the only one that does it. sometyimes when i start the script, after a few minutes it will say "the following bitmaps were not freed [3]"

The_Dude

2012-06-20 04:11:31

From: dx osiris1
your script is the only one that does it


LOL

I didn't know this script had been updated.

Status: Chopping
Status: Banking
Status: LogOut
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active…
All players not active!

|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.6 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 29 min 26 sec |
| Total Logs Chopped : 28 |
| Total Experience Gained : 4900 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]: |
| |
| Time Active : 29 min 29 sec |
| Logs Chopped : 28 |
| Logs Per Hour : 57 |
| Experience Gained : 4900 |
| Experience Per Hour : 9969 |
| |
*----------------------------------------------------------------*
"Bye Guys" - Yago
Successfully executed.


Is there a breaking method I missed? I can't figure out why I was logged out.

Yago

2012-06-20 10:41:16

Anyone who experiences problems with the script, look at the Debugging section of the Original Post (OP).

realrocker00

2012-06-21 13:40:14

From: Yago
Anyone who experiences problems with the script, look at the Debugging section of the Original Post (OP).


I'm also getting "the following bitmaps were not freed [3]" error. I'll throw on extensive debugging and let you know what it says.

-Real

Yago

2012-06-21 17:01:04

From: realrocker00
I'm also getting "the following bitmaps were not freed [3]" error. I'll throw on extensive debugging and let you know what it says.

-Real


Bitmaps not being freed is not an error…

supersayian2224

2012-06-21 18:03:35

something goes wrong with mine as well after 1-2 hours. I put the debug on – where can I access the screenshot?

It always happens when the inventory is full and it's on the way to the bank.

realrocker00

2012-06-21 18:29:09

From: Yago
Bitmaps not being freed is not an error…


It's an error on my end correct? I just call it an error because it is preventing the script to function properly. :blink:

EDIT: And I just got it to run for an hour and fifty minutes, pretty good.


|—————————————————————-|
| Individual Report: |
| |
| Player[0]: *********** |
| |
| Time Active : 1 hr 49 min 49 sec |
| Logs Chopped : 280 |
| Logs Per Hour : 153 |
| Experience Gained : 49000 |
| Experience Per Hour : 26771 |
| |
*—————————————————————-*

"Bye Guys" - Yago
Successfully executed.
The following bitmaps were not freed: [3]

Yago

2012-06-21 19:45:37

From: realrocker00
It's an error on my end correct? I just call it an error because it is preventing the script to function properly. :blink:

EDIT: And I just got it to run for an hour and fifty minutes, pretty good.


|—————————————————————-|
| Individual Report: |
| |
| Player[0]: *********** |
| |
| Time Active : 1 hr 49 min 49 sec |
| Logs Chopped : 280 |
| Logs Per Hour : 153 |
| Experience Gained : 49000 |
| Experience Per Hour : 26771 |
| |
*—————————————————————-*

"Bye Guys" - Yago
Successfully executed.
The following bitmaps were not freed: [3]


Oh, an error would be: Unable to free a bitmap… instead of a bitmap was not freed. because in the first on there is a problem trying to free a bitmap, while in the second message, nobody tried to free a bitmap…

Anyhow if you had debugging set to true, then the error would be before the final progress report.

Tonekray

2012-06-24 19:47:31

From: Yago
Anyone who experiences problems with the script, look at the Debugging section of the Original Post (OP).


The error everyone is talking about seems to occur during banking (for me anyways.)

http://pastebin.com/hNBjLjzk

That's the snippet of debug where the random logout occurs.

Yago

2012-06-25 13:29:17

From: Tonekray
The error everyone is talking about seems to occur during banking (for me anyways.)

http://pastebin.com/hNBjLjzk

That's the snippet of debug where the random logout occurs.


Can you possibly send me the screenshot that it took?

joel amos

2012-06-25 14:18:09

I'm totally new to Simba, but when I double click on the file and then hit run, it says the following: Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

Tonekray

2012-06-25 14:21:27

From: Yago
Can you possibly send me the screenshot that it took?


Where would the screenshot be located at? I combed through the script location and Simba's directory; couldn't find anything.

Yago

2012-06-25 16:46:54

From: Tonekray
Where would the screenshot be located at? I combed through the script location and Simba's directory; couldn't find anything.


It should be in Includes/SRL/Logs/

Tonekray

2012-06-25 17:38:51

From: Yago
It should be in Includes/SRL/Logs/


Must have missed it them.

http://i.imgur.com/ujZFz.png

http://i.imgur.com/RaLTg.png

joel amos

2012-06-25 20:02:03

By the way, the name of the script is so sexy. Major props. It's a pun on like 3 different levels.

Yago

2012-06-25 23:49:03

From: Tonekray
Must have missed it them.

http://i.imgur.com/ujZFz.png

http://i.imgur.com/RaLTg.png


Ok great! I have ideas as to the problem… Also, you username is in the pics. I don't know if you don't care or don't know.

As for the name, it was chosen by my bud Mixster on IRC.

kurtfryer

2012-06-26 02:08:28

bitmaps not being freed, occurs randomly when walking to the bank.

thanks.

Tonekray

2012-06-26 12:59:52

From: Yago
Ok great! I have ideas as to the problem… Also, you username is in the pics. I don't know if you don't care or don't know.

As for the name, it was chosen by my bud Mixster on IRC.


Doesn't bother me. The worst someone can do with my username is PM spam me.

Anyways, glad you have found out what might be the issue. I'm looking forward to an update.

sk80rdie76

2012-06-27 00:21:45

[php]*—————————————————————-*
| The Cutting Edge 0.6 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 41 min 6 sec |
| Total Logs Chopped : 396 |
| Total Experience Gained : 69300 |
| |
|—————————————————————-|[/php]

manually stopped

josiyah

2012-06-28 05:08:26

From: sk80rdie76
[php]*—————————————————————-*
| The Cutting Edge 0.6 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 5 hr 41 min 6 sec |
| Total Logs Chopped : 396 |
| Total Experience Gained : 69300 |
| |
|—————————————————————-|[/php]

manually stopped



Any tips on how you got it to run so long? Mine keeps stopping for things like "failing to return from bank" Infact that has occured across afew of my woodcutting scripts, not sure if there is anything i can do but if so would appreciate it :)

cheers

Ala

2012-06-28 21:21:52

When I run the script, it keeps logging me out to try to find new players.
|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.6 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 2 hr 21 min 56 sec |
| Total Logs Chopped : 179 |
| Total Experience Gained : 31325 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]: [REDACTED] |
| |
| Status : Waiting |
| Time Active : 2 hr 17 min 22 sec |
| Logs Chopped : 179 |
| Logs Per Hour : 79 |
| Experience Gained : 31325 |
| Experience Per Hour : 13682 |
| |
*----------------------------------------------------------------*
Status: Chopping
Stats Committed.
Status: Banking
Status: LogOut
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active…
All players not active!

|====================================|
| ~ SRL ~ |
| Randoms Report |
|────────────────────────────────────|
| |
| |
|────────────────────────────────────|
|====================================|
*----------------------------------------------------------------*
| The Cutting Edge 0.6 |
| By: Yago |
|----------------------------------------------------------------|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 2 hr 22 min 37 sec |
| Total Logs Chopped : 181 |
| Total Experience Gained : 31675 |
| |
|----------------------------------------------------------------|
| Individual Report: |
| |
| Player[0]: [REDACTED] |
| |
| Time Active : 2 hr 18 min 13 sec |
| Logs Chopped : 181 |
| Logs Per Hour : 79 |
| Experience Gained : 31675 |
| Experience Per Hour : 13751 |
| |
*----------------------------------------------------------------*
"Bye Guys" - Yago
Successfully executed.
The following bitmaps were not freed: [3]

Thaitan

2012-07-02 02:17:00

I always get this message and it just logs me out and it doesnt log back in because i thought it was just breaking but it isnt, anyone know how to fix?
Status: LogOut
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active…
All players not active!

i get this message after an hour of using but in that hour the script works great and i really love it!

pk3ryoyo

2012-07-02 18:09:02

[Error] Includes\ObjectDTM/ObjDTMInclude.simba(217:3): Duplicate identifier 'T2DStringArray' at line 216
Compiling failed.

anything on this or help?

dude232

2012-07-03 00:02:56

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

never had this happen before anyone able to help here?

kevin33

2012-07-03 02:38:31

From: dude232
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

never had this happen before anyone able to help here?


You need to download the ObjDTM extension. Search it. Download it off the utilities or off another scripts thread witht he link. Open SImba, allow it in extensions, update it via the tab, close, reopen and presto you're off to botterland.

milkman1

2012-07-03 07:16:28

[Error] (10:36): 'BEGIN' expected at line 9
im sorry im new to all this… cant figure it out :((( very frustrating

kevin33

2012-07-03 14:17:59

Post us the script, you have done something and made this happen. We will tell you what to do when you post us your version as the script does not normally have this problem.

dude232

2012-07-07 02:07:16

as far as making it run long, mine just takes a dump at the bank any suggestions?

gogsmash1

2012-07-10 11:32:06

never mind

ickcay

2012-07-10 11:47:56

I've been trying to get this script to work on simba, but every time I run it I get

"Error downloading "http://yagoscripts.netii.net/TCEProg.png".", and then

"Exception: Error while reading stream: File "C:\Users\Gwynn\AppData\Local\Temp\/TCEProg.png" does not exist at line 117
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]"

I really want to be able to use this script. How can I fix this problem?

Yago

2012-07-10 12:06:35

From: ickcay
I've been trying to get this script to work on simba, but every time I run it I get

"Error downloading "http://yagoscripts.netii.net/TCEProg.png".", and then

"Exception: Error while reading stream: File "C:\Users\Gwynn\AppData\Local\Temp\/TCEProg.png" does not exist at line 117
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]"

I really want to be able to use this script. How can I fix this problem?


The webhost is being DDOS'ed… They say the website will be down for 6 hours… But it is easy to fix and get the script running anyways.

gogsmash1

2012-07-10 12:10:40

Now I'm getting that same problem. How do we fix it??

markd6125

2012-07-11 04:16:15

mine does not start it says

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

what does this mean

kevin33

2012-07-11 04:30:27

From: markd6125
mine does not start it says

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

what does this mean


Means you need to download ObjDTM. Read some of the other posts they will tell you exactly what to do or you could search it and read what to do off the thread.

fumaor

2012-07-11 18:23:38

From: Yago
The webhost is being DDOS'ed… They say the website will be down for 6 hours… But it is easy to fix and get the script running anyways.


HOT TO FIX, THE SCRIRPT DONT RUN :( XD
:fiery:

markd6125

2012-07-11 18:42:12

i got another error message saying this..

0.6
Version Checking Failed. You Might Be Outdated.
Please Check For The Latest Version Online.
Paint File Check.

anyone help?

it also says i dont have the latest update but im using the latest version

Stufferino

2012-07-28 12:05:43

Getting the "Invalid number of parameters at line …" bug when I try to run. Is there a way to fix it, or is the script outdated?

Yago

2012-07-30 18:55:27

Its outdated, but I may fix it if I have the spare time. There are scripts that fix this script for you though.

Mmmkile

2012-08-03 19:22:47

Would you care if I posted the altered version that I got to work on here?

Yago

2012-08-04 18:27:24

From: Mmmkile
Would you care if I posted the altered version that I got to work on here?


I wouldn't mind.

Mmmkile

2012-08-05 09:55:32

Program TheCutingEdge;

{$DEFINE SMART}
{$i SRL/SRL.simba}
{$i ObjectDTM/ObjDTMInclude.simba}

const
{----SMART Setup Constants----}
WORLD = 99; // Choose What Server To Load. Set As 0 For Random Sever.
{-----------------------------}

Stats_UserID = ''; // SRL Stats ID (Leave Blank If None).
Stats_Password = ''; // SRL Stats Password (Leave Blank If None).

Debug_Script = False; // Set To True To Debug The Script.
Auto_Update = True; // Check For And Download The Newest Script Version.

AntiBanAmount = 1; // 0 = 0% Chance. 100 = 100%.
ReportWait = 60; // How Often In Seconds To Print A Text Report
PaintWait = 50; // How Often In Miliseconds To Print On Screen. Set To 0 For No Paint


Type
MyPlayer = Record
Name, Pass, Pin: string;
Member, Active, AxeWielded: Boolean;
Logs, Exp, LogH, ExpH, LampSkill: Integer;
BoxRewards: TStringArray;
End;
MyColor = Record
Color, Tol, CTS, Accuracy: Integer;
Sat, Hue: Extended;
Uptexts: TStringArray;
End;

var MyPlayers: Array of MyPlayer;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := 0;

NumberOfPlayers(HowManyPlayers);
setlength(MyPlayers, HowManyPlayers);

With MyPlayers[0] do
begin
Name := ''; //Character Name
Pass := ''; //Character Pass
Pin := ''; //Pin for bank
Member := True; //True = Members Account & False = Non-Members Account.
Active := True; //Use player in script?
AxeWielded := True; //Is You Axe Wielded? Yes = True and No = False. If No then place axe in first slot.
BoxRewards := ['XP','Lamp'];
LampSkill := SKILL_WOODCUTTING;
end;
end;

{Do Not Touch Below Unless Instructed To!!!}
const
//Version And Paths
Version = '0.6'; //Script Version;
ThePath = ScriptPath + '/TCEProg.png'; // Image Path;

//Script-Function Wait Times
MaxWait = 100000; //How much time to wait for a tree after checking the previous tree.
MaxWaits = 10; //How many times to go from tree to tree without success before logging out.
MaxWalks = 4; //Maximum Attempts To Repeat Walking If Failed
MaxIdle = 60000; //Failsafe Time To Idle While Chopping
MaxRetry = 4; //Max Number of times to retry chopping script while idle

//Color-Related Constants
DHue = 0.2;
DSat = 0.2; //Default Hue And Sat

//Axe Constants
Dragon_Axe = 0;
Rune_Axe = 1;
Addy_Axe = 2;
Mith_Axe = 3;
Steel_Axe = 4;
Black_Axe = 5;
Iron_Axe = 6;
Bronze_Axe = 7;

//Other
YewLogExp = 175;
TLoggedIn = 4000;

//Object Constats
OBJ_Banker = 0;
OBJ_TreeTrunk = 1;
OBJ_TreeLeaves = 2;

//OBJDTM Points
ObjDTM_Bank = '81:80:7:1:7:121:67:1:7:92:32:10:7:91:66:10:7:87:71:10:7:87:79:10:7:87:88:3:7:127:84';
ObjDTM_Middle = '79:125:7:1:7:121:67:1:7:92:32:10:7:91:66:10:7:87:71:10:7:87:79:10:7:87:88:3:7:127:84';

var
Event: string;
ReportTimer, PaintTimer, Prog: Integer;
PaintArray: TStringArray;

Procedure DebugIt(Text: string);

begin
if Debug_Script then
Writeln(Text);
end;

Procedure Init;

begin
{Paint}
if (PaintWait <> 0) then
begin
Prog := LoadBitmap(ThePath);
SMART_DrawBitmap(True,Prog,Point(MCX1,MCY1));
SetLength(PaintArray,6);
end;
end;

Function LoadObject(Which: Integer): MyColor;

begin
case Which of

OBJ_Banker:
with Result do
begin
Color := 3678760;
Hue := 0.06;
Sat := 0.45;
Tol := 10;
CTS := 2;
Accuracy := 100;
Uptexts := ['Bank B', 'nk B'];
end;

OBJ_TreeTrunk:
with Result do
begin
Color := 1120536;
Tol := 1;
CTS := 1;
Uptexts := ['Chop','down','Yew','hop d','wn Y'];
end;

OBJ_TreeLeaves:
with Result do
begin
Color := 2113332;
Tol := 3;
CTS := 0;
Accuracy := 200;
end;
end;
end;

{*******************************************************************************
function DownloadToFile(const URL, Filename: string): boolean;
By: Dgby714. Editted By Yago.
Description: Downloading file from URL to Filename.
*******************************************************************************}
Function DownloadToFile(const URL, Filename: string): boolean;
var
FileI: LongInt;
FileC, FileH: string;
begin
Writeln('Paint File Check.');
Result := False;
FileI := InitializeHTTPClient(False,False);
try
FileC := GetHTTPPage(FileI, URL);
FileH := GetRawHeaders(FileI);

if ((FileC = '') or (FileH = '')) then
begin
WriteLn('Error downloading "' + URL + '".');
Exit;
end;

FileH := Copy(GetRawHeaders(FileI), 10, Pos(#13, FileH) - 10); //Error Code
if (FileH <> '200 OK') then
begin
WriteLn('Couldn''t download "' + URL + '", Error Code: ' + FileH + '.');
Exit;
end;
finally
FreeHTTPClient(FileI);
end;

try
if not FileExists(Filename) then
FileI := CreateFile(Filename)
else
FileI := OpenFile(Filename, False);

CloseFile(FileI);

FileI := RewriteFile(Filename, False);
Result := WriteFileString(FileI, FileC);
finally
CloseFile(FileI);
end;
end;

{*******************************************************************************

Procedure ScriptUpdate;
Description: Checks For Newer Versions Of The Script And Updates The Script If
The User Sets The Update Constant;
Authors: Harry. Eddited By Me.

*******************************************************************************}
Procedure ScriptUpdate;
var ClientUp, Neifile:integer;
OnlineVersion, NewScript, NeiFeilNennen:string;
begin
if Auto_Update then
begin
Writeln('Checking For An Updated Script Version.');
OnlineVersion := GetPage('http://yagoscripts.netii.net/TCEVersion.html');
Writeln(onlineversion);
Writeln(Version);
if (Length(trim(OnlineVersion)) = 3) and (trim(OnlineVersion) > Version) then
begin
WriteLn('Newer Version Found Online. Will AutoUpdate.');
ClientUp := InitializeHTTPClient(False,False);
SetHTTPUserAgent(ClientUp,'Simba');
NewScript := GetHTTPPage(ClientUp,'http://yagoscripts.netii.net/TCE-Current.simba');
FreeHTTPClient(ClientUp);

NeiFeilNennen := ScriptPath + 'TheCuttingEdge v'+trim(OnlineVersion)+'.simba';
Neifile := Rewritefile(NeiFeilNennen, true);
try
WriteFileString(Neifile, NewScript);
except
begin
WriteLn('Fatal Error Writing To '+NeiFeilNennen+'!');
TerminateScript;
end;
end;
CloseFile(Neifile);
WriteLn('New Script Downloaded And Saved To '+NeiFeilNennen+' !! Please Use This!');
TerminateScript;
end else
begin
if (Length(trim(OnlineVersion)) <> 3) then
begin
WriteLn('Version Checking Failed. You Might Be Outdated.');
Writeln('Please Check For The Latest Version Online.');
end else
WriteLn('You Have The Latest Version Of The Script!');
Exit;
end;
end else
WriteLn('!!!!! Not Checking For The Latest Version Of This Script. You Might Be Outdated!');
end;

Procedure SetPlayers;
var
I: Integer;
begin
for I := 0 to High(MyPlayers) do
begin
Players[i].Name := MyPlayers[i].Name;
Players[i].Pass := MyPlayers[i].Pass;
Players[i].Pin := MyPlayers[i].Pin;
Players[i].Active := MyPlayers[i].Active;
Players[i].Member := MyPlayers[i].Member;
Players[i].WorldInfo := [MyPlayers[i].Member, -1, False];
Players[I].BoxRewards := MyPlayers[i].BoxRewards;
Players[i].LampSkill := MyPlayers[i].LampSkill;
MyPlayers[i].Exp := 0;
MyPlayers[i].Logs := 0;
MyPlayers[i].ExpH := 0;
MyPlayers[i].LogH := 0;
end;
end;

Procedure AntiRandoms;

begin
FindNormalRandoms;
DebugIt('Ran Procedure AntiRandoms.');
end;

function IsLoggedIn: boolean;
var
Timer: Integer;
begin
//Failsafe for the onFocus bug with SMART. The screen goes black for a few ms when focusing on SMART.
AntiRandoms;
Result := (PercentBlackMM <> 100) and LoggedIn;
MarkTime(Timer);
while (not Result) and (TimeFromMark(Timer) <= TLoggedIn) do
begin
AntiRandoms;
Result := (PercentBlackMM <> 100) and LoggedIn;
end;
DebugIt('IsLoggedIn: ' + ToStr(Result));
end;

{*******************************************************************************
procedure SetAngle(Highest : Boolean);
By: Raymond, edit by NaumanAkhlaQ. Editted By me
Description: Sets the mainscreen at highest\lowest angle (Depends on the boolean)
Taken From SRL Include.
*******************************************************************************}
Procedure SetCustomAngle(Highest: Boolean);
begin
if (not IsLoggedIn) then exit;
KeyDown((Integer(not Highest) * 2) + 38);
Sleep(1000 + Random(300));
KeyUp((Integer(not Highest) * 2) + 38);
end;

Procedure Maintenance(Angle: string);

begin
if not (IsLoggedIn) then
Exit;

DebugIt('Running Procedure Maintenance(' + Angle +').');
SetCustomAngle(True);
MakeCompass(Angle);
end;

Procedure AntiBan;

var
I, AB: Integer;

begin
if (AntiBanAmount <> 0) then
begin
if (AntiBanAmount > 100) then
AB := 1000
else
AB := AntiBanAmount * 10;
I := Random(90 * (Ceil(1000/AB))) + 1;
case I of
1: RandomRClick;
2,3:
begin
HoverSkill('woodcutting', False);
SleepAndMoveMouse(100);
end;
4: PickUpMouse;
5: RandomAngle(True);
6: RandomMovement;
7: BoredHuman;
8..10: SleepAndMoveMouse(500);
end;
if (I <= 10) then
begin
DebugIt('Ran AntiBan Procedure.');
Maintenance('W');
end;
end;
end;

Procedure AssignStatus(Assignment: string);

begin
Event := Assignment;
end;

Procedure PrintOnSMART(Force: boolean);//Not Mine, Just Editted

var
Log, Exp, Logsh, Exph, Portion, I: Integer;
ThePoint: TPoint;
V: string;

begin
if (PaintWait = 0) or ((not Force) and (TimeFromMark(PaintTimer) < PaintWait)) then
Exit;
Log := MyPlayers[CurrentPlayer].Logs;
Exp := Round(175 * Log);
LogsH := Ceil((Log * 60.0 * 60.0 * 1000.0) / PlayerWorked(CurrentPlayer));
ExpH := Ceil((Exp * 60.0 * 60.0 * 1000.0) / PlayerWorked(CurrentPlayer));
for I := 0 to 5 do
begin
case I of
0:
begin
V := tostr(Log) + ' Logs';
ThePoint := Point(267,62);
end;

1:
begin
V := tostr(Exp) + ' Exp';
ThePoint := Point(267,79);
end;

2:
begin
V := tostr(ExpH);
ThePoint := Point(267,96);
end;

3:
begin
V := tostr(LogsH) + ' Logs';
ThePoint := Point(267,113);
end;

4:
begin
V := Event;
ThePoint := Point(382,64);
end;

5:
begin
V := MsToTime(GetTimeRunning, Time_Short);
ThePoint := Point(421,94);
end;
end;
if V = PaintArray[I] then
Continue;
Portion := GetMufasaBitmap(Prog).Copy(ThePoint.x, ThePoint.y, ThePoint.x + 76, ThePoint.y + 17).Index;
SMART_DrawBitmap(False,Portion,Point(MCX1 + ThePoint.x, MCY1 + ThePoint.y));
FreeBitmap(Portion);
SMART_DrawTextEx(False,MCX1 + ThePoint.x, MCY1 + ThePoint.y, SmallChars, V, clGreen);
end;
PaintArray := [tostr(Log) + ' Logs',tostr(Exp) + ' Exp',tostr(ExpH),tostr(LogsH) + ' Logs',Event,MsToTime(GetTimeRunning, Time_Short)];
MarkTime(PaintTimer);
end;

Procedure DrawPoint(Clear: Boolean; P: TPoint; S: Integer);
begin
if Clear then
SMART_ClearCanvasArea(IntToBox(MMX1, MMY1, MMX2, MMY2));

SMART_DrawLine(False,Point(P.x-S,P.y-S),Point(P.x+S+1,P.y+S+1),clBlue);
SMART_DrawLine(False,Point(P.x-S,P.y-S-1),Point(P.x+S,P.y+S+1),clBlue);
SMART_DrawLine(False,Point(P.x-S-1,P.y-S),Point(P.x+S+1,P.y+S),clBlue);
SMART_DrawLine(False,Point(P.x-S,P.y+S),Point(P.x+S+1,P.y-S-1),clBlue);
SMART_DrawLine(False,Point(P.x-S-1,P.y+S),Point(P.x+S+1,P.y-S),clBlue);
SMART_DrawLine(False,Point(P.x-S,P.y+S+1),Point(P.x+S,P.y-S-1),clBlue);
end;

Procedure RemoveATPAByAccuracy(var ATPA: T2DPointArray; Accuracy, Color: Integer);

var
I: Integer;

begin
for I := 0 to High(ATPA) do
if (Length(ATPA) = 0) or (High(ATPA) < I) then
else if Length(ATPA[I]) < Accuracy then
begin
DeleteValueInATPA(ATPA, I);
I := I - 1;
end else if (Color <> 0) then
begin
DebugIt(ToStr(Length(ATPA[I])));
SMART_DrawDotsEx(False, ATPA[I], Color + I * 100);
end;
end;

Function LoadAxeDTM(Which: Integer): integer;

begin
DebugIt('LoadAxeDTM: ' + ToStr(Which));
case Which of
Dragon_Axe: Result := DTMFromString('mbQAAAHicY2VgYLjKwsBwAIhvAPEdID4BxF+B4hyMDAz/gPQnIP4GxJ78XECSCQUDlWAARiwYDADXZQh/');
Rune_Axe: Result := DTMFromString('mbQAAAHicY2VgYOACYn4gFgZiFgYIYAJiDiS2JBDbevpDeQgMU48MGLFgMAAAV5oBQQ==');
Addy_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAbO1iDRVBYBYGBGCG0oxYMBgAAFEzASk=');
Mith_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAbGYWABVBYBYGBGCG0oxYMBgAAFGZASs=');
Steel_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAnJuZCRVBYBYGBGCG0oxYMBgAAHJ3Aa4=');
Black_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAzMfLCxVBYBYGBGCG0oxYMBgAACy0AJc=');
Iron_Axe: Result := DTMFromString('mbQAAAHicY2VgYOACYn4gFgZiFgYIYAJiDiS2JBC7ODpCeQjMCFXDzIAAjFgwGAAAU9cBMg==');
Bronze_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAbG8gAxVBYBYGBGCG0oxYMBgAAEWWAPo=');
end;
end;

Function PlayerStartUp: boolean;

var
Level,AxeDTM, x, y, I: integer;

begin
DebugIt('Function PlayerStartUp.');
Result := False;
if not IsLoggedIn then
Exit;

CloseBank;
ClosePinScreen;
SetCustomAngle(True);

Level := GetSkillLevel(Skill_WoodCutting);
DebugIt('WC Level Is ' + ToStr(Level));
case Level of
61..100: I := Dragon_Axe;
41..60: I := Rune_Axe;
31..40: I := Addy_Axe;
21..30: I := Mith_Axe;
6..20: I := Steel_Axe;
else
I := Bronze_Axe;
end;

if MyPlayers[CurrentPlayer].AxeWielded then
Gametab(tab_Equip)
else
GameTab(tab_Inv);

for I := I to Bronze_Axe do
begin
AxeDTM := LoadAxeDTM(I);
Result := FindDTM(AxeDTM, x, y, MIX1, MIY1, MIX2, MIY2);
FreeDTM(AxeDTM);
if Result then
Break;
end;

if Result then
if InvFull then
AssignStatus('Banking')
else
AssignStatus('Trees');
DebugIt('Player['+ ToStr(CurrentPlayer) + '] StartUp: ' + ToStr(Result));
end;

Procedure Report(Final: boolean);

Var
Log, TotalLogs, Exp, TotalExp, I: Integer;
LogsH, ExpH: LongInt;

begin
if (stats_Commit) then
Writeln('Stats Committed.');
if Final or ((TimeFromMark(ReportTimer) >= (ReportWait * 1000)) and IsLoggedIn) then
begin
for I := 0 to (High(Players)) do
begin
IncEx(TotalLogs, MyPlayers[I].Logs);
IncEx(TotalEXP, Round(YewLogExp * MyPlayers[I].Logs));
//IncEx(TotalLevels, Players[I].Integers[9]);
end;
Writeln('[Report]');
SRLRandomsReport;
WriteLn('*----------------------------------------------------------------*');
WriteLn('| The Cutting Edge ' + Padr(ToStr(Version), 23) + '|');
WriteLn('| By: Yago |');
WriteLn('|----------------------------------------------------------------|');
WriteLn('| Overall Progress Report |');
WriteLn('| |');
WriteLn('| ' + Padr('Total Players : ' + ToStr(HowManyPlayers), 53) + '|');
WriteLn('| ' + Padr('Total Time Running : ' + MsToTime(GetTimeRunning, Time_Abbrev), 53) + '|');
WriteLn('| ' + Padr('Total Logs Chopped : ' + ToStr(TotalLogs), 53) + '|');
WriteLn('| ' + Padr('Total Experience Gained : ' + ToStr(TotalEXP), 53) + '|');
//WriteLn('| ' + Padr('Total Smithing Levels Gained : ' + ToStr(TotalLevels), 53) + '|');
WriteLn('| |');
WriteLn('|----------------------------------------------------------------|');
end;

if (Final) then
for I := 0 to (High(Players)) do
begin
Log := MyPlayers[I].Logs;
Exp := Round(YewLogExp * Log);
LogsH := Ceil((Log * 60.0 * 60.0 * 1000.0) / PlayerWorked(I));
ExpH := Ceil((Exp * 60.0 * 60.0 * 1000.0) / PlayerWorked(I));
WriteLn('| Individual Report: |');
WriteLn('| |');
WriteLn('| ' + Padr('Player[' + ToStr(I) + ']: ' + Players[I].Name, 60) + '|');
WriteLn('| |');
//WriteLn('| ' + Padr('Reason : ' + Players[I].Strings[0], 60) + '|');
WriteLn('| ' + Padr('Time Active : ' + MsToTime(PlayerWorked(I), Time_Abbrev), 60) + '|');
//if TakeBreaks then
//Writeln('| ' + Padr('Breaks Taken : ' + ToStr(Players[I].Integers[10]) + ' Break(s)', 58) + '|');
WriteLn('| ' + Padr('Logs Chopped : ' + ToStr(Log), 60) + '|');
WriteLn('| ' + Padr('Logs Per Hour : ' + ToStr(LogsH), 60) + '|');
WriteLn('| ' + Padr('Experience Gained : ' + ToStr(Exp), 60) + '|');
WriteLn('| ' + Padr('Experience Per Hour : ' + ToStr(ExpH), 60) + '|');
//WriteLn('| ' + Padr('Smithing Level : ' + ToStr(Players[I].Integers[11]) + '(+' + ToStr(Players[I].Integers[9]) +')', 60) + '|');
WriteLn('| |');
WriteLn('*----------------------------------------------------------------*');
end
else if (TimeFromMark(ReportTimer) >= (ReportWait * 1000)) and IsLoggedIn then
begin
Log := MyPlayers[CurrentPlayer].Logs;
Exp := Round(YewLogExp * Log);
LogsH := Ceil((Log * 60.0 * 60.0 * 1000.0) / PlayerWorked(CurrentPlayer));
ExpH := Ceil((Exp * 60.0 * 60.0 * 1000.0) / PlayerWorked(CurrentPlayer));
WriteLn('| Individual Report: |');
WriteLn('| |');
WriteLn('| ' + Padr('Player[' + ToStr(CurrentPlayer) + ']: ' + MyPlayers[CurrentPlayer].Name, 60) + '|');
WriteLn('| |');
WriteLn('| ' + Padr('Status : ' + Event, 60) + '|');
WriteLn('| ' + Padr('Time Active : ' + MsToTime(PlayerWorked(CurrentPlayer), Time_Abbrev), 60) + '|');
//if TakeBreaks then
//Writeln('| ' + Padr('Breaks Taken : ' + ToStr(Players[CurrentPlayer].Integers[10]) + ' Break(s)', 58) + '|');
WriteLn('| ' + Padr('Logs Chopped : ' + ToStr(Log), 60) + '|');
WriteLn('| ' + Padr('Logs Per Hour : ' + ToStr(LogsH), 60) + '|');
WriteLn('| ' + Padr('Experience Gained : ' + ToStr(Exp), 60) + '|');
WriteLn('| ' + Padr('Experience Per Hour : ' + ToStr(ExpH), 60) + '|');
//WriteLn('| ' + Padr('Smithing Level : ' + ToStr(Players[CurrentPlayer].Integers[11]) + '(+' + ToStr(Players[CurrentPlayer].Integers[9]) +')', 60) + '|');
WriteLn('| |');
WriteLn('*----------------------------------------------------------------*');
Writeln('[/Report]');
MarkTime(ReportTimer);
end;
PrintOnSMART(Final);
if Final then
Writeln('[/Report]');
end;

Function BankOpen: boolean;

begin
Result := BankScreen or PinScreen;
end;

Function OpenEdgeBankNPC: boolean;

var
Banker: MyColor;
DCTS: Integer; //Defaults
Bankers: T2DPointArray;
Colors: TPointArray;
MousePoint: TPoint;
x, y, I: Integer;

begin
Result := False;

DCTS := GetColorToleranceSpeed;
Banker := LoadObject(OBJ_Banker);

try
ColorToleranceSpeed(Banker.CTS);
SetColorspeed2Modifiers(Banker.Hue, Banker.Sat);

if FindColorsSpiralTolerance(x, y, Colors, Banker.Color, MSX1, MSY1, MSX2, MSY2, Banker.Tol) then
begin
Bankers := TPAToATPA(Colors, 25);

SMART_ClearMS;
RemoveATPAByAccuracy(Bankers, Banker.Accuracy, clLime);

SortATPAFrom(Bankers,Point(MSCX,MSCY));
SortATPAFromFirstPoint(Bankers,Point(MSCX,MSCY));

for I := 0 to High(Bankers) do
begin
MousePoint := Bankers[I][Random(High(Bankers[I]))];
MMouse(MousePoint.x,MousePoint.y,0,0);
if WaitUpTextMulti(['anke','anker','nker'], 500) then
begin
ClickMouse2(False);
if WaitOptionMulti(Banker.Uptexts, 600) then
Result := WaitFunc(@BankOpen,50,4000);
end;
if Result then
Break;
end;
end;

SMART_ClearMS;
finally
ColorToleranceSpeed(DCTS);
SetColorspeed2Modifiers(DHue, DSat);
end;
end;

Function BankIt: boolean;

var
FailSafe: Integer;

begin
Result := False;
if not IsLoggedIn then
Exit;

Report(False);
for FailSafe := 0 to 4 do
if OpenEdgeBankNPC then
break;
if (FailSafe <= 4) then
begin
FailSafe := 0;
if PinScreen then
repeat
Inc(FailSafe);
InPin(Players[CurrentPlayer].Pin);
until WaitFunc(@BankScreen, 100, 1000) or (FailSafe >= 4);
if (FailSafe < 4) then
begin
FailSafe := 0;
repeat
Report(False);
Inc(FailSafe);
if MyPlayers[CurrentPlayer].AxeWielded then
Result := DepositAll
else
begin
Deposit(2,28,True);
Result := (InvCount = 1);
end;
until Result or (Failsafe >= 4);
if not Result then
DebugIt('Unable To DepositAll Items In The Inventory.');
end else
DebugIt('Unable To Open The Bank.');
end else
DebugIt('Unable To Open The Bank.');
DebugIt('BankIt: ' + ToStr(Result));
end;

function InTreeArea(out SPoints: TPointArray): boolean;

var
Check: Integer;

begin
AntiRandoms;

Check := 0;
repeat
Inc(Check);
FindSymbols(SPoints,'tree');
Result := (Length(SPoints) = 2);
until Result or (Check > 10);

DebugIt('InTreeArea: ' + ToStr(Result));
end;

function AtNorthTree(P: TPointArray): boolean;

begin
AntiRandoms;

Result := ((Distance(MMCX,MMCY,P[0].x,P[0].y) < Distance(MMCX,MMCY,P[1].x,P[1].y)) xor (P[0].x < P[1].x));
end;

Function GetTreePoint(North: Boolean; SPoints: TPointArray): TPoint;

begin
if not (North xor (SPoints[0].x < SPoints[1].x)) then
tSwap(SPoints[0], SPoints[1]);

SPoints := MidPoints(SPoints,9);

SMART_ClearCanvasArea(IntToBox(MMX1,MMY1,MMX2,MMY2));
SMART_DrawDotsEx(False, SPoints, clRed);
DrawPoint(False,SPoints[1],6);

Result := SPoints[1];
end;

Function Null_Point: TPoint;

begin
Result := Point(-1, -1);
end;

Function FindWalkPoint(Location: string): TPoint;

var
P: TPointArray;
Pt, NewPt, Offset: TPoint;
RotateRad: Extended;

begin
Result := Null_Point;
if not (IsLoggedIn and InTreeArea(P)) then
Exit;

case lowercase(Location) of
'bank': Offset := Point(35, -64);
'middle': Offset := Point(31, -20);
end;

if P[0].x < P[1].x then
tSwap(P[0],P[1]);
Pt := MiddleTPA(P);

RotateRad := Arctan2(P[0].x - Pt.x, Pt.y - P[0].y);
DebugIt('Degrees = ' + tostr(Degrees(RotateRad)));

NewPt := Point(Pt.x + Offset.x, Pt.y + Offset.y);
NewPt := RotatePoint(NewPt, RotateRad, Pt.x, Pt.y);

if rs_OnMiniMap(NewPt.x, NewPt.y) then
Result := NewPt;
end;

Function AngleWalkTo(Where: string; Rand, Dist: Integer): boolean;

var
WalkPt: TPoint;
FailSafe: Integer;

begin
WalkPt := FindWalkPoint(Where);
if (WalkPt = Null_Point) then
Exit;

DrawPoint(False, WalkPt, 10);

Result := Distance(MMCX, MMCY, WalkPt.x, WalkPt.y) < Dist;
if not Result then
begin
Mouse(WalkPt.x, WalkPt.y, Rand, Rand, mouse_Left);

Report(False);

if WaitFunc(@IsMoving, 1, 3000 + random(500)) then
begin
MarkTime(FailSafe);
while (TimeFromMark(FailSafe) < 30000) do
begin
WalkPt := FindWalkPoint(Where);
DrawPoint(True, WalkPt, 10);
if (Distance(MMCX, MMCY, WalkPt.x, WalkPt.y) < Dist) or (WalkPt = Null_Point) then
Break;
Wait(RandomRange(33,55));
Report(False);
end;
end;

DebugIt(ToStr(TimeFromMark(FailSafe)));

Result := (TimeFromMark(FailSafe) < 30000) and (WalkPt <> Null_Point);
end;
DebugIt('AngleWalkTo(' + ToStr(Where) + ', ' + ToStr(Rand) + ', ' + ToStr(Dist) + '): ' + ToStr(Result));
end;

Function InBankBox(X, Y: Integer): Boolean;

var
BankBox: TBox;

begin
BankBox := IntToBox(x - 12, y - 10, x + 16, y + 10);
Result := PointInBox(Point(MMCX, MMCY), BankBox);
if Result then

DebugIt('InBankBox(' + ToStr(X) + ', ' + ToStr(Y) + '): ' + ToStr(Result));
end;

Function WalkTo(Location: string): boolean;

var
Attempt, FailSafe, X, Y: Integer;
SP: TPointArray;
WPoint: TPoint;

begin
if not IsLoggedIn then
Exit;

Attempt := 0;

repeat
SMART_ClearCanvasArea(IntToBox(MMX1, MMY1, MMX2, MMY2));
Report(False);
if not IsLoggedIn then
Exit;

Inc(Attempt);

RunEnergy(20);
Maintenance('W');
DebugIt('Walking To ' + ToStr(Location) + ' -- Attempt: ' + ToStr(Attempt));
case lowercase(Location) of
'bank':
begin
Result := ObjDTM_Find(ObjDTM_Bank, x, y, True) and InBankBox(x, y);

if (not Result) and ObjDTM_Find(ObjDTM_Bank, x, y, True) then
begin
DebugIt('Found ObjDTM_Bank');
if not InBankBox(x, y) then
ObjDTM_Walk(ObjDTM_Bank, 3, 50, 10, True);
end else if AngleWalkTo('Middle', 1, 12) and ObjDTM_Find(ObjDTM_Bank, x, y, True) then
ObjDTM_Walk(ObjDTM_Bank, 3, 50, 10, True);

Result := ObjDTM_Find(ObjDTM_Bank, x, y, True) and InBankBox(x, y);
end;

'trees': Result := InTreeArea(SP) or (ObjDTM_Walk(ObjDTM_Middle, 3, 50, 10, True) and InTreeArea(SP));

'north', 'south':
begin
Report(False);

if InTreeArea(SP) then
begin
WPoint := GetTreePoint(lowercase(location) = 'north',SP);

Result := Distance(MMCX,MMCY,WPoint.x,WPoint.y) < 16;
if not Result then
begin
Mouse(WPoint.x,WPoint.y+RandomRange(3,5),0,0,True);
Report(False);
if WaitFunc(@IsMoving, 1, 3000 + random(500)) then
begin
MarkTime(FailSafe);
while (TimeFromMark(FailSafe) < 30000) and IsLoggedIn and InTreeArea(SP) do
begin
WPoint := GetTreePoint(lowercase(location) = 'north',SP);
if (Distance(MMCX,MMCY,WPoint.x,WPoint.y) < 16) then
Break;
Wait(RandomRange(33,55));
Report(False);
end;
end;

DebugIt(ToStr(TimeFromMark(FailSafe)));

Result := (TimeFromMark(FailSafe) < 30000) and InTreeArea(SP);
end;
end else
Result := False;
end;
end;
until Result or (Attempt >= MaxWalks) or (not IsLoggedIn);

stats_IncVariable('Times Walked', 1);
DebugIt('WalkTo(' + ToStr(Location) + '): ' + ToStr(Result));
end;

Procedure DoStats(var Count: Integer);

var
NewCount: Integer;

begin
if (not IsLoggedIn) or (Count = InvCount) then
Exit;

NewCount := InvCount;
IncEx(MyPlayers[CurrentPlayer].Logs, (NewCount - Count));
stats_IncVariable('Yew Logs Chopped', (NewCount - Count));
stats_IncVariable('Woodcutting EXP (Gained)', ((NewCount - Count) * YewLogExp));
stats_IncVariable('Total EXP Gained', ((NewCount - Count) * YewLogExp));
Count := NewCount;
end;

Function FindAYew(out TreeBox: TBox): boolean;

var
Colors: TPointArray;
Tree: MyColor;
DCTS: Integer;

begin
if not IsLoggedIn then
Exit;

DCTS := GetColorToleranceSpeed;
Tree := LoadObject(OBJ_TreeLeaves);

try
ColorToleranceSpeed(Tree.CTS);

Result := FindColorsTolerance(Colors, Tree.Color, MSX1, MSY1, MSX2, MSY2, Tree.Tol)
and (Length(Colors) >= Tree.Accuracy);
TreeBox := GetTPABounds(Colors);

DebugIt('Length Of Colors Is: ' + tostr(length(Colors)));
finally
ColorToleranceSpeed(DCTS);
DebugIt('FindAYew: ' + ToStr(Result));
end;
end;

Function CutAYew(TreeBox: TBox): boolean;

var
MousePoint: TPoint;
Colors: TPointArray;
DCTS: Integer; //Default CTS
Tree: MyColor;

begin
if not IsLoggedIn then
Exit;

DebugIt('Function CutAYew.');

DCTS := GetColorToleranceSpeed;
Tree := LoadObject(OBJ_TreeTrunk);

try
ColorToleranceSpeed(Tree.CTS);

if FindColorsTolerance(Colors, Tree.Color, TreeBox.X1, TreeBox.Y1, TreeBox.X2, TreeBox.Y2, Tree.Tol) then
begin
SMART_ClearMS;
SMART_DrawDotsEx(False, Colors, clRed);

DebugIt('Length Of Colors Is: ' + tostr(length(Colors)));

//MousePoint := Colors[Random(High(Colors))];
MousePoint := MiddleTPA(Colors);
MMouse(MousePoint.x,MousePoint.y-10,5,5);
if WaitUpTextMulti(Tree.Uptexts, 500) then
ClickMouse2(true);

Result := DidRedClick;
end else
DebugIt('Unable To Find Tree Trunk Colors.');

finally
SetColorToleranceSpeed(DCTS);
DebugIt('CutAYew: ' + ToStr(Result));
end;
end;

Function ChopDownYew(out TreeGone: boolean): boolean;

var
Bounds: TBox;
TreeTime, Counter, I, Count: Integer;

begin
Report(False);
if (not IsLoggedIn) or InvFull then
Exit;

TreeGone := False;

Count := InvCount;
for I := 0 to MaxRetry do
begin
DebugIt('Retry: ' + ToStr(I));
if IsLoggedIn and (not InvFull) and FindAYew(Bounds) then
begin
DebugIt(ToStr(I));
Maintenance('W');

DebugIt('Found A Yew Tree.');
if CutAYew(Bounds) then
begin
Report(False);
DebugIt('Successfully Began To Chop Down Yew.');

MarkTime(TreeTime);
Counter := 0;

while IsLoggedIn and (not InvFull) and (Counter < 3) and (TimeFromMark(TreeTime) < MaxIdle) do
begin
AntiBan;
if not FindAYew(Bounds) then
Inc(Counter);

//Stats
DoStats(Count);
Report(False);

Wait(RandomRange(50,66));
end;
DebugIt('Time: ' + ToStr(TimeFromMark(TreeTime)));
Result := IsLoggedIn and (InvFull or ((TimeFromMark(TreeTime) < MaxIdle) xor (Counter < 3)));
if Result then
TreeGone := (TimeFromMark(TreeTime) < MaxIdle) and (Counter >= 3);
SMART_ClearMS;

//Stats
DoStats(Count);
end;
end;
end;

//Stats
DoStats(Count);

DebugIt(ToStr(I));
DebugIt('ChopDownYew(' + tostr(TreeGone) + '): ' + ToStr(Result));
end;

Function WaitTree: boolean;

var
MainTimer: Integer;
Unused: TBox;
It: TPointArray;

begin
if (not IsLoggedIn) or InvFull or (not InTreeArea(It)) then
Exit;

if AtNorthTree(It) then
WalkTo('South')
else
WalkTo('North');

MarkTime(MainTimer);

while IsLoggedIn and (not FindAYew(Unused)) and (TimeFromMark(MainTimer) < MaxWait) do
begin
AntiBan;
Report(False);
Wait(RandomRange(100,133));
end;

Result := IsLoggedIn and (TimeFromMark(MainTimer) < MaxWait);
DebugIt('WaitTree: ' + ToStr(Result));
end;

Procedure FreeMe;

begin
Report(True);
Writeln('"Bye Guys" - Yago');
end;

Procedure MainLoop;

var
WaitAttempts: Integer;
Unused: TPointArray;
MoveOn: Boolean;

begin
repeat
if not IsLoggedIn then
LoginPlayer
else
PlayerStartTime := GetSystemTime;

if not PlayerStartUp then
begin
DebugIt('Aborting!');
Exit;
end;

WaitAttempts := 0;
MarkTime(ReportTimer);
MarkTime(PaintTimer);
while IsLoggedIn and (WaitAttempts <= MaxWaits) do
begin
Report(False);
if (lowercase(Event) <> 'logout') and InvFull then
AssignStatus('Banking');
Writeln('Status: ' + Event);
case lowercase(Event) of
'banking':
if WalkTo('Bank') and BankIt then
begin
stats_IncVariable('Times Banked', 1000)
AssignStatus('Trees');
end;

'trees':
begin
if not InTreeArea(Unused) then
WalkTo('Trees');

if WalkTo('South') then
AssignStatus('Chopping');
end;

'chopping':
if (not ChopDownYew(MoveOn)) or MoveOn then
begin
AssignStatus('Waiting');
WaitAttempts := 0;
end;

'waiting':
if not WaitTree then
begin
Inc(WaitAttempts);
DebugIt('Wait Attempt: ' + ToStr(WaitAttempts));
end else
AssignStatus('Chopping');

end;
end;
NextPlayer(False);
until AllPlayersInactive;
end;

Begin
ClearDebug;

ScriptUpdate;
DownloadToFile('http://yagoscripts.netii.net/TCEProg.png',ThePath);


SetupSRL;
ObjDTM_Setup;
ObjDTM_Debug := Debug_Script;
SMART_ClearCanvas;

if (Stats_UserID = '') then
SetupSRLStats(919, 'YagoScripts', 'abcdefghij')
else
SetupSRLStats(919, Stats_UserID, Stats_Password);

DeclarePlayers;
SetPlayers;

Init;
AddOnTerminate('FreeMe');

MainLoop;
End.



Its not perfect, and I took out a lot of the code that logs you out since it kept randomly doing so.

But I haven't had any problems and can get it to run 6 hours or so.

Tomazino

2012-08-29 05:52:50

[Error] C:\Simba\Scripts\TheCuttingEdge v0.6.simba(850:43): Invalid number of parameters at line 849
Compiling failed.
What's that?

Leonardo Da Vinci

2012-09-01 05:26:57

I keep getting this error…
[Error] C:\Simba\Scripts\TheCuttingEdge v0.6.simba(850:43): Invalid number of parameters at line 849
Compiling failed.

The "error" is:
SMART_DrawBoxEx(False, BankBox, clRed);

litoris

2012-09-01 05:52:21

From: Leonardo Da Vinci
I keep getting this error…
[Error] C:\Simba\Scripts\TheCuttingEdge v0.6.simba(850:43): Invalid number of parameters at line 849
Compiling failed.

The "error" is:
SMART_DrawBoxEx(False, BankBox, clRed);


procedure SMART_DrawBoxEx(Clear, Fill: boolean; Box: TBox; color: TColor)
There was a new parameter added, called fill. Replacing the line with
SMART_DrawBoxEx(False, False, BankBox, clRed);
should theoretically solve the issue. Let me know if it works.

Leonardo Da Vinci

2012-09-01 08:41:29

From: litoris
procedure SMART_DrawBoxEx(Clear, Fill: boolean; Box: TBox; color: TColor)
There was a new parameter added, called fill. Replacing the line with
SMART_DrawBoxEx(False, False, BankBox, clRed);
should theoretically solve the issue. Let me know if it works.


It sure did!
But now there's this error instead…
Smart_Server  := WORLD;

Solar

2012-09-01 09:37:17

Try going through this; http://villavu.com/forum/showthread.php?t=88578

Leonardo Da Vinci

2012-09-01 10:13:35

From: Solar
Try going through this; http://villavu.com/forum/showthread.php?t=88578


Thanks, it now compiles…
I'll share it so everyone else can use it too.

Leonardo Da Vinci

2012-09-01 10:15:21

Here's the working fix.
I've been running it for a few hours without any trouble.
Enjoy!

Program TheCutingEdge;

{$DEFINE SMART}
{$i SRL/SRL.simba}
{$i ObjectDTM/ObjDTMInclude.simba}

const
{----SMART Setup Constants----}
WORLD = 0; // Choose What Server To Load. Set As 0 For Random Sever.
{-----------------------------}

Stats_UserID = ''; // SRL Stats ID (Leave Blank If None).
Stats_Password = ''; // SRL Stats Password (Leave Blank If None).

Debug_Script = False; // Set To True To Debug The Script.
Auto_Update = True; // Check For And Download The Newest Script Version.

AntiBanAmount = 25; // 0 = 0% Chance. 100 = 100%.
ReportWait = 60; // How Often In Seconds To Print A Text Report
PaintWait = 50; // How Often In Miliseconds To Print On Screen. Set To 0 For No Paint


Type
MyPlayer = Record
Name, Pass, Pin: string;
Member, Active, AxeWielded: Boolean;
Logs, Exp, LogH, ExpH, LampSkill: Integer;
BoxRewards: TStringArray;
End;
MyColor = Record
Color, Tol, CTS, Accuracy: Integer;
Sat, Hue: Extended;
Uptexts: TStringArray;
End;

var MyPlayers: Array of MyPlayer;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := 0;

NumberOfPlayers(HowManyPlayers);
setlength(MyPlayers, HowManyPlayers);

With MyPlayers[0] do
begin
Name := ''; //Character Name
Pass := ''; //Character Pass
Pin := ''; //Pin for bank
Member := True; //True = Members Account & False = Non-Members Account.
Active := True; //Use player in script?
AxeWielded := True; //Is You Axe Wielded? Yes = True and No = False. If No then place axe in first slot.
BoxRewards := ['XP','Lamp'];
LampSkill := SKILL_WOODCUTTING;
end;
end;

{Do Not Touch Below Unless Instructed To!!!}
const
//Version And Paths
Version = '0.6'; //Script Version;
ThePath = ScriptPath + '/TCEProg.png'; // Image Path;

//Script-Function Wait Times
MaxWait = 100000; //How much time to wait for a tree after checking the previous tree.
MaxWaits = 10; //How many times to go from tree to tree without success before logging out.
MaxWalks = 4; //Maximum Attempts To Repeat Walking If Failed
MaxIdle = 60000; //Failsafe Time To Idle While Chopping
MaxRetry = 4; //Max Number of times to retry chopping script while idle

//Color-Related Constants
DHue = 0.2;
DSat = 0.2; //Default Hue And Sat

//Axe Constants
Dragon_Axe = 0;
Rune_Axe = 1;
Addy_Axe = 2;
Mith_Axe = 3;
Steel_Axe = 4;
Black_Axe = 5;
Iron_Axe = 6;
Bronze_Axe = 7;

//Other
YewLogExp = 175;
TLoggedIn = 4000;

//Object Constats
OBJ_Banker = 0;
OBJ_TreeTrunk = 1;
OBJ_TreeLeaves = 2;

//OBJDTM Points
ObjDTM_Bank = '81:80:7:1:7:121:67:1:7:92:32:10:7:91:66:10:7:87:71:10:7:87:79:10:7:87:88:3:7:127:84';
ObjDTM_Middle = '79:125:7:1:7:121:67:1:7:92:32:10:7:91:66:10:7:87:71:10:7:87:79:10:7:87:88:3:7:127:84';

var
Event: string;
ReportTimer, PaintTimer, Prog: Integer;
PaintArray: TStringArray;

Procedure DebugIt(Text: string);

begin
if Debug_Script then
Writeln(Text);
end;

Procedure Init;

begin
{Paint}
if (PaintWait <> 0) then
begin
Prog := LoadBitmap(ThePath);
SMART_DrawBitmap(True,Prog,Point(MCX1,MCY1));
SetLength(PaintArray,6);
end;
end;

Function LoadObject(Which: Integer): MyColor;

begin
case Which of

OBJ_Banker:
with Result do
begin
Color := 3678760;
Hue := 0.06;
Sat := 0.45;
Tol := 10;
CTS := 2;
Accuracy := 100;
Uptexts := ['Bank B', 'nk B'];
end;

OBJ_TreeTrunk:
with Result do
begin
Color := 1120536;
Tol := 1;
CTS := 1;
Uptexts := ['Chop','down','Yew','hop d','wn Y'];
end;

OBJ_TreeLeaves:
with Result do
begin
Color := 2113332;
Tol := 3;
CTS := 0;
Accuracy := 200;
end;
end;
end;

{*******************************************************************************
function DownloadToFile(const URL, Filename: string): boolean;
By: Dgby714. Editted By Yago.
Description: Downloading file from URL to Filename.
*******************************************************************************}
Function DownloadToFile(const URL, Filename: string): boolean;
var
FileI: LongInt;
FileC, FileH: string;
begin
Writeln('Paint File Check.');
Result := False;
FileI := InitializeHTTPClient(False,False);
try
FileC := GetHTTPPage(FileI, URL);
FileH := GetRawHeaders(FileI);

if ((FileC = '') or (FileH = '')) then
begin
WriteLn('Error downloading "' + URL + '".');
Exit;
end;

FileH := Copy(GetRawHeaders(FileI), 10, Pos(#13, FileH) - 10); //Error Code
if (FileH <> '200 OK') then
begin
WriteLn('Couldn''t download "' + URL + '", Error Code: ' + FileH + '.');
Exit;
end;
finally
FreeHTTPClient(FileI);
end;

try
if not FileExists(Filename) then
FileI := CreateFile(Filename)
else
FileI := OpenFile(Filename, False);

CloseFile(FileI);

FileI := RewriteFile(Filename, False);
Result := WriteFileString(FileI, FileC);
finally
CloseFile(FileI);
end;
end;

{*******************************************************************************

Procedure ScriptUpdate;
Description: Checks For Newer Versions Of The Script And Updates The Script If
The User Sets The Update Constant;
Authors: Harry. Eddited By Me.

*******************************************************************************}
Procedure ScriptUpdate;
var ClientUp, Neifile:integer;
OnlineVersion, NewScript, NeiFeilNennen:string;
begin
if Auto_Update then
begin
Writeln('Checking For An Updated Script Version.');
OnlineVersion := GetPage('http://yagoscripts.netii.net/TCEVersion.html');
Writeln(onlineversion);
Writeln(Version);
if (Length(trim(OnlineVersion)) = 3) and (trim(OnlineVersion) > Version) then
begin
WriteLn('Newer Version Found Online. Will AutoUpdate.');
ClientUp := InitializeHTTPClient(False,False);
SetHTTPUserAgent(ClientUp,'Simba');
NewScript := GetHTTPPage(ClientUp,'http://yagoscripts.netii.net/TCE-Current.simba');
FreeHTTPClient(ClientUp);

NeiFeilNennen := ScriptPath + 'TheCuttingEdge v'+trim(OnlineVersion)+'.simba';
Neifile := Rewritefile(NeiFeilNennen, true);
try
WriteFileString(Neifile, NewScript);
except
begin
WriteLn('Fatal Error Writing To '+NeiFeilNennen+'!');
TerminateScript;
end;
end;
CloseFile(Neifile);
WriteLn('New Script Downloaded And Saved To '+NeiFeilNennen+' !! Please Use This!');
TerminateScript;
end else
begin
if (Length(trim(OnlineVersion)) <> 3) then
begin
WriteLn('Version Checking Failed. You Might Be Outdated.');
Writeln('Please Check For The Latest Version Online.');
end else
WriteLn('You Have The Latest Version Of The Script!');
Exit;
end;
end else
WriteLn('!!!!! Not Checking For The Latest Version Of This Script. You Might Be Outdated!');
end;

Procedure SetPlayers;
var
I: Integer;
begin
for I := 0 to High(MyPlayers) do
begin
Players[i].Name := MyPlayers[i].Name;
Players[i].Pass := MyPlayers[i].Pass;
Players[i].Pin := MyPlayers[i].Pin;
Players[i].Active := MyPlayers[i].Active;
Players[i].Member := MyPlayers[i].Member;
Players[i].WorldInfo := [MyPlayers[i].Member, -1, False];
Players[I].BoxRewards := MyPlayers[i].BoxRewards;
Players[i].LampSkill := MyPlayers[i].LampSkill;
MyPlayers[i].Exp := 0;
MyPlayers[i].Logs := 0;
MyPlayers[i].ExpH := 0;
MyPlayers[i].LogH := 0;
end;
end;

Procedure AntiRandoms;

begin
FindNormalRandoms;
DebugIt('Ran Procedure AntiRandoms.');
end;

function IsLoggedIn: boolean;
var
Timer: Integer;
begin
//Failsafe for the onFocus bug with SMART. The screen goes black for a few ms when focusing on SMART.
AntiRandoms;
Result := (PercentBlackMM <> 100) and LoggedIn;
MarkTime(Timer);
while (not Result) and (TimeFromMark(Timer) <= TLoggedIn) do
begin
AntiRandoms;
Result := (PercentBlackMM <> 100) and LoggedIn;
end;
DebugIt('IsLoggedIn: ' + ToStr(Result));
end;

{*******************************************************************************
procedure SetAngle(Highest : Boolean);
By: Raymond, edit by NaumanAkhlaQ. Editted By me
Description: Sets the mainscreen at highest\lowest angle (Depends on the boolean)
Taken From SRL Include.
*******************************************************************************}
Procedure SetCustomAngle(Highest: Boolean);
begin
if (not IsLoggedIn) then exit;
KeyDown((Integer(not Highest) * 2) + 38);
Sleep(1000 + Random(300));
KeyUp((Integer(not Highest) * 2) + 38);
end;

Procedure Maintenance(Angle: string);

begin
if not (IsLoggedIn) then
Exit;

DebugIt('Running Procedure Maintenance(' + Angle +').');
SetCustomAngle(True);
MakeCompass(Angle);
end;

Procedure AntiBan;

var
I, AB: Integer;

begin
if (AntiBanAmount <> 0) then
begin
if (AntiBanAmount > 100) then
AB := 1000
else
AB := AntiBanAmount * 10;
I := Random(90 * (Ceil(1000/AB))) + 1;
case I of
1: RandomRClick;
2,3:
begin
HoverSkill('woodcutting', False);
SleepAndMoveMouse(100);
end;
4: PickUpMouse;
5: RandomAngle(True);
6: RandomMovement;
7: BoredHuman;
8..10: SleepAndMoveMouse(500);
end;
if (I <= 10) then
begin
DebugIt('Ran AntiBan Procedure.');
Maintenance('W');
end;
end;
end;

Procedure AssignStatus(Assignment: string);

begin
Event := Assignment;
end;

Procedure PrintOnSMART(Force: boolean);//Not Mine, Just Editted

var
Log, Exp, Logsh, Exph, Portion, I: Integer;
ThePoint: TPoint;
V: string;

begin
if (PaintWait = 0) or ((not Force) and (TimeFromMark(PaintTimer) < PaintWait)) then
Exit;
Log := MyPlayers[CurrentPlayer].Logs;
Exp := Round(175 * Log);
LogsH := Ceil((Log * 60.0 * 60.0 * 1000.0) / PlayerWorked(CurrentPlayer));
ExpH := Ceil((Exp * 60.0 * 60.0 * 1000.0) / PlayerWorked(CurrentPlayer));
for I := 0 to 5 do
begin
case I of
0:
begin
V := tostr(Log) + ' Logs';
ThePoint := Point(267,62);
end;

1:
begin
V := tostr(Exp) + ' Exp';
ThePoint := Point(267,79);
end;

2:
begin
V := tostr(ExpH);
ThePoint := Point(267,96);
end;

3:
begin
V := tostr(LogsH) + ' Logs';
ThePoint := Point(267,113);
end;

4:
begin
V := Event;
ThePoint := Point(382,64);
end;

5:
begin
V := MsToTime(GetTimeRunning, Time_Short);
ThePoint := Point(421,94);
end;
end;
if V = PaintArray[I] then
Continue;
Portion := GetMufasaBitmap(Prog).Copy(ThePoint.x, ThePoint.y, ThePoint.x + 76, ThePoint.y + 17).Index;
SMART_DrawBitmap(False,Portion,Point(MCX1 + ThePoint.x, MCY1 + ThePoint.y));
FreeBitmap(Portion);
SMART_DrawTextEx(False,MCX1 + ThePoint.x, MCY1 + ThePoint.y, SmallChars, V, clGreen);
end;
PaintArray := [tostr(Log) + ' Logs',tostr(Exp) + ' Exp',tostr(ExpH),tostr(LogsH) + ' Logs',Event,MsToTime(GetTimeRunning, Time_Short)];
MarkTime(PaintTimer);
end;

Procedure DrawPoint(Clear: Boolean; P: TPoint; S: Integer);
begin
if Clear then
SMART_ClearCanvasArea(IntToBox(MMX1, MMY1, MMX2, MMY2));

SMART_DrawLine(False,Point(P.x-S,P.y-S),Point(P.x+S+1,P.y+S+1),clBlue);
SMART_DrawLine(False,Point(P.x-S,P.y-S-1),Point(P.x+S,P.y+S+1),clBlue);
SMART_DrawLine(False,Point(P.x-S-1,P.y-S),Point(P.x+S+1,P.y+S),clBlue);
SMART_DrawLine(False,Point(P.x-S,P.y+S),Point(P.x+S+1,P.y-S-1),clBlue);
SMART_DrawLine(False,Point(P.x-S-1,P.y+S),Point(P.x+S+1,P.y-S),clBlue);
SMART_DrawLine(False,Point(P.x-S,P.y+S+1),Point(P.x+S,P.y-S-1),clBlue);
end;

Procedure RemoveATPAByAccuracy(var ATPA: T2DPointArray; Accuracy, Color: Integer);

var
I: Integer;

begin
for I := 0 to High(ATPA) do
if (Length(ATPA) = 0) or (High(ATPA) < I) then
Break
else if Length(ATPA[I]) < Accuracy then
begin
DeleteValueInATPA(ATPA, I);
I := I - 1;
end else if (Color <> 0) then
begin
DebugIt(ToStr(Length(ATPA[I])));
SMART_DrawDotsEx(False, ATPA[I], Color + I * 100);
end;
end;

Function LoadAxeDTM(Which: Integer): integer;

begin
DebugIt('LoadAxeDTM: ' + ToStr(Which));
case Which of
Dragon_Axe: Result := DTMFromString('mbQAAAHicY2VgYLjKwsBwAIhvAPEdID4BxF+B4hyMDAz/gPQnIP4GxJ78XECSCQUDlWAARiwYDADXZQh/');
Rune_Axe: Result := DTMFromString('mbQAAAHicY2VgYOACYn4gFgZiFgYIYAJiDiS2JBDbevpDeQgMU48MGLFgMAAAV5oBQQ==');
Addy_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAbO1iDRVBYBYGBGCG0oxYMBgAAFEzASk=');
Mith_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAbGYWABVBYBYGBGCG0oxYMBgAAFGZASs=');
Steel_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAnJuZCRVBYBYGBGCG0oxYMBgAAHJ3Aa4=');
Black_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAzMfLCxVBYBYGBGCG0oxYMBgAACy0AJc=');
Iron_Axe: Result := DTMFromString('mbQAAAHicY2VgYOACYn4gFgZiFgYIYAJiDiS2JBC7ODpCeQjMCFXDzIAAjFgwGAAAU9cBMg==');
Bronze_Axe: Result := DTMFromString('mbQAAAHicY2VgYOBigAAWIBYGYn4gZgJiSSgNAhxAbG8gAxVBYBYGBGCG0oxYMBgAAEWWAPo=');
end;
end;

Function PlayerStartUp: boolean;

var
Level,AxeDTM, x, y, I: integer;

begin
DebugIt('Function PlayerStartUp.');
Result := False;
if not IsLoggedIn then
Exit;

CloseBank;
ClosePinScreen;
SetCustomAngle(True);

Level := GetSkillLevel(Skill_WoodCutting);
DebugIt('WC Level Is ' + ToStr(Level));
case Level of
61..100: I := Dragon_Axe;
41..60: I := Rune_Axe;
31..40: I := Addy_Axe;
21..30: I := Mith_Axe;
6..20: I := Steel_Axe;
else
I := Bronze_Axe;
end;

if MyPlayers[CurrentPlayer].AxeWielded then
Gametab(tab_Equip)
else
GameTab(tab_Inv);

for I := I to Bronze_Axe do
begin
AxeDTM := LoadAxeDTM(I);
Result := FindDTM(AxeDTM, x, y, MIX1, MIY1, MIX2, MIY2);
FreeDTM(AxeDTM);
if Result then
Break;
end;

if Result then
if InvFull then
AssignStatus('Banking')
else
AssignStatus('Trees');
DebugIt('Player['+ ToStr(CurrentPlayer) + '] StartUp: ' + ToStr(Result));
end;

Procedure Report(Final: boolean);

Var
Log, TotalLogs, Exp, TotalExp, I: Integer;
LogsH, ExpH: LongInt;

begin
if (stats_Commit) then
Writeln('Stats Committed.');
if Final or ((TimeFromMark(ReportTimer) >= (ReportWait * 1000)) and IsLoggedIn) then
begin
for I := 0 to (High(Players)) do
begin
IncEx(TotalLogs, MyPlayers[I].Logs);
IncEx(TotalEXP, Round(YewLogExp * MyPlayers[I].Logs));
//IncEx(TotalLevels, Players[I].Integers[9]);
end;
Writeln('[Report]');
SRLRandomsReport;
WriteLn('*----------------------------------------------------------------*');
WriteLn('| The Cutting Edge ' + Padr(ToStr(Version), 23) + '|');
WriteLn('| By: Yago |');
WriteLn('|----------------------------------------------------------------|');
WriteLn('| Overall Progress Report |');
WriteLn('| |');
WriteLn('| ' + Padr('Total Players : ' + ToStr(HowManyPlayers), 53) + '|');
WriteLn('| ' + Padr('Total Time Running : ' + MsToTime(GetTimeRunning, Time_Abbrev), 53) + '|');
WriteLn('| ' + Padr('Total Logs Chopped : ' + ToStr(TotalLogs), 53) + '|');
WriteLn('| ' + Padr('Total Experience Gained : ' + ToStr(TotalEXP), 53) + '|');
//WriteLn('| ' + Padr('Total Smithing Levels Gained : ' + ToStr(TotalLevels), 53) + '|');
WriteLn('| |');
WriteLn('|----------------------------------------------------------------|');
end;

if (Final) then
for I := 0 to (High(Players)) do
begin
Log := MyPlayers[I].Logs;
Exp := Round(YewLogExp * Log);
LogsH := Ceil((Log * 60.0 * 60.0 * 1000.0) / PlayerWorked(I));
ExpH := Ceil((Exp * 60.0 * 60.0 * 1000.0) / PlayerWorked(I));
WriteLn('| Individual Report: |');
WriteLn('| |');
WriteLn('| ' + Padr('Player[' + ToStr(I) + ']: ' + Players[I].Name, 60) + '|');
WriteLn('| |');
//WriteLn('| ' + Padr('Reason : ' + Players[I].Strings[0], 60) + '|');
WriteLn('| ' + Padr('Time Active : ' + MsToTime(PlayerWorked(I), Time_Abbrev), 60) + '|');
//if TakeBreaks then
//Writeln('| ' + Padr('Breaks Taken : ' + ToStr(Players[I].Integers[10]) + ' Break(s)', 58) + '|');
WriteLn('| ' + Padr('Logs Chopped : ' + ToStr(Log), 60) + '|');
WriteLn('| ' + Padr('Logs Per Hour : ' + ToStr(LogsH), 60) + '|');
WriteLn('| ' + Padr('Experience Gained : ' + ToStr(Exp), 60) + '|');
WriteLn('| ' + Padr('Experience Per Hour : ' + ToStr(ExpH), 60) + '|');
//WriteLn('| ' + Padr('Smithing Level : ' + ToStr(Players[I].Integers[11]) + '(+' + ToStr(Players[I].Integers[9]) +')', 60) + '|');
WriteLn('| |');
WriteLn('*----------------------------------------------------------------*');
end
else if (TimeFromMark(ReportTimer) >= (ReportWait * 1000)) and IsLoggedIn then
begin
Log := MyPlayers[CurrentPlayer].Logs;
Exp := Round(YewLogExp * Log);
LogsH := Ceil((Log * 60.0 * 60.0 * 1000.0) / PlayerWorked(CurrentPlayer));
ExpH := Ceil((Exp * 60.0 * 60.0 * 1000.0) / PlayerWorked(CurrentPlayer));
WriteLn('| Individual Report: |');
WriteLn('| |');
WriteLn('| ' + Padr('Player[' + ToStr(CurrentPlayer) + ']: ' + MyPlayers[CurrentPlayer].Name, 60) + '|');
WriteLn('| |');
WriteLn('| ' + Padr('Status : ' + Event, 60) + '|');
WriteLn('| ' + Padr('Time Active : ' + MsToTime(PlayerWorked(CurrentPlayer), Time_Abbrev), 60) + '|');
//if TakeBreaks then
//Writeln('| ' + Padr('Breaks Taken : ' + ToStr(Players[CurrentPlayer].Integers[10]) + ' Break(s)', 58) + '|');
WriteLn('| ' + Padr('Logs Chopped : ' + ToStr(Log), 60) + '|');
WriteLn('| ' + Padr('Logs Per Hour : ' + ToStr(LogsH), 60) + '|');
WriteLn('| ' + Padr('Experience Gained : ' + ToStr(Exp), 60) + '|');
WriteLn('| ' + Padr('Experience Per Hour : ' + ToStr(ExpH), 60) + '|');
//WriteLn('| ' + Padr('Smithing Level : ' + ToStr(Players[CurrentPlayer].Integers[11]) + '(+' + ToStr(Players[CurrentPlayer].Integers[9]) +')', 60) + '|');
WriteLn('| |');
WriteLn('*----------------------------------------------------------------*');
Writeln('[/Report]');
MarkTime(ReportTimer);
end;
PrintOnSMART(Final);
if Final then
Writeln('[/Report]');
end;

Function BankOpen: boolean;

begin
Result := BankScreen or PinScreen;
end;

Function OpenEdgeBankNPC: boolean;

var
Banker: MyColor;
DCTS: Integer; //Defaults
Bankers: T2DPointArray;
Colors: TPointArray;
MousePoint: TPoint;
x, y, I: Integer;

begin
Result := False;

DCTS := GetColorToleranceSpeed;
Banker := LoadObject(OBJ_Banker);

try
ColorToleranceSpeed(Banker.CTS);
SetColorspeed2Modifiers(Banker.Hue, Banker.Sat);

if FindColorsSpiralTolerance(x, y, Colors, Banker.Color, MSX1, MSY1, MSX2, MSY2, Banker.Tol) then
begin
Bankers := TPAToATPA(Colors, 25);

SMART_ClearMS;
RemoveATPAByAccuracy(Bankers, Banker.Accuracy, clLime);

SortATPAFrom(Bankers,Point(MSCX,MSCY));
SortATPAFromFirstPoint(Bankers,Point(MSCX,MSCY));

for I := 0 to High(Bankers) do
begin
MousePoint := Bankers[I][Random(High(Bankers[I]))];
MMouse(MousePoint.x,MousePoint.y,0,0);
if WaitUpTextMulti(['anke','anker','nker'], 500) then
begin
ClickMouse2(False);
if WaitOptionMulti(Banker.Uptexts, 600) then
Result := WaitFunc(@BankOpen,50,4000);
end;
if Result then
Break;
end;
end;

SMART_ClearMS;
finally
ColorToleranceSpeed(DCTS);
SetColorspeed2Modifiers(DHue, DSat);
end;
end;

Function BankIt: boolean;

var
FailSafe: Integer;

begin
Result := False;
if not IsLoggedIn then
Exit;

Report(False);
for FailSafe := 0 to 4 do
if OpenEdgeBankNPC then
break;
if (FailSafe <= 4) then
begin
FailSafe := 0;
if PinScreen then
repeat
Inc(FailSafe);
InPin(Players[CurrentPlayer].Pin);
until WaitFunc(@BankScreen, 100, 1000) or (FailSafe >= 4);
if (FailSafe < 4) then
begin
FailSafe := 0;
repeat
Report(False);
Inc(FailSafe);
if MyPlayers[CurrentPlayer].AxeWielded then
Result := DepositAll
else
begin
Deposit(2,28,True);
Result := (InvCount = 1);
end;
until Result or (Failsafe >= 4);
if not Result then
DebugIt('Unable To DepositAll Items In The Inventory.');
end else
DebugIt('Unable To Open The Bank.');
end else
DebugIt('Unable To Open The Bank.');
DebugIt('BankIt: ' + ToStr(Result));
end;

function InTreeArea(out SPoints: TPointArray): boolean;

var
Check: Integer;

begin
AntiRandoms;

Check := 0;
repeat
Inc(Check);
FindSymbols(SPoints,'tree');
Result := (Length(SPoints) = 2);
until Result or (Check > 10);

DebugIt('InTreeArea: ' + ToStr(Result));
end;

function AtNorthTree(P: TPointArray): boolean;

begin
AntiRandoms;

Result := ((Distance(MMCX,MMCY,P[0].x,P[0].y) < Distance(MMCX,MMCY,P[1].x,P[1].y)) xor (P[0].x < P[1].x));
end;

Function GetTreePoint(North: Boolean; SPoints: TPointArray): TPoint;

begin
if not (North xor (SPoints[0].x < SPoints[1].x)) then
tSwap(SPoints[0], SPoints[1]);

SPoints := MidPoints(SPoints,9);

SMART_ClearCanvasArea(IntToBox(MMX1,MMY1,MMX2,MMY2));
SMART_DrawDotsEx(False, SPoints, clRed);
DrawPoint(False,SPoints[1],6);

Result := SPoints[1];
end;

Function Null_Point: TPoint;

begin
Result := Point(-1, -1);
end;

Function FindWalkPoint(Location: string): TPoint;

var
P: TPointArray;
Pt, NewPt, Offset: TPoint;
RotateRad: Extended;

begin
Result := Null_Point;
if not (IsLoggedIn and InTreeArea(P)) then
Exit;

case lowercase(Location) of
'bank': Offset := Point(35, -64);
'middle': Offset := Point(31, -20);
end;

if P[0].x < P[1].x then
tSwap(P[0],P[1]);
Pt := MiddleTPA(P);

RotateRad := Arctan2(P[0].x - Pt.x, Pt.y - P[0].y);
DebugIt('Degrees = ' + tostr(Degrees(RotateRad)));

NewPt := Point(Pt.x + Offset.x, Pt.y + Offset.y);
NewPt := RotatePoint(NewPt, RotateRad, Pt.x, Pt.y);

if rs_OnMiniMap(NewPt.x, NewPt.y) then
Result := NewPt;
end;

Function AngleWalkTo(Where: string; Rand, Dist: Integer): boolean;

var
WalkPt: TPoint;
FailSafe: Integer;

begin
WalkPt := FindWalkPoint(Where);
if (WalkPt = Null_Point) then
Exit;

DrawPoint(False, WalkPt, 10);

Result := Distance(MMCX, MMCY, WalkPt.x, WalkPt.y) < Dist;
if not Result then
begin
Mouse(WalkPt.x, WalkPt.y, Rand, Rand, mouse_Left);

Report(False);

if WaitFunc(@IsMoving, 1, 3000 + random(500)) then
begin
MarkTime(FailSafe);
while (TimeFromMark(FailSafe) < 30000) do
begin
WalkPt := FindWalkPoint(Where);
DrawPoint(True, WalkPt, 10);
if (Distance(MMCX, MMCY, WalkPt.x, WalkPt.y) < Dist) or (WalkPt = Null_Point) then
Break;
Wait(RandomRange(33,55));
Report(False);
end;
end;

DebugIt(ToStr(TimeFromMark(FailSafe)));

Result := (TimeFromMark(FailSafe) < 30000) and (WalkPt <> Null_Point);
end;
DebugIt('AngleWalkTo(' + ToStr(Where) + ', ' + ToStr(Rand) + ', ' + ToStr(Dist) + '): ' + ToStr(Result));
end;

Function InBankBox(X, Y: Integer): Boolean;

var
BankBox: TBox;

begin
BankBox := IntToBox(x - 12, y - 10, x + 16, y + 10);
Result := PointInBox(Point(MMCX, MMCY), BankBox);
if Result then
SMART_DrawBoxEx(False, False, BankBox, clRed);

DebugIt('InBankBox(' + ToStr(X) + ', ' + ToStr(Y) + '): ' + ToStr(Result));
end;

Function WalkTo(Location: string): boolean;

var
Attempt, FailSafe, X, Y: Integer;
SP: TPointArray;
WPoint: TPoint;

begin
if not IsLoggedIn then
Exit;

Attempt := 0;

repeat
SMART_ClearCanvasArea(IntToBox(MMX1, MMY1, MMX2, MMY2));
Report(False);
if not IsLoggedIn then
Exit;

Inc(Attempt);

RunEnergy(20);
Maintenance('W');
DebugIt('Walking To ' + ToStr(Location) + ' -- Attempt: ' + ToStr(Attempt));
case lowercase(Location) of
'bank':
begin
Result := ObjDTM_Find(ObjDTM_Bank, x, y, True) and InBankBox(x, y);

if (not Result) and ObjDTM_Find(ObjDTM_Bank, x, y, True) then
begin
DebugIt('Found ObjDTM_Bank');
if not InBankBox(x, y) then
ObjDTM_Walk(ObjDTM_Bank, 3, 50, 10, True);
end else if AngleWalkTo('Middle', 1, 12) and ObjDTM_Find(ObjDTM_Bank, x, y, True) then
ObjDTM_Walk(ObjDTM_Bank, 3, 50, 10, True);

Result := ObjDTM_Find(ObjDTM_Bank, x, y, True) and InBankBox(x, y);
end;

'trees': Result := InTreeArea(SP) or (ObjDTM_Walk(ObjDTM_Middle, 3, 50, 10, True) and InTreeArea(SP));

'north', 'south':
begin
Report(False);

if InTreeArea(SP) then
begin
WPoint := GetTreePoint(lowercase(location) = 'north',SP);

Result := Distance(MMCX,MMCY,WPoint.x,WPoint.y) < 16;
if not Result then
begin
Mouse(WPoint.x,WPoint.y+RandomRange(3,5),0,0,True);
Report(False);
if WaitFunc(@IsMoving, 1, 3000 + random(500)) then
begin
MarkTime(FailSafe);
while (TimeFromMark(FailSafe) < 30000) and IsLoggedIn and InTreeArea(SP) do
begin
WPoint := GetTreePoint(lowercase(location) = 'north',SP);
if (Distance(MMCX,MMCY,WPoint.x,WPoint.y) < 16) then
Break;
Wait(RandomRange(33,55));
Report(False);
end;
end;

DebugIt(ToStr(TimeFromMark(FailSafe)));

Result := (TimeFromMark(FailSafe) < 30000) and InTreeArea(SP);
end;
end else
Result := False;
end;
end;
until Result or (Attempt >= MaxWalks) or (not IsLoggedIn);

stats_IncVariable('Times Walked', 1);
DebugIt('WalkTo(' + ToStr(Location) + '): ' + ToStr(Result));
end;

Procedure DoStats(var Count: Integer);

var
NewCount: Integer;

begin
if (not IsLoggedIn) or (Count = InvCount) then
Exit;

NewCount := InvCount;
IncEx(MyPlayers[CurrentPlayer].Logs, (NewCount - Count));
stats_IncVariable('Yew Logs Chopped', (NewCount - Count));
stats_IncVariable('Woodcutting EXP (Gained)', ((NewCount - Count) * YewLogExp));
stats_IncVariable('Total EXP Gained', ((NewCount - Count) * YewLogExp));
Count := NewCount;
end;

Function FindAYew(out TreeBox: TBox): boolean;

var
Colors: TPointArray;
Tree: MyColor;
DCTS: Integer;

begin
if not IsLoggedIn then
Exit;

DCTS := GetColorToleranceSpeed;
Tree := LoadObject(OBJ_TreeLeaves);

try
ColorToleranceSpeed(Tree.CTS);

Result := FindColorsTolerance(Colors, Tree.Color, MSX1, MSY1, MSX2, MSY2, Tree.Tol)
and (Length(Colors) >= Tree.Accuracy);
TreeBox := GetTPABounds(Colors);

DebugIt('Length Of Colors Is: ' + tostr(length(Colors)));
finally
ColorToleranceSpeed(DCTS);
DebugIt('FindAYew: ' + ToStr(Result));
end;
end;

Function CutAYew(TreeBox: TBox): boolean;

var
MousePoint: TPoint;
Colors: TPointArray;
DCTS: Integer; //Default CTS
Tree: MyColor;

begin
if not IsLoggedIn then
Exit;

DebugIt('Function CutAYew.');

DCTS := GetColorToleranceSpeed;
Tree := LoadObject(OBJ_TreeTrunk);

try
ColorToleranceSpeed(Tree.CTS);

if FindColorsTolerance(Colors, Tree.Color, TreeBox.X1, TreeBox.Y1, TreeBox.X2, TreeBox.Y2, Tree.Tol) then
begin
SMART_ClearMS;
SMART_DrawDotsEx(False, Colors, clRed);

DebugIt('Length Of Colors Is: ' + tostr(length(Colors)));

//MousePoint := Colors[Random(High(Colors))];
MousePoint := MiddleTPA(Colors);
MMouse(MousePoint.x,MousePoint.y-10,5,5);
if WaitUpTextMulti(Tree.Uptexts, 500) then
ClickMouse2(true);

Result := DidRedClick;
end else
DebugIt('Unable To Find Tree Trunk Colors.');

finally
SetColorToleranceSpeed(DCTS);
DebugIt('CutAYew: ' + ToStr(Result));
end;
end;

Function ChopDownYew(out TreeGone: boolean): boolean;

var
Bounds: TBox;
TreeTime, Counter, I, Count: Integer;

begin
Report(False);
if (not IsLoggedIn) or InvFull then
Exit;

TreeGone := False;

Count := InvCount;
for I := 0 to MaxRetry do
begin
DebugIt('Retry: ' + ToStr(I));
if IsLoggedIn and (not InvFull) and FindAYew(Bounds) then
begin
DebugIt(ToStr(I));
Maintenance('W');

DebugIt('Found A Yew Tree.');
if CutAYew(Bounds) then
begin
Report(False);
DebugIt('Successfully Began To Chop Down Yew.');

MarkTime(TreeTime);
Counter := 0;

while IsLoggedIn and (not InvFull) and (Counter < 3) and (TimeFromMark(TreeTime) < MaxIdle) do
begin
AntiBan;
if not FindAYew(Bounds) then
Inc(Counter);

//Stats
DoStats(Count);
Report(False);

Wait(RandomRange(50,66));
end;
DebugIt('Time: ' + ToStr(TimeFromMark(TreeTime)));
Result := IsLoggedIn and (InvFull or ((TimeFromMark(TreeTime) < MaxIdle) xor (Counter < 3)));
if Result then
TreeGone := (TimeFromMark(TreeTime) < MaxIdle) and (Counter >= 3);
SMART_ClearMS;

//Stats
DoStats(Count);
end;
end;
end;

//Stats
DoStats(Count);

DebugIt(ToStr(I));
DebugIt('ChopDownYew(' + tostr(TreeGone) + '): ' + ToStr(Result));
end;

Function WaitTree: boolean;

var
MainTimer: Integer;
Unused: TBox;
It: TPointArray;

begin
if (not IsLoggedIn) or InvFull or (not InTreeArea(It)) then
Exit;

if AtNorthTree(It) then
WalkTo('South')
else
WalkTo('North');

MarkTime(MainTimer);

while IsLoggedIn and (not FindAYew(Unused)) and (TimeFromMark(MainTimer) < MaxWait) do
begin
AntiBan;
Report(False);
Wait(RandomRange(100,133));
end;

Result := IsLoggedIn and (TimeFromMark(MainTimer) < MaxWait);
DebugIt('WaitTree: ' + ToStr(Result));
end;

Procedure FreeMe;

begin
Report(True);
Writeln('"Bye Guys" - Yago');
end;

Procedure MainLoop;

var
WaitAttempts: Integer;
Unused: TPointArray;
MoveOn: Boolean;

begin
repeat
if not IsLoggedIn then
LoginPlayer
else
PlayerStartTime := GetSystemTime;

if not PlayerStartUp then
begin
AssignStatus('Logout');
DebugIt('Aborting!');
Exit;
end;

WaitAttempts := 0;
MarkTime(ReportTimer);
MarkTime(PaintTimer);
while IsLoggedIn and (WaitAttempts <= MaxWaits) do
begin
Report(False);
if (lowercase(Event) <> 'logout') and InvFull then
AssignStatus('Banking');
Writeln('Status: ' + Event);
case lowercase(Event) of
'banking':
if WalkTo('Bank') and BankIt then
begin
stats_IncVariable('Times Banked', 1)
AssignStatus('Trees');
end else
AssignStatus('LogOut');

'trees':
begin
if not InTreeArea(Unused) then
if not WalkTo('Trees') then
AssignStatus('LogOut');

if WalkTo('South') then
AssignStatus('Chopping')
else
AssignStatus('LogOut');
end;

'chopping':
if (not ChopDownYew(MoveOn)) or MoveOn then
begin
AssignStatus('Waiting');
WaitAttempts := 0;
end;

'waiting':
if not WaitTree then
begin
Inc(WaitAttempts);
DebugIt('Wait Attempt: ' + ToStr(WaitAttempts));
end else
AssignStatus('Chopping');

'logout':
begin
if Debug_Script then
TakeScreen('TCE - Logout');
LogOut;
end;
end;
end;
NextPlayer(False);
until AllPlayersInactive;
end;

Begin
ClearDebug;

ScriptUpdate;
DownloadToFile('http://yagoscripts.netii.net/TCEProg.png',ThePath);

SRL_SixHourFix := True;
SMART_FixSpeed := True;

SetupSRL;
ObjDTM_Setup;
ObjDTM_Debug := Debug_Script;
SMART_ClearCanvas;

if (Stats_UserID = '') then
SetupSRLStats(919, 'YagoScripts', 'abcdefghij')
else
SetupSRLStats(919, Stats_UserID, Stats_Password);

DeclarePlayers;
SetPlayers;

Init;
AddOnTerminate('FreeMe');

MainLoop;
End.

Tomazino

2012-09-02 04:48:58

Guys, i try to run this script, but few seconds after logging into the server, it says bye guys and executes, anu thoughts about that?

Leonardo Da Vinci

2012-09-02 05:33:22

Did you try the fixed script above your post?

Tomazino

2012-09-02 05:58:23

yes, but now it turns off after three full inventories chopped, this happened two times

Leonardo Da Vinci

2012-09-02 06:19:46

From: Tomazino
yes, but now it turns off after three full inventories chopped, this happened two times


Hmmm… That's a bit odd.
I think it might have something to do with the speed of your computer… I had something similar going on with a different script.

Sorry though, I can't help you with that one.

Tomazino

2012-09-02 06:38:07

| Time Active : 40 min 0 sec |
| Logs Chopped : 81 |
| Logs Per Hour : 122 |
| Experience Gained : 14175 |
| Experience Per Hour : 21262 |
| |
*—————————————————————-*

"Bye Guys" - Yago
Successfully executed.
The following bitmaps were not freed: [4, 5]

heres what proggy says

Leonardo Da Vinci

2012-09-02 06:42:41

Have you filled in all the information correctly?
I don't really have any scripting experience, so I can't help you too much… But I'd suggest double checking the script and making sure that you have the actual settings of RuneScape set up correctly.

Perhaps if you could provide more of your proggy…

Tomazino

2012-09-02 07:29:18

i think i have solved this error by increasing maxwalks time to 40, thanks for your help anyway, btw great script, will post a proggy

Leonardo Da Vinci

2012-09-02 07:32:16

From: Tomazino
i think i have solved this error by increasing maxwalks time to 40, thanks for your help anyway, btw great script, will post a proggy


Brilliant news, buddy!
No worries, sorry I couldn't have been of a little more help.
Enjoy!

rsbottman

2012-09-20 15:13:59

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(278:134): Type mismatch at line 277
Compiling failed.

Just started getting this today , Any Ideas.

Other threads seem to be getting this as well, but I dont understand what I.m supposed to replace as line 277 here is just

MyPlayers.ExpH := 0;

Ashaman88

2012-09-20 15:27:46

From: rsbottman
[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(278:134): Type mismatch at line 277
Compiling failed.

Just started getting this today , Any Ideas.

Other threads seem to be getting this as well, but I dont understand what I.m supposed to replace as line 277 here is just

MyPlayers.ExpH := 0;


It's more like i think line 287 or so..look for the line that is almost exactly the same and replace it with what you have found

rexecule

2012-10-04 17:07:10

When i start the script it compiles and appears to run but nothing happens. Smart comes up and loads runescape but thats the end of it. If i log in and then start the script it appears to start working, it tries to type my username and password in but it wont work unless i log myself in and then it does nothing after that.

sdomce

2012-10-06 08:50:15

why i cant open that?

Yago

2012-10-09 13:53:29

I might update this script after Runescape rolls out its complete anti-botting system.

mikey mac

2012-10-10 01:14:50

I get this message when I try to start it:

"Invalid number of parameters at line 849
Compiling failed."

and this is what is on line 849:

SMART_DrawBoxEx(False, BankBox, clRed);

crezzur

2012-10-19 06:25:53

For some reason banking fails sometimes every time the script ended my character stand with a full load logs in bank

Scorched

2012-10-25 23:46:38

^ I am having the same problem here. The banking was working well until the most recent SRL update. I do not really understand how the function works so I am not sure how I might be able to fix it.

It seems like it's having trouble identifying the bank, because it doesn't make it all the way there before executing.

partyboyrawr

2012-10-26 17:53:45

Leonardo I got the error Invalid number of parameters at line 849
Compiling failed.
SMART_DrawBoxEx(False, False, BankBox, clRed);

Dw i got it to work after deleting that extra false.

deadmonkey62

2012-11-07 13:27:58

says this

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from 'C:\Users\Pattycakes\Downloads\TheCuttingEdge v0.6 (1).simba'

what do?

deadmonkey62

2012-11-07 13:46:48

actually i got he above to work but now it just sits there and doesnt log in

ryleym

2012-11-07 20:26:06

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from 'C:\Users\Home\Desktop\TheCuttingEdge v0.6.simba
:/ Thats what mine says..

Ashaman88

2012-11-07 21:04:05

From: ryleym
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from 'C:\Users\Home\Desktop\TheCuttingEdge v0.6.simba
:/ Thats what mine says..


Try reading through the thread first :)

http://villavu.com/forum/showthread.php?p=847813

chipmonkid1

2012-11-10 09:08:30

mine always pops up with
|&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;|
|====================================|
*—————————————————————-*
| The Cutting Edge 0.6 |
| By: Yago |
|—————————————————————-|
| Overall Progress Report |
| |
| Total Players : 1 |
| Total Time Running : 1 min 18 sec |
| Total Logs Chopped : 0 |
| Total Experience Gained : 0 |
| |
|—————————————————————-|
| Individual Report: |
| |
| Player[0]: chipmonkid1 |
| |
| Time Active : 7 sec |
| Logs Chopped : 0 |
| Logs Per Hour : 0 |
| Experience Gained : 0 |
| Experience Per Hour : 0 |
| |
*—————————————————————-*

"Bye Guys" - Yago

schnubbel15

2012-11-28 17:47:24

^ same like guy above

sydd131

2012-11-28 19:01:42

hmm? is it not chopping logs?? i got it to chop, in its own kinda way.. it was a little slow, and would sometimes stand in front of a stump, yet point the screen directly at a complete yew, and wait for the stump instead.. -.- lol.. the other problem i occurred was it not banking for me i believe. as far as i recall i couldn't get it to bank at all. i may or may not have had to take a few lines out to get it to work at all as well.

to the two people posted above, i found when i started in bank it wouldn't work im pretty sure, where as if i started at the yews it ran (as far as i recall) until banking anyway.

slackeru

2012-12-07 10:02:23

The script stops after checking equipment tab.