SRL Archive - RS3 Outdated / Broken Scripts

Shantay W100 Bonfire


CephaXz

2012-05-14 07:29:50

I made a new thread, so I can update the first post everytime I want to, for uploading new versions and updating instructions.

Instructions:
1. Setup the script, fill the slot of your logs in bank. And account information.
2. Start near Shantay bank chest.
3. I'm not sure if I'm still using functions that relies on chat, but make sure all chats are on and is at All chat.
4. Start and wait for bugs, and report :D
5. Post proggies.

Features:
-Uses left clicking option to find nearby fire.
-Accurate bank chest finding.
-Terminate script when you're out of logs.
-Will only deposit if there is items in your inventory, then withdraw logs.
-Bank pin support
-Checks if it is still doing firemaking, fire burns out after some time and it will stop character from continuing firemaking. If there are still logs in inventory, it will continue add logs.
-Failsafe if it can't find nearby fire, will go banking and continue finding (I believe w100 always have a fire, so I'm not terminating the script).
-Find fire spirit and collect rewards, working good for me. Not sure for others as fire spirit color changes very often.
-Numbers of rewards collected from fire spirit in progress report.
-Walks to bank if it can't find the bank chest at shantay now


Found something very interesting, credits to sinking who posted this picture.


Keep the bugs coming.
Hope this script helped out people in this community :sasmokin:


Proggies:

From: Bennyp12
#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 806
Logs Done : 1764
Fire Spirit : 15
EXP Gained : 303689
EXP / Hour : 138794
Running for : 2 Hours, 11 Minutes and 16 Seconds
——————————————————-


From: blinkblink
Here is hour:
I am doing maples, since I am wearing the fire ring I avg 172 - 173xp per log burned, so 903 x 172xp = 155,316xp per hour :)

Anyways just stopped it, I will now run my testing of adding the randoms events thing… will report back if it works or not

Also we need to add support for clicking the received squeal of fortune / spin tickets… will look around other scripts to see what they added to make it work.


From: Kimber1911
#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 893
Logs Done : 1120
Fire Spirit : 14
Running for : 1 Hours, 15 Minutes and 11 Seconds


Not to bad :D.. Had a few other 1+ hour runs, went from 15 fm to 60 tonight! Great script.


Changelogs:
From: Er1k
As said I was working on your bonfire maker in shantay and I have got some pretty good results so far. I haven't really finished it to the point of being bulletproof, but I think the flow is slightly better.

Here's what I have done
- Redo mainloop
- Used ODTM instead of SPS to relocate
- Changed fire spirit colors, now using uptext and waitOption
- Using the logs count decrease to detect whether firemaking
- Cleaned up some code, rewrote bank function/ chest finding
- Now logs out if there is less than 29 logs in order to keep inventory placeholder, however only works on slot1 now
- Logs out if unexpected failures occur. ie. Teleported to a random place after failing random/ random not detecting at all

I can think of a few things to improve on, like finding fires on mainscreen if legits are screwing up the place/ making its own fire, but I think it's too much hassle to do right now and I guess it's perhaps better I get some suggestions before working on it.

I have been rather lucky today while I am at the computer, as it didn't fail any enabled randoms at all, so I can't tell if the ODTM adjustments are really working. It did logout as failsafe when it met a random which SRL failed to detect though. I don't know if it's just me, but apparently randoms do not detect very well in the area and I have been getting misdetects/ not detecting at all.




v5u1
-Added EXP gained and EXP per hour in progress report. (Requested by Imanoobbot)

v5
-Better failsafe if its not firemaking while still having logs in inventory now.
-Walk to bank chest if the bank chest is off screen. Trolls trying to plant flowers and fire are made further away from bank chest. And now I beat them :p
-Better random detections.
-Can start the script even if its on bank screen now.

v4u1
-Fixed a bug caused by new antiban
-Fixed pin support?

v4
-Improved bank and fire spirit searching by a little.
-Added a few failsafes
-Added new antiban
-Changed waiting time
-Pin support, not sure if it works. Actually forgot to include it in the previous version.

v3
-Failsafe for log-adding, banking if it fails for 5 times.
-Reworked fire spirit detection.
-Pin support. (Someone confirm this)
-Rewards collected added in progress report.


Special Thanks to:
-ajmehta21
-Imanoobbot


They provided me accounts to make this script.

Benny

2012-05-14 07:45:03

wahey gonna be using this thanks :D

Xert

2012-05-14 07:48:07

thanks ceph. running it now, ill post if any bugs occur

Imanoobbot

2012-05-14 08:47:42

Great to see there is v3 now! :)

*Edit

This color is finding the Bank Chest with more accuracy "5859188" .

Moron

2012-05-14 08:56:54

nice



what happened to teh falador one lol

CephaXz

2012-05-14 09:09:02

From: Imanoobbot
Great to see there is v3 now! :)

*Edit

This color is finding the Bank Chest with more accuracy "5859188" .


I'll add it as failsafe if many people are failing it, Thanks.

From: Moron
nice



what happened to teh falador one lol


Thanks. I removed it since many other people made working ones already.

Imanoobbot

2012-05-14 09:22:52

From: Moron
nice



what happened to teh falador one lol


This script is for using with the "cooperation" of the friends chat:W100 Bonfire. That is an friends chat which is for bonfires only. You are always gaining +4% exp per log because of that many people on 1 fire.

xxshabsxx

2012-05-14 09:32:17

I've started to run this now! It's working good, but I'm not going to run it overnight just to make sure that nothing bad isn't going to happen.

Will add a proggy tomorrow when I get up.

Ezio Auditore da Firenze

2012-05-14 09:40:01

So oblivious… good they are covering for us though :P.

mads4856

2012-05-14 10:31:39

Realy nice script thx alot :D, but will there be added breaks? or is there?

vmike

2012-05-14 10:39:44

how do i add the bank slot

Micimaos

2012-05-14 10:55:25

Fantastic, The best bonfire script so far,.. Thanks a lot :) going for 99 fire :)

05sti

2012-05-14 11:09:53

Script works but for me it seems to go to the bank before it runs out of logs it burns 6 to 12 logs and banks.

Thanks

Moron

2012-05-14 11:19:22

From: 05sti
Script works but for me it seems to go to the bank before it runs out of logs it burns 6 to 12 logs and banks.

Thanks


this happens to me sometimes. It also every now again cant find the logs in the bank and it keeps looking, usually for like 40 seconds!

CephaXz

2012-05-14 12:18:19

Trying to find whats causing that now. I got exam tomorrow :(



From: Moron
this happens to me sometimes. It also every now again cant find the logs in the bank and it keeps looking, usually for like 40 seconds!


From: 05sti
Script works but for me it seems to go to the bank before it runs out of logs it burns 6 to 12 logs and banks.

Thanks


May I know what logs are you burning?

Moron

2012-05-14 12:31:31

From: CephaXz
Trying to find whats causing that now. I got exam tomorrow :(







May I know what logs are you burning?


Yew

Imanoobbot

2012-05-14 12:43:13

From: Moron
Yew


With maples it is working quite flawless so 1-2h runtime is no problem ;)

05sti

2012-05-14 12:53:44

I am using maples.

CephaXz

2012-05-14 13:00:46

From: Moron
this happens to me sometimes. It also every now again cant find the logs in the bank and it keeps looking, usually for like 40 seconds!


From: 05sti
Script works but for me it seems to go to the bank before it runs out of logs it burns 6 to 12 logs and banks.

Thanks


From: 05sti
I am using maples.


How long does it take to burn 28 logs average?

EDIT: Probably because there is no fire in range for more than 10 seconds, so it will exit the waiting procedure and go banking. If thats not the cause, then my DTM fail? It never failed for me yet, but I'm using only willows to test. So far so good. Will update within few minutes.

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 758
Logs Done : 224
Fire Spirit : 4
Running for : 17 Minutes and 42 Seconds
——————————————————-

lostprophetsown

2012-05-14 13:09:02

hmmm, keeps manually adding one log to the fire, stopping, adding another, stopping, adding another, stopping, then banking. Not sure why, its not graphic settings or anything either :P

CephaXz

2012-05-14 13:10:47

From: lostprophetsown
hmmm, keeps manually adding one log to the fire, stopping, adding another, stopping, adding another, stopping, then banking. Not sure why, its not graphic settings or anything either :P


What does it says in the debug box? You must had did something wrong.

vmike

2012-05-14 13:24:40

In what slot do i put the logs. It just says Out of logs and logs out.

CephaXz

2012-05-14 13:26:54

From: vmike
In what slot do i put the logs. It just says Out of logs and logs out.


Read the instruction.

vmike

2012-05-14 13:29:04

From: CephaXz
Read the instruction.


It really doesn't give that clear of directions it just says "1. Setup the script, fill the slot of your logs in bank. " How do i figure out the slots.Lets say its the first thing in my bank the first item are logs. What would the slot be?

blinkblink

2012-05-14 13:30:30

From: vmike
It really doesn't give that clear of directions it just says "1. Setup the script, fill the slot of your logs in bank. " How do i figure out the slots.Lets say its the first thing in my bank the first item are logs. What would the slot be?


In the code it says it in the very top

"{Which slot in bank is your log is?}
LOGS_BANKSLOT = 1;"

CephaXz

2012-05-14 13:31:14

From: vmike
It really doesn't give that clear of directions it just says "1. Setup the script, fill the slot of your logs in bank. " How do i figure out the slots.Lets say its the first thing in my bank the first item are logs. What would the slot be?


If its the first item in the bank, its obviously the first slot. Count from left to right, row by row.

CephaXz

2012-05-14 13:37:29

Not meant to double post, but new problem here. Need to implement walking now, as the bank chest is off the screen sometimes.



blinkblink

2012-05-14 13:44:46

LOL Those trolls won't ever stop bothering the FC locations
I guess you should support every *Chest banking in the game now period

Oh and entering Pin doesn't work

CephaXz

2012-05-14 13:50:42

From: blinkblink
LOL Those trolls won't ever stop bothering the FC locations
I guess you should support every *Chest banking in the game now period

Oh and entering Pin doesn't work


Download the new one and try again. I think I know where I did wrong. And some changes because of the new antiban.

blinkblink

2012-05-14 13:55:47

From: CephaXz
Download the new one and try again. I think I know where I did wrong. And some changes because of the new antiban.


Yup the new one fixed the Pin support :)

We need to make something new to support better the Fire Spirit, it missed 2 of them for me in a row

CephaXz

2012-05-14 14:00:34

If everyone could get and post 5 different colors of the spirit everytime they get one, then it might speed up process. I don't get spirit that often :\

blinkblink

2012-05-14 14:03:11

From: CephaXz
If everyone could get and post 5 different colors of the spirit everytime they get one, then it might speed up process. I don't get spirit that often :\


Well it did take one 1 right now :P

On the next one if it doesn't detect it I will take all the colors that I can from him

*EDIT*

WTF I just leveled up.. after opening the bank it got stuck there & it killed the script

b_lone

2012-05-14 14:05:26

The picture is so cute. I gotta try sometime. :P

CephaXz

2012-05-14 14:06:25

I'm off to study now. Its 2.05AM, gotta study until exam later at 12.30PM.

Hope people appreciate my hard work here lol.

blinkblink

2012-05-14 14:12:40

From: CephaXz
I'm off to study now. Its 2.05AM, gotta study until exam later at 12.30PM.

Hope people appreciate my hard work here lol.


read my edited previous post… it got stuck

Ezio Auditore da Firenze

2012-05-14 14:14:35

From: CephaXz
If everyone could get and post 5 different colors of the spirit everytime they get one, then it might speed up process. I don't get spirit that often :\


Your wish is my command here you go:

<Tree>
<Item0>
<Data>
<Name>5009323</Name>
<Colour>5009323</Colour>
<CoordX>270</CoordX>
<CoordY>160</CoordY>
</Data>
</Item0>
<Item1>
<Data>
<Name>4547996</Name>
<Colour>4547996</Colour>
<CoordX>275</CoordX>
<CoordY>159</CoordY>
</Data>
</Item1>
<Item2>
<Data>
<Name>5672363</Name>
<Colour>5672363</Colour>
<CoordX>284</CoordX>
<CoordY>164</CoordY>
</Data>
</Item2>
<Item3>
<Data>
<Name>5141168</Name>
<Colour>5141168</Colour>
<CoordX>272</CoordX>
<CoordY>160</CoordY>
</Data>
</Item3>
<Item4>
<Data>
<Name>4416150</Name>
<Colour>4416150</Colour>
<CoordX>270</CoordX>
<CoordY>154</CoordY>
</Data>
</Item4>
<Item5>
<Data>
<Name>5009323</Name>
<Colour>5009323</Colour>
<CoordX>270</CoordX>
<CoordY>162</CoordY>
</Data>
</Item5>
<Item6>
<Data>
<Name>3691135</Name>
<Colour>3691135</Colour>
<CoordX>278</CoordX>
<CoordY>158</CoordY>
</Data>
</Item6>
<Item7>
<Data>
<Name>3097963</Name>
<Colour>3097963</Colour>
<CoordX>276</CoordX>
<CoordY>159</CoordY>
</Data>
</Item7>
<Item8>
<Data>
<Name>5673909</Name>
<Colour>5673909</Colour>
<CoordX>281</CoordX>
<CoordY>164</CoordY>
</Data>
</Item8>
<Item9>
<Data>
<Name>3822979</Name>
<Colour>3822979</Colour>
<CoordX>277</CoordX>
<CoordY>154</CoordY>
</Data>
</Item9>
<Item10>
<Data>
<Name>5207219</Name>
<Colour>5207219</Colour>
<CoordX>267</CoordX>
<CoordY>161</CoordY>
</Data>
</Item10>
<Item11>
<Data>
<Name>4547996</Name>
<Colour>4547996</Colour>
<CoordX>273</CoordX>
<CoordY>157</CoordY>
</Data>
</Item11>
<Item12>
<Data>
<Name>5738929</Name>
<Colour>5738929</Colour>
<CoordX>280</CoordX>
<CoordY>155</CoordY>
</Data>
</Item12>
<Item13>
<Data>
<Name>4547996</Name>
<Colour>4547996</Colour>
<CoordX>272</CoordX>
<CoordY>160</CoordY>
</Data>
</Item13>
<Item14>
<Data>
<Name>5805495</Name>
<Colour>5805495</Colour>
<CoordX>263</CoordX>
<CoordY>160</CoordY>
</Data>
</Item14>
<Item15>
<Data>
<Name>3359859</Name>
<Colour>3359859</Colour>
<CoordX>320</CoordX>
<CoordY>183</CoordY>
</Data>
</Item15>
<Item16>
<Data>
<Name>5607344</Name>
<Colour>5607344</Colour>
<CoordX>325</CoordX>
<CoordY>193</CoordY>
</Data>
</Item16>
<Item17>
<Data>
<Name>2108232</Name>
<Colour>2108232</Colour>
<CoordX>323</CoordX>
<CoordY>187</CoordY>
</Data>
</Item17>
<Item18>
<Data>
<Name>4611743</Name>
<Colour>4611743</Colour>
<CoordX>270</CoordX>
<CoordY>235</CoordY>
</Data>
</Item18>
<Item19>
<Data>
<Name>3953032</Name>
<Colour>3953032</Colour>
<CoordX>270</CoordX>
<CoordY>233</CoordY>
</Data>
</Item19>
<Item20>
<Data>
<Name>4545692</Name>
<Colour>4545692</Colour>
<CoordX>270</CoordX>
<CoordY>238</CoordY>
</Data>
</Item20>
<Item21>
<Data>
<Name>4282259</Name>
<Colour>4282259</Colour>
<CoordX>273</CoordX>
<CoordY>238</CoordY>
</Data>
</Item21>
<Item22>
<Data>
<Name>5540263</Name>
<Colour>5540263</Colour>
<CoordX>274</CoordX>
<CoordY>229</CoordY>
</Data>
</Item22>
<Item23>
<Data>
<Name>4940969</Name>
<Colour>4940969</Colour>
<CoordX>267</CoordX>
<CoordY>239</CoordY>
</Data>
</Item23>
<Item24>
<Data>
<Name>4743331</Name>
<Colour>4743331</Colour>
<CoordX>270</CoordX>
<CoordY>236</CoordY>
</Data>
</Item24>
<Item25>
<Data>
<Name>4875176</Name>
<Colour>4875176</Colour>
<CoordX>267</CoordX>
<CoordY>237</CoordY>
</Data>
</Item25>
<Item26>
<Data>
<Name>4940969</Name>
<Colour>4940969</Colour>
<CoordX>267</CoordX>
<CoordY>239</CoordY>
</Data>
</Item26>
<Item27>
<Data>
<Name>4282259</Name>
<Colour>4282259</Colour>
<CoordX>269</CoordX>
<CoordY>234</CoordY>
</Data>
</Item27>
<Item28>
<Data>
<Name>3294065</Name>
<Colour>3294065</Colour>
<CoordX>277</CoordX>
<CoordY>239</CoordY>
</Data>
</Item28>
<Item29>
<Data>
<Name>3358023</Name>
<Colour>3358023</Colour>
<CoordX>593</CoordX>
<CoordY>310</CoordY>
</Data>
</Item29>
</Tree>

#######################################################
Shantay Bank Chest Bonfire
w100 bonfire v4u1
#######################################################
Logs / Hour : 856
Logs Done : 868
Fire Spirit : 1
Running for : 1 Hours, 46 Seconds
----------------------------------------

Imanoobbot

2012-05-14 14:36:50

From: vmike
It really doesn't give that clear of directions it just says "1. Setup the script, fill the slot of your logs in bank. " How do i figure out the slots.Lets say its the first thing in my bank the first item are logs. What would the slot be?


That means your logs have to be in the first bankslot of the tab you are using. So you must have them on the upper left corner, the first thing in bank should be your logs.

ii daveeee x

2012-05-14 14:44:17

this script doesnt work for me it banks fine and adds to bonfire but wont make the first fire to add to ?

Moron

2012-05-14 14:54:29

Amazing script!

blinkblink

2012-05-14 14:56:17

From: ii daveeee x
this script doesnt work for me it banks fine and adds to bonfire but wont make the first fire to add to ?


It doesn't lol
it only runs where there are fires already made near you… in other words World 100 Shantay Pass bank chest.. there is always a fire lit up

Maybe you got unlucky and tried at the moment there wasn't one lit up… simply run the script again

salbakuta

2012-05-14 15:18:21

for some reason i get logged out whenever a random event start

SeaBass

2012-05-14 15:20:56

Love the Script Mate will post flawless 6 hour proggy if I get around to it :P

Imanoobbot

2012-05-14 15:21:39

From: salbakuta
for some reason i get logged out whenever a random event start


No random solving support added.

Moron

2012-05-14 15:27:19

Why doesn't Cepha add it then?

Moron

2012-05-14 15:28:37

Btw, hoping to post a 1 hour proggy soon. (as long as i dont get any randoms)

lostprophetsown

2012-05-14 15:32:39

Right, I reset the script, all of a sudden its adding fires now, but once its added about 8 - 12, it'll bank and repeat the process. I haven't entered anything wrong, as I only had to enter my login details, so I can't understand why this is.

blinkblink

2012-05-14 15:37:38

This is my assumption but I am not certain if it will work but I believe to fix supporting the random events, we need to add this:
    FindNormalRandoms;

In the coding, right after "repeat" from line 430
begin
SetupLogin;
SMART_ClearCanvas;
AddOnTerminate('EndDTM');
StartDTM;
repeat
FindNormalRandoms;
if not BankScreen then
begin
FindChest;
OpeningBank;
end;
BonBon;
if WaitingLogsFinish then
begin
IncEx(Players[CurrentPlayer].Integers[3], 28);
end;
PlayerStats;
until not LoggedIn;
end.

I am probably wrong but wte, someone needs to test this.. I just read a few scripts and they had it near the end of the coding after repeat

Imanoobbot

2012-05-14 15:38:32

From: Moron
Why doesn't Cepha add it then?


Dude, this script got created from the beginning to where it is now in the last 24 hours, you should not expect that it has to be perfect yet.

Moron

2012-05-14 15:41:48

From: Imanoobbot
Dude, this script got created from the beginning to where it is now in the last 24 hours, you should not expect that it has to be perfect yet.


Yeah I understand, but it takes like 5 mins :p

I would do it myself, but i'm not exactly sure where the random commands go in the functions.

CephaXz

2012-05-14 16:14:48

From: blinkblink
read my edited previous post… it got stuck


Probably because of the level up thing, it covered the bank screen and caused the script to not find bank screen.

From: Jonno
Your wish is my command here you go:

<Tree>
<Item0>
<Data>
<Name>5009323</Name>
<Colour>5009323</Colour>
<CoordX>270</CoordX>
<CoordY>160</CoordY>
</Data>
</Item0>
<Item1>
<Data>
<Name>4547996</Name>
<Colour>4547996</Colour>
<CoordX>275</CoordX>
<CoordY>159</CoordY>
</Data>
</Item1>
<Item2>
<Data>
<Name>5672363</Name>
<Colour>5672363</Colour>
<CoordX>284</CoordX>
<CoordY>164</CoordY>
</Data>
</Item2>
<Item3>
<Data>
<Name>5141168</Name>
<Colour>5141168</Colour>
<CoordX>272</CoordX>
<CoordY>160</CoordY>
</Data>
</Item3>
<Item4>
<Data>
<Name>4416150</Name>
<Colour>4416150</Colour>
<CoordX>270</CoordX>
<CoordY>154</CoordY>
</Data>
</Item4>
<Item5>
<Data>
<Name>5009323</Name>
<Colour>5009323</Colour>
<CoordX>270</CoordX>
<CoordY>162</CoordY>
</Data>
</Item5>
<Item6>
<Data>
<Name>3691135</Name>
<Colour>3691135</Colour>
<CoordX>278</CoordX>
<CoordY>158</CoordY>
</Data>
</Item6>
<Item7>
<Data>
<Name>3097963</Name>
<Colour>3097963</Colour>
<CoordX>276</CoordX>
<CoordY>159</CoordY>
</Data>
</Item7>
<Item8>
<Data>
<Name>5673909</Name>
<Colour>5673909</Colour>
<CoordX>281</CoordX>
<CoordY>164</CoordY>
</Data>
</Item8>
<Item9>
<Data>
<Name>3822979</Name>
<Colour>3822979</Colour>
<CoordX>277</CoordX>
<CoordY>154</CoordY>
</Data>
</Item9>
<Item10>
<Data>
<Name>5207219</Name>
<Colour>5207219</Colour>
<CoordX>267</CoordX>
<CoordY>161</CoordY>
</Data>
</Item10>
<Item11>
<Data>
<Name>4547996</Name>
<Colour>4547996</Colour>
<CoordX>273</CoordX>
<CoordY>157</CoordY>
</Data>
</Item11>
<Item12>
<Data>
<Name>5738929</Name>
<Colour>5738929</Colour>
<CoordX>280</CoordX>
<CoordY>155</CoordY>
</Data>
</Item12>
<Item13>
<Data>
<Name>4547996</Name>
<Colour>4547996</Colour>
<CoordX>272</CoordX>
<CoordY>160</CoordY>
</Data>
</Item13>
<Item14>
<Data>
<Name>5805495</Name>
<Colour>5805495</Colour>
<CoordX>263</CoordX>
<CoordY>160</CoordY>
</Data>
</Item14>
<Item15>
<Data>
<Name>3359859</Name>
<Colour>3359859</Colour>
<CoordX>320</CoordX>
<CoordY>183</CoordY>
</Data>
</Item15>
<Item16>
<Data>
<Name>5607344</Name>
<Colour>5607344</Colour>
<CoordX>325</CoordX>
<CoordY>193</CoordY>
</Data>
</Item16>
<Item17>
<Data>
<Name>2108232</Name>
<Colour>2108232</Colour>
<CoordX>323</CoordX>
<CoordY>187</CoordY>
</Data>
</Item17>
<Item18>
<Data>
<Name>4611743</Name>
<Colour>4611743</Colour>
<CoordX>270</CoordX>
<CoordY>235</CoordY>
</Data>
</Item18>
<Item19>
<Data>
<Name>3953032</Name>
<Colour>3953032</Colour>
<CoordX>270</CoordX>
<CoordY>233</CoordY>
</Data>
</Item19>
<Item20>
<Data>
<Name>4545692</Name>
<Colour>4545692</Colour>
<CoordX>270</CoordX>
<CoordY>238</CoordY>
</Data>
</Item20>
<Item21>
<Data>
<Name>4282259</Name>
<Colour>4282259</Colour>
<CoordX>273</CoordX>
<CoordY>238</CoordY>
</Data>
</Item21>
<Item22>
<Data>
<Name>5540263</Name>
<Colour>5540263</Colour>
<CoordX>274</CoordX>
<CoordY>229</CoordY>
</Data>
</Item22>
<Item23>
<Data>
<Name>4940969</Name>
<Colour>4940969</Colour>
<CoordX>267</CoordX>
<CoordY>239</CoordY>
</Data>
</Item23>
<Item24>
<Data>
<Name>4743331</Name>
<Colour>4743331</Colour>
<CoordX>270</CoordX>
<CoordY>236</CoordY>
</Data>
</Item24>
<Item25>
<Data>
<Name>4875176</Name>
<Colour>4875176</Colour>
<CoordX>267</CoordX>
<CoordY>237</CoordY>
</Data>
</Item25>
<Item26>
<Data>
<Name>4940969</Name>
<Colour>4940969</Colour>
<CoordX>267</CoordX>
<CoordY>239</CoordY>
</Data>
</Item26>
<Item27>
<Data>
<Name>4282259</Name>
<Colour>4282259</Colour>
<CoordX>269</CoordX>
<CoordY>234</CoordY>
</Data>
</Item27>
<Item28>
<Data>
<Name>3294065</Name>
<Colour>3294065</Colour>
<CoordX>277</CoordX>
<CoordY>239</CoordY>
</Data>
</Item28>
<Item29>
<Data>
<Name>3358023</Name>
<Colour>3358023</Colour>
<CoordX>593</CoordX>
<CoordY>310</CoordY>
</Data>
</Item29>
</Tree>

#######################################################
Shantay Bank Chest Bonfire
w100 bonfire v4u1
#######################################################
Logs / Hour : 856
Logs Done : 868
Fire Spirit : 1
Running for : 1 Hours, 46 Seconds
----------------------------------------


Thanks, and I got your PM too :)


From: SeaBass
Love the Script Mate will post flawless 6 hour proggy if I get around to it :P


Thanks, will add to the first post when you have a good one :)


From: salbakuta
for some reason i get logged out whenever a random event start


From: Moron
Why doesn't Cepha add it then?


Script terminates if it couldn't find the bank screen for 5 seconds.
I will try to add it after my exam tomorrow, but expect some delay as I'm still studying now until my exam starts later, that means I have not sleep for more than 1 day. Human needs rest lol

From: lostprophetsown
Right, I reset the script, all of a sudden its adding fires now, but once its added about 8 - 12, it'll bank and repeat the process. I haven't entered anything wrong, as I only had to enter my login details, so I can't understand why this is.


Please post what logs you're using. Probably it couldn't detect the log accurately, as I only use willows to test the script.

Physic

2012-05-14 16:29:11

Ceph, use the proggies from my thread please. and can you use the pic at the top for a bot ( i tried for that) and add imanoobot's name. Also, does it have random event support?

blinkblink

2012-05-14 16:36:27

Here is hour:
I am doing maples, since I am wearing the fire ring I avg 172 - 173xp per log burned, so 903 x 172xp = 155,316xp per hour :)

Anyways just stopped it, I will now run my testing of adding the randoms events thing… will report back if it works or not

Also we need to add support for clicking the received squeal of fortune / spin tickets… will look around other scripts to see what they added to make it work.

Physic

2012-05-14 16:54:40

From: blinkblink
Here is hour:
I am doing maples, since I am wearing the fire ring I avg 172 - 173xp per log burned, so 903 x 172xp = 155,316xp per hour :)

Anyways just stopped it, I will now run my testing of adding the randoms events thing… will report back if it works or not

Also we need to add support for clicking the received squeal of fortune / spin tickets… will look around other scripts to see what they added to make it work.


great blink, i can also confirm that pin support is working flawlessly.
Only thing that needs work is random events support and squeal of fortune
orb needs work too. Great script Ceph. More testing just ask? ill try to get you a 3-4 hrs proggy

Micimaos

2012-05-14 17:14:16

Thanks man for this awesome script, can you please support Soul Wars chest, to prevent random events?
:spot:

justiceouest

2012-05-14 17:16:43

loll i just got my 99 fm 2 weeks ago thx for the time I lost :P

whzup

2012-05-14 17:26:28

the script doesn't finish all the logs only somethings. idk why

blinkblink

2012-05-14 17:31:28

From: Micimaos
Thanks man for this awesome script, can you please support Soul Wars chest, to prevent random events?
:spot:


I believe you cannot make fires in soulwars

Imanoobbot

2012-05-14 17:44:27

From: blinkblink
I believe you cannot make fires in soulwars


I just can repeat myself this script is for a friends chat called "w100 bonfire" and we have our main point at Shantay Chest.

Moron

2012-05-14 17:53:55

From: Imanoobbot
I just can repeat myself this script is for a friends chat called "w100 bonfire" and we have our main point at Shantay Chest.


"we"?

Physic

2012-05-14 18:30:25

I Think it does only some spirits per hour. Proggies show that it does about 5-10 an hour.
Yeah script is specially made for fc w100 bonfire

blinkblink

2012-05-14 18:58:53

SH&T! It looks liek the random events it is working, but teh stupdi simba random handler didn't knew how to exit the random, I tried helpingit but as soon as it returned… Simba was still trying to exit teh random…in other words I did not manage to see if the scritp continueed working after finishing the random event.

Anyways here is where I placed the random code thing(how I said the 1st time was wrong, but I was very close). This is my lines from 425 till 444
begin
SetupLogin;
SMART_ClearCanvas;
AddOnTerminate('EndDTM');
StartDTM;
repeat
if not BankScreen then
begin
FindNormalRandoms;
FindChest;
OpeningBank;
end;
BonBon;
if WaitingLogsFinish then
begin
IncEx(Players[CurrentPlayer].Integers[3], 28);
end;
PlayerStats;
until not LoggedIn;
end.


I had to wait about 3hrs to even test this… but the Simba Random Handler failed my testing lol At least it did execute the random event and did not stop the script :)
Will be babysitting again to see if I get another random to insure it is working this way.

Here is the console so you can see it did executed the random event - almost at the bottom you can noticed I tried helping the random to leave the portal, but it kept on loop keeping me stuck the random handler

*edit*
LOL at all my typos.. I can't see well my black keyboard :P

I forgot to mention something important about this line(what I added above)
FindNormalRandoms;
That also supports clicking the Squeal of Fortune/Spin tickets we get randomly on our inventories… So in other words with this we have everything supported so far now :)

Physic

2012-05-14 19:21:27

nice blink so im guessing ceph will be adding ur additions to script?

blinkblink

2012-05-14 19:25:59

From: ajmehta21
nice blink so im guessing ceph will be adding ur additions to script?


I need someone else testing that change since I just noticed only have left 473 logs :(

so yeah…. if you have tons of logs left still please test it

CephaXz

2012-05-14 19:28:48

Just came back for a look.


Procedure OpeningBank;
begin
if not LoggedIn then
TerminateScript;

if PinScreen then
begin
InPin(Players[CurrentPlayer].Pin);
end;

if WaitFunc(@BankScreen, 100, 5000) then
begin
if not InvEmpty then
begin
DepositAll;
end;
writeln('Withdrawing logs');
MouseBankSlot(LOGS_BANKSLOT, mouse_Right);
WaitOption('All', 3000);
CloseBank;
end;
FindNormalRandoms;
end;

and

Function FindChest :Boolean;
var
a, Tries: Integer;
TPA : TPointArray;
ATPA : T2DPointArray;
MP : TPoint;
tmpCTS : Integer;
begin
if(not(LoggedIn))then Exit;
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.07, 0.12);

if not FindColorsTolerance(TPA, 6451582, MSX1, MSY1, MSX2, MSY2, 7) then
begin
writeln('Cant find chest');
repeat
wait(1000);
Inc(Tries);
until (FindColorsTolerance(TPA, 6451582, MSX1, MSY1, MSX2, MSY2, 7)) or (Tries = 5);
end;

if (Tries = 5) then
begin
writeln('Cant find bank chest after 5 seconds');
writeln('TERMINATOR APPEARS');
writeln('Script terminated');
TerminateScript;
end;

SortTPAFrom(TPA, Point(MSCX, MSCY));
ATPA := TPAtoATPAEx(TPA, 25, 25);
SortATPAFromSize(ATPA, 1000, true);

for a := 0 to High(ATPA) do
begin
MP := MiddleTPA(ATPA[a]);
{$IFDEF SMART}
SMART_DrawDotsEx(false, ATPA[a], clYellow);
{$ENDIF}
MMouse(MP.X, MP.Y, 2, 2);
if WaitUptext('Open', 500) then
begin
writeln('Found Bank!');
ClickMouse2(mouse_Left);
if WaitFunc(@DidRedClick, 10, 3000) then
begin
writeln('Clicked bank chest');
if (WaitFunc(@BankScreen, 10, 5000)) or (WaitFunc(@PinScreen, 10, 5000)) then
begin
writeln('Bank opened');
Result := True;
{$IFDEF SMART}
SMART_ClearCanvas;
{$ENDIF}
Break;
end else
begin
writeln('Cant find bank screen');
FindNormalRandoms;
if not FindNormalRandoms then
TerminateScript;
end;
end;
end;
{$IFDEF SMART}
SMART_ClearCanvas;
{$ENDIF}
end;

ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
end;

I dont like adding things to the main loop :p
Hope that helps. And for other replies, I will reply when I'm home after my exam.
EDIT: Also, spin ticket detection is already added since v1. If you noticed, there's already quite a lot FindNormalRandoms in the script. The point I didn't add it after it can't find the bank screen is because the random handler always fail. It's better to logout after you get into the random, instead of staying there, doing a lot of mistakes, stuck inside.

blinkblink

2012-05-14 19:36:43

The full code already added the changes CephaXz just posted above

Shantay w100 bonfire v4u2.simba
program BurnBurnBurn;
{$i srl/srl/misc/smart.simba}
{$i srl/srl.simba}
{$i srl/srl/misc/paintsmart.simba}

var
x, y, Logs, CollectedRewards: Integer;


const
{Which slot in bank is your log is?}
LOGS_BANKSLOT = 1;



procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;
Players[0].Pin := '';
Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
end;// declare players



procedure SetupLogin;
begin
ClearDebug;
Smart_Server := 10;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
DeclarePlayers;

if not LoggedIn then
begin
repeat
LoginPlayerToLob;
until LobbyScreen;

OpenWorldScreen;
if not WorldScreen then
OpenWorldScreen;
if WorldScreen then
begin
writeln('picking world 100');
SelectWorld(100);
LogInPlayer;
end;
end;

repeat
wait(500);
until LoggedIn;

if LoggedIn then
begin
ClickNorth(SRL_ANGLE_HIGH);
ExitSquealOfFortune();
end;

if not IsXPBarOpen then
ToggleXPBar(True);
end;


Procedure StartDTM;
begin
Logs := DTMFromString('mwQAAAHic42RgYHBiYmCwZoLQ3kDsA8SBULYLVO4pUN0dIL4NxDeA+CEQPwPiN0D8Dog/ArGJngCQZMKL/zMQBoxEYDgAAI5rDB0=');
end;

Procedure EndDTM;
begin
FreeDTM(Logs);
end;


Function NotFindInvLogs: Boolean;
begin
Result := not FindDTM(Logs, x, y, MIX1, MIY1, MIX2, MIY2);
end;


Function FoundInvLogs: Boolean;
begin
if FindDTM(Logs, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
MMouse(x, y, 3, 3);
Result := True;
end;
end;


Procedure OpeningBank;
begin
if not LoggedIn then
TerminateScript;

if PinScreen then
begin
InPin(Players[CurrentPlayer].Pin);
end;

if WaitFunc(@BankScreen, 100, 5000) then
begin
if not InvEmpty then
begin
DepositAll;
end;
writeln('Withdrawing logs');
MouseBankSlot(LOGS_BANKSLOT, mouse_Right);
WaitOption('All', 3000);
CloseBank;
end;
FindNormalRandoms;
end;


Function RewardsCollected :Boolean;
begin
Result := IsChatBoxTextAnyLine('spirit', clBlack);
end;


Function FindSpirit :Boolean;
var
a: Integer;
TPA : TPointArray;
ATPA : T2DPointArray;
MP : TPoint;
tmpCTS : Integer;
begin
if(not(LoggedIn))then Exit;
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.52, 0.55);

if FindColorsTolerance(TPA, 4021133, 202, 129, 325, 230, 14) then
begin
if Length(TPA) < 350 then
begin
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end else
begin
writeln('OMG SPIRIT?');
end;
end;

SortTPAFrom(TPA, Point(MSCX, MSCY));
ATPA := TPAtoATPAEx(TPA, 20, 20);
SortATPAFromSize(ATPA, 1000, true);

for a := 0 to High(ATPA) do
begin
MP := MiddleTPA(ATPA[a]);
{$IFDEF SMART}
SMART_DrawDotsEx(false, ATPA[a], clYellow);
{$ENDIF}
Mouse(MP.X, MP.Y, 2, 2, mouse_Right);
if WaitOption('ollec', 3000) then
begin
WaitFunc(@RewardsCollected, 10, 3000);
writeln('Collect rewards');
writeln('Back to BonBon');
Result := True;
{$IFDEF SMART}
SMART_ClearCanvas;
{$ENDIF}
Break;
end;
{$IFDEF SMART}
SMART_ClearCanvas;
{$ENDIF}
end;

ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
end;



Function FindChest :Boolean;
var
a, Tries: Integer;
TPA : TPointArray;
ATPA : T2DPointArray;
MP : TPoint;
tmpCTS : Integer;
begin
if(not(LoggedIn))then Exit;
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.07, 0.12);

if not FindColorsTolerance(TPA, 6451582, MSX1, MSY1, MSX2, MSY2, 7) then
begin
writeln('Cant find chest');
repeat
wait(1000);
Inc(Tries);
until (FindColorsTolerance(TPA, 6451582, MSX1, MSY1, MSX2, MSY2, 7)) or (Tries = 5);
end;

if (Tries = 5) then
begin
writeln('Cant find bank chest after 5 seconds');
writeln('TERMINATOR APPEARS');
writeln('Script terminated');
TerminateScript;
end;

SortTPAFrom(TPA, Point(MSCX, MSCY));
ATPA := TPAtoATPAEx(TPA, 25, 25);
SortATPAFromSize(ATPA, 1000, true);

for a := 0 to High(ATPA) do
begin
MP := MiddleTPA(ATPA[a]);
{$IFDEF SMART}
SMART_DrawDotsEx(false, ATPA[a], clYellow);
{$ENDIF}
MMouse(MP.X, MP.Y, 2, 2);
if WaitUptext('Open', 500) then
begin
writeln('Found Bank!');
ClickMouse2(mouse_Left);
if WaitFunc(@DidRedClick, 10, 3000) then
begin
writeln('Clicked bank chest');
if (WaitFunc(@BankScreen, 10, 5000)) or (WaitFunc(@PinScreen, 10, 5000)) then
begin
writeln('Bank opened');
Result := True;
{$IFDEF SMART}
SMART_ClearCanvas;
{$ENDIF}
Break;
end else
begin
writeln('Cant find bank screen');
FindNormalRandoms;
if not FindNormalRandoms then
TerminateScript;
end;
end;
end;
{$IFDEF SMART}
SMART_ClearCanvas;
{$ENDIF}
end;

ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
end;



procedure AntiBan;
var r: Integer;
begin
if not LoggedIn then Exit;
r := (RandomRange(1, 14));
if (r = 4) then
begin
writeln('Doing antiban');
case Random(20) of
0:
begin
PickUpMouse;
end;
1:
begin
RandomRClick;
end;
2:
begin
HoverSkill('firemaking', false);
GameTab(tab_Inv);
end;
3:
PickUpMouse;
4:
MMouse(MIX1, MIY1, MIX2, MIY2);
5:
MMouse(MMX1, MMY1, MMX2, MMY2);
end;
end;
end;


function AddingScreen :Boolean;
begin
Result := CountColorTolerance(4543066, 17, 355, 484, 456, 2) > 2000;
end;



Procedure BonBon;
begin
if not LoggedIn then
TerminateScript;

if not GameTab(tab_Inv) then
GameTab(tab_Inv);

if WaitFunc(@FoundInvLogs, 10, 5000) then
begin
ClickMouse2(mouse_Left);
if WaitFunc(@AddingScreen, 10, 5000) then
begin
writeln('Found add to bonfire screen');
MouseBox(323, 411, 389, 448, mouse_Left);
writeln('BONBONBONBON-ing');
end;
end else
begin
writeln('Out of logs');
TerminateScript;
end;
end;


Function FindXPNumber :boolean;
begin
Result := CountColorTolerance(14474460, 375, 7, 421, 21, 10) > 30;
end;


Function WaitingLogsFinish :Boolean;
var
Time, ReBonBon: Integer;

begin
if not LoggedIn then
TerminateScript;

MarkTime(Time);
repeat
if not LoggedIn then
TerminateScript;

if FindNormalRandoms then
begin
writeln('Found random');
BonBon;
end;

AntiBan;

if FindSpirit then
begin
Inc(CollectedRewards);
BonBon;
end;

WaitFunc(@NotFindInvLogs, 100, 4000);

if not FindXPNumber then
begin
if NotFindInvLogs then
Break;

writeln('Cant find XP');
writeln('Redoing BonBon');
repeat
BonBon;
WaitFunc(@FindXPNumber, 10, 2000);
Inc(ReBonBon);
until (FindXPNumber) or (ReBonBon = 5);
end;

if (ReBonBon = 5) then
begin
writeln('Failed finding fire for 10 seconds... Banking');
Exit;
end;
until (NotFindInvLogs) or (TimeFromMark(Time) > 270000);

If NotFindInvLogs then
begin
Result := True;
writeln('Finished bonbon');
Exit;
end;
end;


procedure testing;
begin
if FindXPNumber then
writeln('Found')
else
writeln('Not found');
end;


procedure PlayerStats;
var
Wet, Wst, Cst, Srt, Tih, Tim, Tis, Awt, Sec, sst: Integer;
begin
Cst := GetSystemTime;
Srt := (cst - sst) / 1000;
Tih := srt / 3600;
tim := (srt / 60) - tih * 60;
Tis := srt - tim * 60 - tih * 3600;
Awt := wet - wst
Sec := GetTimeRunning div 1000 + 1;
Writeln('#######################################################');
Writeln(' Shantay Bank Chest Bonfire ');
Writeln('#######################################################');
Writeln('Logs / Hour : ' + IntToStr(Round(3600 * Players[CurrentPlayer].Integers[3] / Sec)));
Writeln('Logs Done : ' + IntToStr(Players[CurrentPlayer].Integers[3]));
Writeln('Fire Spirit : ' + IntToStr(CollectedRewards));
Writeln('Running for : ' + TimeRunning);
Writeln('-------------------------------------------------------');
end;




begin
SetupLogin;
SMART_ClearCanvas;
AddOnTerminate('EndDTM');
StartDTM;
repeat
if not BankScreen then
begin
FindChest;
OpeningBank;
end;
BonBon;
if WaitingLogsFinish then
begin
IncEx(Players[CurrentPlayer].Integers[3], 28);
end;
PlayerStats;
until not LoggedIn;
end.

blinkblink

2012-05-14 19:40:17

EDIT: Also, spin ticket detection is already added since v1. If you noticed, there's already quite a lot FindNormalRandoms in the script. The point I didn't add it after it can't find the bank screen is because the random handler always fail. It's better to logout after you get into the random, instead of staying there, doing a lot of mistakes, stuck inside.



The latest version didn't have any FindNormalRandoms

*LOL*
Ignore me, I just noticed it did have them LOL
At line 346, but no clue why it wasn't working(it didn't click any spin tickets & terminated instantly when any random events happened)… By me adding it to the main loop it did worked that way

Anyways I am gonna test in a bit(need to buy allot more logs) now the new changes you mentioned above

Farmess

2012-05-14 19:41:12

think you gotta make it wait a bit longer if it doesnt see xp, cause it clicks on the maple right before it adds it to the bonfire making it stop. then it once again clicks on addlog to bonfire, which makes it slower xp. I'm using maples btw


also it'll only do about 12 logs then bank

CephaXz

2012-05-14 19:46:11

Also, might be scripting it to have new constant for people to fill in what logs they are using, since I only test the script using willows, and other people have problem with the log detection, making them bank before logs run out.

*And don't expect me to do this in few seconds. Don't like to see post like "Y SCRIPTZ STILL NO FINIZ BERN LUGZ N BANK?!". lol :p
Read posts above to know what situation I am in now.

@blinkblink
Was going to show you that there's quite a few of them in the script already lol, for the purpose of spin ticket



From: Farmess
think you gotta make it wait a bit longer if it doesnt see xp, cause it clicks on the maple right before it adds it to the bonfire making it stop. then it once again clicks on addlog to bonfire, which makes it slower xp. I'm using maples btw


also it'll only do about 12 logs then bank


It works good for some people. Come back after 24 hours if you want it work better.

blinkblink

2012-05-14 19:53:21

From: CephaXz
Also, might be scripting it to have new constant for people to fill in what logs they are using, since I only test the script using willows, and other people have problem with the log detection, making them bank before logs run out.

*And don't expect me to do this in few seconds. Don't like to see post like "Y SCRIPTZ STILL NO FINIZ BERN LUGZ N BANK?!". lol :p
Read posts above to know what situation I am in now.

@blinkblink
Was going to show you that there's quite a few of them in the script already lol, for the purpose of spin ticket



:P

I did test Yews, Maples, Willows & regular logs - they all did work at the 1st slot all fine
*On purpose I added all my logs from my bank in the very top.. so it used them all up in order

CephaXz

2012-05-14 19:56:37

From: blinkblink
:P

I did test Yews, Maples, Willows & regular logs - they all did work at the 1st slot all fine


Some people reported that it banks before the logs run out. 90% is because it couldn't detect the logs in the inventory, which only willows will work 100% since logs DTM is made out from willow log. Might make a DTM for every log, so people are happy lol :tongue:


From: blinkblink

*On purpose I added all my logs from my bank in the very top.. so it used them all up in order


Smart. I hope people actually know this :\
That is why the default number is 1.

Chen Monopoly

2012-05-14 20:41:41

Thanks for the script. Works great with maples!

Silentcore

2012-05-14 20:50:05

Thanks for this script. I tested it out for an hour and it works great, the bad thing is that I already have 99 firemaking and I axidently forgot the proggy. Other than, this is working great for me atm.

Physic

2012-05-14 21:11:32

Willow Support is Flawless,
I can confirm Spirit Support
I have no banking issues ( no banking early)

k9thebeast

2012-05-14 23:40:00

TBH I would add other bank support cause There like 1000000000000 people at shanty bank LOL

Nice script though :D

Farmess

2012-05-14 23:54:47

ah i've fixed my previous problems!
tips:
turn all chat option to on (game especially)
turn the xp counter to fire making

whzup

2012-05-15 00:02:44

flawless script :)

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 1371
Logs Done : 56
Fire Spirit : 1
Running for : 2 Minutes and 26 Seconds
——————————————————-

salbakuta

2012-05-15 01:29:54

random added yet?

Imanoobbot

2012-05-15 01:39:30

From: whzup
flawless script :)

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 1371
Logs Done : 56
Fire Spirit : 1
Running for : 2 Minutes and 26 Seconds
——————————————————-


2Minute proggy? ;)

k9thebeast

2012-05-15 02:06:29

From: Imanoobbot
2Minute proggy? ;)


LOL,

Only thing I have is that it sometime doesnt find the bank chest and logs out

dukenukem3d

2012-05-15 03:10:48

From: k9thebeast
LOL,

Only thing I have is that it sometime doesnt find the bank chest and logs out


I added some waiting times in between… this did the trick for me

Kimber1911

2012-05-15 04:36:34

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 893
Logs Done : 1120
Fire Spirit : 14
Running for : 1 Hours, 15 Minutes and 11 Seconds


Not to bad :D.. Had a few other 1+ hour runs, went from 15 fm to 60 tonight! Great script.

CephaXz

2012-05-15 05:58:37

From: ajmehta21
Ceph, use the proggies from my thread please. and can you use the pic at the top for a bot ( i tried for that) and add imanoobot's name. Also, does it have random event support?


Sorry, but I won't give credits to you nor Imanoobbot. Yes, you guys indeed did provide accounts for me to test and script this bot, but not one line of code is written by you. If you did contribute like posting a function or procedure that is useful and not in the script, then I will give credits. If not, other people that help posting bugs / reports will also need to be given credit? You got your name shown with the biggest font size on the first post, should be satisfied with that. Sorry to burst your bubble, but really, no offence. Just clearing things out.

As for the proggies, I'll just use the ones that are in this thread. Since people got the proggy out of the new version, not the old one. You could post yours too. Will update the thread maybe tomorrow.

From: ajmehta21
I Think it does only some spirits per hour. Proggies show that it does about 5-10 an hour.
Yeah script is specially made for fc w100 bonfire


It will only add the spirit found count if it actually collected the rewards. So if you're getting that much, it isn't a false number.


From: Ucantseemebot
Thanks for this script. I tested it out for an hour and it works great, the bad thing is that I already have 99 firemaking and I axidently forgot the proggy. Other than, this is working great for me atm.


Thanks :)

From: k9thebeast
TBH I would add other bank support cause There like 1000000000000 people at shanty bank LOL

Nice script though :D


Thanks. And the purpose of this script was to bot among that 100000000 people. People light up logs for you, so you can just find nearby fire and add logs. Main point of the script only supporting shantay pass bank chest.


From: Farmess
ah i've fixed my previous problems!
tips:
turn all chat option to on (game especially)
turn the xp counter to fire making


I believe I said it in the instructions at the first post. As for the XP counter, I made that the script opens it up if its not on yet. Not sure if it will be firemaking or not, but it will work if its opened.


From: k9thebeast
LOL,

Only thing I have is that it sometime doesnt find the bank chest and logs out


Will try to fix that in the next update.


From: Kimber1911
#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 893
Logs Done : 1120
Fire Spirit : 14
Running for : 1 Hours, 15 Minutes and 11 Seconds


Not to bad :D.. Had a few other 1+ hour runs, went from 15 fm to 60 tonight! Great script.


Nice, and thanks :)





Please be noticed. It has been more than 30 hours since I woke up, and I need to get some rest now that I got back from exam. I hope everyone read posts. I will update again when I get up. And I think I know the problem why is the character going to bank before logs is finished. I just accidently reset my XP counter when I try to make it firemaking. And the search box for the XP didn't reach if people had their counter at 0.

EDIT: I just tested. Even when the XP starts at 0, it detects perfectly fine. So probably have something to do with DTM.

Horatio

2012-05-15 06:00:09

Good script, however it sometimes fails finding the bank, it doesn't even try to find bank, it just sits 'doing antiban, doing antiban'. Whenever I get a good progress report I'll post it here.

Btw: I'm going to run this script for at least 6 hours, and I'm keeping track of all the charms I get from spirits :) will be interesting to see how many charms you can get from the spirits.

CephaXz

2012-05-15 06:11:38

From: Horatio
Good script, however it sometimes fails finding the bank, it doesn't even try to find bank, it just sits 'doing antiban, doing antiban'. Whenever I get a good progress report I'll post it here.

Btw: I'm going to run this script for at least 6 hours, and I'm keeping track of all the charms I get from spirits :) will be interesting to see how many charms you can get from the spirits.


That is weird. It should find the bank if the bank chest IS ON SCREEN. Sometimes people plant flowers, making your character finding fire further away from bank chest, making the bank chest not seen on screen, then script fails. But if its out of logs, debug should say "Finding chest" or something, not doing antiban.

CephaXz

2012-05-15 06:38:44

Updated! Even though I am so tired that I wanted to jump onto my bed so badly, I still updated the script LOL. For people that say it isn't detecting the spirit, just let it wait until it detect the spirit itself. It will search for the spirit every 4 seconds, until the color is found.

Imanoobbot

2012-05-15 07:51:38

From: CephaXz
Updated! Even though I am so tired that I wanted to jump onto my bed so badly, I still updated the script LOL. For people that say it isn't detecting the spirit, just let it wait until it detect the spirit itself. It will search for the spirit every 4 seconds, until the color is found.


New version looks great so far! :)
Will instantly test it when Im back home.

CephaXz

2012-05-15 10:36:26

Latest version is very much stable now. Doing a very good amount of logs per hour for willows. 4 hours and still running!


Imanoobbot

2012-05-15 10:55:55

From: CephaXz
Latest version is very much stable now. Doing a very good amount of logs per hour for willows. 4 hours and still running!



Great! I am thinking about how much exp you are gaining per log in which level. Do you know how to add the exp/h into the proggy. Was thinking about that in the last hours. You are getting more exp per log as higher your level is and if there are more then 4 people on 1 fire then you are getting another 4% bonus.

CephaXz

2012-05-15 11:00:07

From: Imanoobbot
Great! I am thinking about how much exp you are gaining per log in which level. Do you know how to add the exp/h into the proggy. Was thinking about that in the last hours. You are getting more exp per log as higher your level is and if there are more then 4 people on 1 fire then you are getting another 4% bonus.


Probably can be done with calculating the XP bar. Reset the XP counter when script starts, and get the ending XP total after each bank. I'm gonna try doing that, see if it works.

EDIT: 5 hours, guess it wouldnt have any problem running 6 hours. I'm gonna stop it and try making xp gained and xp/hour for the progress report.
#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 770
Logs Done : 3864
Fire Spirit : 26
Running for : 5 Hours, 47 Seconds
——————————————————-


EDIT2: Successfully added. Didn't know I could learn adding it so fast lol.

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 760
Logs Done : 56
Fire Spirit : 0
EXP Gained : 6115
EXP / Hour : 83071
Running for : 4 Minutes and 24 Seconds
——————————————————-

vmike

2012-05-15 11:51:14

Would like to say that this is a great script. I'm getting close to 150k xp an hour doing maples @ level 60 fire making. Could use some more work with detecting the fire spirit thing.Seen it miss acouple. Other then that its a great script.

CephaXz

2012-05-15 11:55:27

Updated again. Added Xp gain count in the progress report.


From: vmike
Would like to say that this is a great script. I'm getting close to 150k xp an hour doing maples @ level 60 fire making. Could use some more work with detecting the fire spirit thing.Seen it miss acouple. Other then that its a great script.


Thanks. It would take some time before it could detect a spirit, it never failed for me yet though.

a7564321

2012-05-15 12:04:29

couldnt get 1h+ since always logs out
some ppl light a fire like 5 steps away, bot goes there and adds logs to the bonfire there, then goes to bank, doesnt open it and just logs out (v4)
but firespirits are working great,
trying v5 now

Benny

2012-05-15 12:05:55

great script got me 79 fm :D

CephaXz

2012-05-15 12:06:24

From: a7564321
couldnt get 1h+ since always logs out
some ppl light a fire like 5 steps away, bot goes there and adds logs to the bonfire there, then goes to bank, doesnt open it and just logs out (v4)
but firespirits are working great,
trying v5 now


Because bank chest are not on screen anymore, so it couldn't find it. It's fixed in the new version. I added walking to the bank chest if it couldn't find it.



From: Bennyp12
great script got me 79 fm :D


Post proggies if you have :D

Ezio Auditore da Firenze

2012-05-15 12:15:05

Good to know the flower planting wont affect us anymore! Thanks mate!

k9thebeast

2012-05-15 12:43:07

From: CephaXz
Because bank chest are not on screen anymore, so it couldn't find it. It's fixed in the new version. I added walking to the bank chest if it couldn't find it.
Post proggies if you have :D


The fact that you actively listen to problems and fix them is amazing dude, thats called quality scripting. I couldn't use 4.u1 overnight cause of bugs, but then I wake up and there is a new version ready to be tested :) Testing now.

Xert

2012-05-15 15:39:38

better random detection is the only thing i recommend

CephaXz

2012-05-15 15:41:42

From: Jonno
Good to know the flower planting wont affect us anymore! Thanks mate!


From: k9thebeast
The fact that you actively listen to problems and fix them is amazing dude, thats called quality scripting. I couldn't use 4.u1 overnight cause of bugs, but then I wake up and there is a new version ready to be tested :) Testing now.


Thanks. Hope you enjoy using the script. Post a proggy if you have one :)

From: Xert
better random detection is the only thing i recommend


It is already detecting random events.

Moron

2012-05-15 15:44:10

From: CephaXz
Thanks. Hope you enjoy using the script. Post a proggy if you have one :)



It is already detecting random events.


Wrong :(

Jake

2012-05-15 16:08:36


Imanoobbot

2012-05-15 16:11:41

From: omglawlzyougotpw


The trolling nerd will get bored and i think this is not effecting the script anymore. ;)

CephaXz

2012-05-15 16:14:19

From: Moron
Wrong :(


Gimme proof.


From: omglawlzyougotpw


I don't think this stops the script.

Moron

2012-05-15 16:35:20

From: CephaXz
Gimme proof.




I don't think this stops the script.


Just believe me that for randoms it says something is not activated and it logs me out….

CephaXz

2012-05-15 16:36:46

From: Moron
Just believe me that for randoms it says something is not activated and it logs me out….


Then you would have to blame the developer of Simba. It shows that message, means it DETECTED the random.

Physic

2012-05-15 20:12:23

ive had constant problems over the past hour. There are no failsafes if the script attempts to withdraw logs from the first slot and then closes bank. It just logs out. I think this script needs to retry at least 2x to withdraw logs and not say no logs found. I think my script tries to withdraw the logs too fast sometimes resulting in the script saying no logs found and it logging out. If this could be fixed it would help. I can confirm that this script does not do many randoms yet. 4 randoms none done: frog, 10x clicking ring, leatherhorsen. Otherwise still a great script

blinkblink

2012-05-15 21:34:19

From: ajmehta21
ive had constant problems over the past hour. There are no failsafes if the script attempts to withdraw logs from the first slot and then closes bank. It just logs out. I think this script needs to retry at least 2x to withdraw logs and not say no logs found. I think my script tries to withdraw the logs too fast sometimes resulting in the script saying no logs found and it logging out. If this could be fixed it would help. I can confirm that this script does not do many randoms yet. 4 randoms none done: frog, 10x clicking ring, leatherhorsen. Otherwise still a great script


in that case, just for testing purposes add to the mainloop:
FindNormalRandoms;

exactly where I posted on here: http://villavu.com/forum/showpost.php?p=1019607&postcount=61

*edit*
I forgot he has updated since last time… place it here from line 472 till 490:

begin
SetupLogin;
SMART_ClearCanvas;
AddOnTerminate('EndDTM');
StartDTM;
repeat
if not BankScreen then
begin
FindNormalRandoms;
FindChest;
end;
OpeningBank;
BonBon;
if WaitingLogsFinish then
begin
IncEx(Players[CurrentPlayer].Integers[3], 28);
end;
PlayerStats;
until not LoggedIn;
end.

Bag of WTF

2012-05-15 22:50:30

I found that the script ends itself from being out of logs after a short period of time (10-30 minutes)
I'm using yew logs, and it goes to the bank and doesn't see them. I have it set to slot one and the logs are in slot one.
Is anyone else having this problem?

Bag of WTF

2012-05-15 22:52:04

Double post sorry other then above bug great script :)

CephaXz

2012-05-16 01:10:33

From: ajmehta21
ive had constant problems over the past hour. There are no failsafes if the script attempts to withdraw logs from the first slot and then closes bank. It just logs out. I think this script needs to retry at least 2x to withdraw logs and not say no logs found. I think my script tries to withdraw the logs too fast sometimes resulting in the script saying no logs found and it logging out. If this could be fixed it would help. I can confirm that this script does not do many randoms yet. 4 randoms none done: frog, 10x clicking ring, leatherhorsen. Otherwise still a great script


What's 10x clicking ring and leatherhorsen? Did it say Random not activated? Randoms are handled by the client, not me.
Is there logs withdrawed from your bank when it says no logs found?
How is it too fast? It will only start withdrawing when it found the bank screen.

From: Bag of WTF
I found that the script ends itself from being out of logs after a short period of time (10-30 minutes)
I'm using yew logs, and it goes to the bank and doesn't see them. I have it set to slot one and the logs are in slot one.
Is anyone else having this problem?


I'll test out 200 yews in a minute.
EDIT: Oh wait, I didn't have an account to try that :\



EDIT2: I bought 500 yews just for testing for you guys. It burn all of them without any problem. But I got into random event, the function is not detecting it. I removed all my procedures and only put FindNormalRandoms in the main loop. Its still not detecting the random event. So maybe you should report it to the devs, give them account stuck in randoms and such.


EDIT3: I closed my bonfire script and opened my cosmic crafter and run it. It detected the random event, but still saying random event not activated because it might be not working at the dev side at the moment. It will only detect the random event when it is in conversation with the random event NPC. So I added a few more FindNormalRandoms in the script. And also, added the banking failsafe in case it says cant find logs. Will do the banking for 3 times before it terminate the script now.

Download the new version.

Er1k

2012-05-16 11:07:52

What was the random that got you? I was aware SRL randoms failed to detect some randoms in the desert.

Will run this overnight. Just did 99 magic. This is next on my list.

CephaXz

2012-05-16 11:10:25

From: Er1k
What was the random that got you? I was aware SRL randoms failed to detect some randoms in the desert.

Will run this overnight. Just did 99 magic. This is next on my list.


It was the graveyard random, I believe it couldn't detect because my character moved and cancelled the chat with NPC. If the chat with NPC is on screen, it will detect the random, but will logout since its not activated.

Er1k

2012-05-16 11:36:13

Interesting. maybe you should post in the Randoms section about that. I believe some of the randoms sometimes don't detect very well, but I cant remember which.

By the way, the bonfire adding is XP based or what? I am looking over it and cleaning your code, but I just want to make sure.

CephaXz

2012-05-16 11:38:15

What do you mean by XP based? It just find the log DTM in your inventory and left click it, and choose the option to add logs to nearby fire.
Also, it uses color to check the XP to check whether you're still doing firemaking. If it doesn't, XP counter will not +EXP.

Er1k

2012-05-16 11:48:16

You said it. It's based on XP counter, so it's checking XP gain.

I am just wondering which is better - checking inventory decrease vs. checking xp gain. Perhaps I will mod your script and see for myself the results.

CephaXz

2012-05-16 11:50:01

From: Er1k
You said it. It's based on XP counter, so it's checking XP gain.

I am just wondering which is better - checking inventory decrease vs. checking xp gain. Perhaps I will mod your script and see for myself the results.


Probably checking inventory decrease is better. Because I'm a noob that doesn't know how to do that LOL. Teach me :p

Er1k

2012-05-16 11:53:39

I think the function is this - CountItemsIn. Haven't got time to look into it, gonna sleep in 10 mins, but I am sure you can figure something out.

Basically you check for decrease of logs in set time, maybe 5-10 secs intervals depending on firemaking level. If inventory did not decrease, it's a good idea to assume you need to add to logs again.

Just a suggestion anyway. I believe the current method works fine.

CephaXz

2012-05-16 11:56:18

Then it might be the same, since the XP gained fades away after like 5-7 seconds. But will surely look into this function. Thanks!

bgxsaer

2012-05-16 12:40:23

Keep randomly getting Logs not Found for some reason and script stops.

Moron

2012-05-16 13:33:07

Bonbonbonbonbonbonbon

bon
bon

bonbonbon


ty 99 fm <3 < 3 <3

bon bon bon bon



bon,

bgxsaer

2012-05-16 14:19:54

From: bgxsaer
Keep randomly getting Logs not Found for some reason and script stops.


if WaitFunc(@BankScreen, 6000, 12000) then
begin
if not InvEmpty then
begin
DepositAll;
end;
writeln('Withdrawing logs');
wait (1000+Random(2000));
MouseBankSlot(LOGS_BANKSLOT, mouse_Right);
WaitOption('All', 2000);
CloseBank;

Added that wait time, seems like it shouldn't give that issue anymore, most likely due to lag.

Benny

2012-05-16 16:16:14

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 806
Logs Done : 1764
Fire Spirit : 15
EXP Gained : 303689
EXP / Hour : 138794
Running for : 2 Hours, 11 Minutes and 16 Seconds
——————————————————-

whzup

2012-05-16 18:48:44

u forgot to wirite the changelogs for V5u2

CephaXz

2012-05-16 20:09:24

From: Moron
Bonbonbonbonbonbonbon

bon
bon

bonbonbon


ty 99 fm <3 < 3 <3

bon bon bon bon



bon,


H4x? lol :tongue:


From: bgxsaer
if WaitFunc(@BankScreen, 6000, 12000) then
begin
if not InvEmpty then
begin
DepositAll;
end;
writeln('Withdrawing logs');
wait (1000+Random(2000));
MouseBankSlot(LOGS_BANKSLOT, mouse_Right);
WaitOption('All', 2000);
CloseBank;

Added that wait time, seems like it shouldn't give that issue anymore, most likely due to lag.


Just add whatever wait times you think its better for you. Maybe my connection is faster, so I never fail the bank part.

You said it keep go banking before logs is finished. Is your XP counter on? And what logs you're using?


From: Bennyp12
#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 806
Logs Done : 1764
Fire Spirit : 15
EXP Gained : 303689
EXP / Hour : 138794
Running for : 2 Hours, 11 Minutes and 16 Seconds
——————————————————-


Nice proggy there :D


From: whzup
u forgot to wirite the changelogs for V5u2


But I already forgot what I added LOL.

Physic

2012-05-16 20:12:54

or to fix the logs not found problem u can make it withdraw more than once to ensure they were withdrawd \
thats what i did

bloopa1

2012-05-16 20:43:29

From: bgxsaer
if WaitFunc(@BankScreen, 6000, 12000) then
begin
if not InvEmpty then
begin
DepositAll;
end;
writeln('Withdrawing logs');
wait (1000+Random(2000));
MouseBankSlot(LOGS_BANKSLOT, mouse_Right);
WaitOption('All', 2000);
CloseBank;

Added that wait time, seems like it shouldn't give that issue anymore, most likely due to lag.


testing ur fix! Will report back if it improves running time

Er1k

2012-05-16 20:52:14

Apparently I got a Leo random last night, so my overnight run is screwed. But 1 minute ago it solved the spirit correctly and got me some nice charms. So nice work :)

BlehX

2012-05-16 22:01:07

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 842
Logs Done : 1232
Fire Spirit : 13
EXP Gained : 203919
EXP / Hour : 139431
Running for : 1 Hours, 27 Minutes and 44 Seconds

Was running amazing. Until a random came along. But pretty good script!

[XoL]

2012-05-16 22:13:43

Sorry if you already answered this but is there any reason for w100?

E: w100 always has fire?

Ezio Auditore da Firenze

2012-05-16 22:16:10

From: R4nd0m
Sorry if you already answered this but is there any reason for w100?

E: w100 always has fire?


Yes W100 is the unofficial world for fm so I've been told.. there's stax of people out and about with fires.

CephaXz

2012-05-16 22:19:31

From: Er1k
Apparently I got a Leo random last night, so my overnight run is screwed. But 1 minute ago it solved the spirit correctly and got me some nice charms. So nice work :)


Whenever random comes, it kinda ruined the script lol. Spirit detecting is working a lot more better because I added the color that has high tolerance. and high hue and sat maybe? So sometimes it will detect something around you. But length is set very high, less chances of that happening.

From: BlehX
#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 842
Logs Done : 1232
Fire Spirit : 13
EXP Gained : 203919
EXP / Hour : 139431
Running for : 1 Hours, 27 Minutes and 44 Seconds

Was running amazing. Until a random came along. But pretty good script!


Nice proggy :)


From: R4nd0m
Sorry if you already answered this but is there any reason for w100?

E: w100 always has fire?


I heard people saying someone made a FC for w100 bonfires. Training firemaking with bonfire together with other people would add 4% more experience. It was originally at lumby bank chest, but then changed to shantay. And yes, it should always have a fire there, as long as there are legits lol.

Er1k

2012-05-16 22:26:40

At W100 they also have this spamming when you get 99, and they put summoning familiars to annoy us with the fire spirit colors lol. But the XP is good, have to admit that.

P1ng

2012-05-17 03:16:01

Script is currently running pretty well, only suggestion is perhaps a procedure to destroy the strange rock when it appears and a load is finished burning rather than banking it. But other than that script is running well.

Will keep an eye on it and edit with a proggy when it hits a random or I turn it off.

Threshold

2012-05-17 03:17:09

For some reason the script only lasts anywhere from 30 minutes to 3 hours and then claims that there are no more logs when there is, in fact, many many logs left. Any idea what the problem could be?

CephaXz

2012-05-17 03:56:04

From: Er1k
At W100 they also have this spamming when you get 99, and they put summoning familiars to annoy us with the fire spirit colors lol. But the XP is good, have to admit that.


Yeah, there's a ball like thing just like the fire spirit, but I can't do anything about that. I'm not that familiar with TPA yet.


From: p1ng
Script is currently running pretty well, only suggestion is perhaps a procedure to destroy the strange rock when it appears and a load is finished burning rather than banking it. But other than that script is running well.

Will keep an eye on it and edit with a proggy when it hits a random or I turn it off.


Strange rocks? I didn't know you could get one if you're doing firemaking lol. I never got one yet :p


From: Doa Envy
For some reason the script only lasts anywhere from 30 minutes to 3 hours and then claims that there are no more logs when there is, in fact, many many logs left. Any idea what the problem could be?


The only reason I could think of, is the DTM. I only made one DTM for log, and HOPE it supports all logs lol. You can make a DTM of the log you're using yourself, and replace the one in the script.

Solkarin

2012-05-17 04:59:28

For some reason it keeps on clicking after every log add t obonfire and it banks when i have like 23 logs left.

CephaXz

2012-05-17 05:01:52

From: Solkarin
For some reason it keeps on clicking after every log add t obonfire and it banks when i have like 23 logs left.


Might wanna see the reply above you. Make your own DTM if it keep on banking or adding logs. That would take like 30 seconds lol.

Solkarin

2012-05-17 05:13:00

From: CephaXz
Might wanna see the reply above you. Make your own DTM if it keep on banking or adding logs. That would take like 30 seconds lol.


How do i do that?

Er1k

2012-05-17 11:30:14

Just heads up - your way of using SPS to attempt to walk back to the chest has caused quite a lot of problems interfering with randoms.

I am looking through the code to see how it can be fixed. Other than that I actually liked the idea of script being in w100 shantay. It's amazing to blend in with the legits when they all are like, there's never gonna be bots around ;)

Imanoobbot

2012-05-17 11:31:34

From: Er1k
Just heads up - your way of using SPS to attempt to walk back to the chest has caused quite a lot of problems interfering with randoms.

I am looking through the code to see how it can be fixed. Other than that I actually liked the idea of script being in w100 shantay. It's amazing to blend in with the legits when they all are like, there's never gonna be bots around ;)


And it is the best bonfire exp available. :)

est1

2012-05-17 13:19:31

Well I just started it a few minutes ago, doing well so far!

CephaXz

2012-05-17 13:22:45

From: Solkarin
How do i do that?


Check up some DTM tutorials. Or maybe you just didn't setup it right. I had many people doing well with the script. But some people still can't get it running and having the same problem as yours, and they're all very low post count members.


From: Er1k
Just heads up - your way of using SPS to attempt to walk back to the chest has caused quite a lot of problems interfering with randoms.

I am looking through the code to see how it can be fixed. Other than that I actually liked the idea of script being in w100 shantay. It's amazing to blend in with the legits when they all are like, there's never gonna be bots around ;)


Now that you mention it, it really make sense. Why didn't I realize that :\
I'll try to think of a way after my assignment due tomorrow.


From: Imanoobbot
And it is the best bonfire exp available. :)


:p


From: est1
Well I just started it a few minutes ago, doing well so far!


Proggy not even showing things yet hahahaha.
Try running it for hours and post a good proggy here, it'll be on the first post.

Mystic Will

2012-05-17 16:23:29

I was running it from 1 to 30 with normal logs, no problems there (although I would like to see the fire spirit clicking to be improved drastically… had to babysit for spirits!)

I was running it from 30 to 45 with willow logs, same story.

Then I started doing maples, and once I let the script burn those, it said it detected a random event box in my inventory and started to drop my logs one after another! >.>
Dafuq? Any idea how this might come?

And as I said, your script would rock like over 9000 times more if you improved the fire spirit collecting! :D Good job and keep on updating please! :3

Physic

2012-05-17 16:28:23

Great Script i edited the banking process my self to make it a better fail safe. Works FLAWLESSLY

Threshold

2012-05-17 18:25:57

I'll try to look up some DTM tutorials, but if it means anything, I was using maple logs.

Er1k

2012-05-17 20:54:30

Also, I am not sure if this is too much, but I think you can actually home tele to Al-Kharid after failing a random (not the disabled ones) and walk back to Shantay to continue. Last night it spent 30 minutes clicking 'add to bonfires' because it failed a random and got tele to Falador.

CephaXz

2012-05-17 20:56:58

From: Er1k
Also, I am not sure if this is too much, but I think you can actually home tele to Al-Kharid after failing a random (not the disabled ones) and walk back to Shantay to continue. Last night it spent 30 minutes clicking 'add to bonfires' because it failed a random and got tele to Falador.


Don't think it will be hard, other than detecting if its at shantay pass or not. Will be doing that after my assignment due 5 hours later. Or maybe tomorrow, because I have not slept for more than 24 hours now, rushing my assignment lol.

Er1k

2012-05-17 21:23:51

From: CephaXz
Don't think it will be hard, other than detecting if its at shantay pass or not. Will be doing that after my assignment due 5 hours later. Or maybe tomorrow, because I have not slept for more than 24 hours now, rushing my assignment lol.


Keep rushing it. I am modding it as we speak.

Ashaman88

2012-05-17 23:29:09

idk how fire spirit detection is going, but I came up with this for sins POH firemaker

If (FindChatBoxText('emerges',8,397249)) And (InvCount<20) Then

So it will only search for the spirit when it finds that message during whatever loop you have for waiting while logs are burning. Would need to have chats off to be sure it detects it though. Also if you need any ideas about bonfire scripting check out the edited version I posted on sins thread. It will be a lot different with the butler and banking, but a lot of the same processes.

Er1k

2012-05-17 23:39:56

Thanks Asha. Will add it to see how it goes. I am very lazy these days and I will do anything to leech you guys :)

illester

2012-05-18 02:08:47

The tele-other thing is getting really annoying. Anti botters have too much time on their hands.

Er1k

2012-05-18 05:14:49

I have finished modding your script and now it runs quite well without those random logouts and SMARTManager restarts. Maybe let's talk and see if we can do something about it?

rexen

2012-05-18 06:47:26

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 857
Logs Done : 868
Fire Spirit : 9
EXP Gained : 135267
EXP / Hour : 133560
Running for : 1 Hours, 45 Seconds
——————————————————-

Zerkeronrs7

2012-05-18 06:57:26

From: Er1k
I have finished modding your script and now it runs quite well without those random logouts and SMARTManager restarts. Maybe let's talk and see if we can do something about it?


Post it ;) I've used your scripts before and they've all been fantastic, i'm assuming this won't be an exception :)

CephaXz

2012-05-18 09:05:06

From: ashaman88
idk how fire spirit detection is going, but I came up with this for sins POH firemaker

If (FindChatBoxText('emerges',8,397249)) And (InvCount<20) Then

So it will only search for the spirit when it finds that message during whatever loop you have for waiting while logs are burning. Would need to have chats off to be sure it detects it though. Also if you need any ideas about bonfire scripting check out the edited version I posted on sins thread. It will be a lot different with the butler and banking, but a lot of the same processes.


Thanks! I got the text color exactly same as yours, but I put it as backup so I can use it when I have the time to update the script. Well, just a question, I understand the searching of text in chat box, but why (InvCount<20)?


From: illester
The tele-other thing is getting really annoying. Anti botters have too much time on their hands.


Just off the support thing? So people can't tele other you?

From: Er1k
I have finished modding your script and now it runs quite well without those random logouts and SMARTManager restarts. Maybe let's talk and see if we can do something about it?


Sounds great! Could have became the best bonfire script because of you :p
But I haven't slept for more than 36 hours now, just got back home and checking out the thread. Going to sleep for now.


From: rexen
#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 857
Logs Done : 868
Fire Spirit : 9
EXP Gained : 135267
EXP / Hour : 133560
Running for : 1 Hours, 45 Seconds
——————————————————-


Nice proggy :D

Ashaman88

2012-05-18 10:53:30

From: CephaXz
Thanks! I got the text color exactly same as yours, but I put it as backup so I can use it when I have the time to update the script. Well, just a question, I understand the searching of text in chat box, but why (InvCount<20)?


Well if you click on the spirits and don't have like the 4 spaces open or so needed to get the items, and if you don't have the space, it won't give you the junk. I just picked 20 but I suppose it could be like 24?

Er1k

2012-05-18 11:38:31

From: ashaman88
Well if you click on the spirits and don't have like the 4 spaces open or so needed to get the items, and if you don't have the space, it won't give you the junk. I just picked 20 but I suppose it could be like 24?


I found it to be 23. Sometimes you get 5 items from the spirit, I have seen that once. Though that I am not perfectly sure still.

Ashaman88

2012-05-18 11:57:53

From: Er1k
I found it to be 23. Sometimes you get 5 items from the spirit, I have seen that once. Though that I am not perfectly sure still.


So 20 was a safe bet hehe

Er1k

2012-05-18 12:02:28

From: ashaman88
So 20 was a safe bet hehe


Maybe, I am putting it at 23 and I don't really care that 5-10 charms per hour anyway. AFAIK people summon their familiars at Shantay to mess with the detection, so you miss some anyway, unless you put your script in PoH.

I am already very grateful that Jagex made green charms collecting so much easier. I was thinking I would never get my summoning up, currently level 19 :(

blinkblink

2012-05-18 13:00:52

@ Er1k Post your version :P


Anyways some tiny proggy from during the night:
             Shantay Bank Chest Bonfire              
#######################################################
Logs / Hour : 883
Logs Done : 2940
Fire Spirit : 22
EXP Gained : 522785
EXP / Hour : 157136
Running for : 3 Hours, 19 Minutes and 36 Seconds
-------------------------------------------------------

And so far using smartmanager… using these settings - been running almost 17 hours - but you can also see the script fails a heck allot of times it says 33 restarts

LOL but obviously I have been babysitting many times, to solve the randoms that were stuck(I was lucky that all those times those occurred I was there, *paused the script to solve them fast & afterwards *play script kept running) but everything else thanks to that manager it kept restarting to continue running if anything failed.

CephaXz

2012-05-18 13:37:02

Just when I was about to sleep few hours ago, something urgent happened, and now I'm back at home again. I saw Er1k's PM about the script he modded. I didn't test it out yet, but I looked through the script, without a doubt, it looks very much better than what I have done. He just almost rewrote the whole script and I'm still thinking whether I should put my name in the script lol. There are parts that I didn't even understand. Now I know how far I am from becoming a SRL member :p

So… Er1k's version is uploaded, download and enjoy. I'm really going to sleep now, else you won't be seeing me on forums anymore.

blinkblink

2012-05-18 13:58:28

hmm I just tested the Er1k's script.. it logged me out instantly after depositing the stuff on my inventory
Using maples & obviously they are in the 1st slot

WTF?

-edit-
Tried it 3 times, all of them did the same - instantly logout in the banking

LOL not enough logs and it detected 44k hahahahahaa

Adieux

2012-05-18 14:05:27

From: blinkblink
hmm I just tested the Er1k's script.. it logged me out instantly after depositing the stuff on my inventory
Using maples & obviously they are in the 1st slot

WTF?

-edit-
Tried it 3 times, all of them did the same - instantly logout in the banking

LOL not enough logs and it detected 44k hahahahahaa

Same thing is happening to me, it will just auto log me out.

a7564321

2012-05-18 14:16:27

Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from ''
with Er1k's script
100% support al-kharid home teleport since it gets randoms every hour :S
still got 61k maples to do lol
EDIT: DOWNLOADED http://villavu.com/forum/showthread.php?t=68112 WORKS FINE TY!

blinkblink

2012-05-18 14:16:34

Well wte for my own self I removed the lines from the code 125 till 130
    if GetBankItemAmount(1, 1) < 29 then
begin
writeln('Not enough logs - Logout');
Logout;
TerminateScript;
end;

And now it works & didn't log me out

Ecoalypse

2012-05-18 14:39:38

Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Users\Atteh\Desktop\Simba Scripts\World 100 Shantay Chest Bonfires - Er1k's Mod.simba'

Kyle Undefined

2012-05-18 14:42:02

Was using this at shantay last night, saw this in the chat, couldn't stop laughing.




blinkblink

2012-05-18 15:07:53

From: Ecoalypse
Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Users\Atteh\Desktop\Simba Scripts\World 100 Shantay Chest Bonfires - Er1k's Mod.simba'


I do not get that error but maybe try this since i have it installed: http://villavu.com/forum/showthread.php?t=68112

Follow the how to install part:
How To Install!
——————————————-

- Download 'ObjectDTM.sex' at the bottom of this post.


- Move the file to 'Simba/Extensions'. ("Simba" being the install location of Simba. On windows, usually at "C:\")

- If you have Simba open, close it.

- Open Simba.

- go to 'View>Extensions'.

- enable 'ObjectDTM.sex'.

- go to 'ODTM>Check For Update'.
——————————————-


If you get the instant logout while banking when starting the script do what I posted above as a temporary fix(I've been running Er1ks with that change for over an hour and its been fine): http://villavu.com/forum/showpost.php?p=1023623&postcount=164

Simba even solved a random event(freaky forrester) during this testing run

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 863
Logs Done : 868
Fire Spirit : 3
EXP Gained : 154931
EXP / Hour : 154202
Running for : 1 Hours, 16 Seconds
-------------------------------------------------------

*edit*

- I have to report an issue, had another random event(drill sargent) and it solved it but the script no clue why the waiting to do bank was extremely too quick, I was looking at the screen and it didn't even try to go banking
You can clearly see in the console log, it did solved the random event & it did solved taking the randoms event reward… but it still logged out saying it failed it - so apparently the Action "bank" didn't work here.

rexen

2012-05-18 15:35:52


nice script :D! 78firemaking atm! :)

Reamt

2012-05-18 15:53:47

#######################################################
Shantay Bank Chest Bonfire
#######################################################
Logs / Hour : 870
Logs Done : 112
Running for : 7 Minutes and 42 Seconds
——————————————————-


ITS GREAT! I LOVE IT!

blinkblink

2012-05-18 16:04:25

Guys I suggest Not to use the current Er1k's version, he did not add something CephaXz had in the script originally which made it walk back to bank if it had failed trying burning the logs 5 times, I literally kept waiting seeing he re-doing trying to burn for over 9 times and still kept trying

Er1k's is missing something that read this:
    if (ReBonBon = 5) then
begin
writeln('Failed finding fire for 5 times... Banking');
FindNormalRandoms;
Exit;
end;
Something in the code(don't know where) executed the failsafe to go banking after the fails

On Er1k's you will be stuck in the middle not moving trying to burn when it can't… unless some legit person adds a fire near you(which is unlikely if you are far from the bank and there is already a fire next to the bank) - so I'd suggest use CephaX latest for now till Er1k or someone else adds a similar failsafe to execute banking if it fails trying to burn after 5 times

Juggalo812

2012-05-18 16:11:55

Object DTM Include: Setup complete.
Current action is: bank
Clicked Bank chest
BankScreenEx found
Withdrawing logs
amount of logs: 78365
Not enough logs - Logout
Successfully executed.


Went through over 78k logs in less then 10 seconds. Like a boss.

SkunkVT

2012-05-18 18:24:44

Can someone post the code for objdtminclude.simba? The site silentscripts.net seems to be completely dead. Thanks!

SkunkVT

2012-05-18 18:37:28

Might as well post the code for Object DTM Generation Tool.simba, too.

Kyle Undefined

2012-05-18 18:44:53

Search the forums, it will tell you how to install it.

Vamp08

2012-05-18 21:21:34

Anyone want to explain to me why it is now just dropping my logs?

Er1k

2012-05-18 21:28:55

I am very aware of those errors actually. In fact that if you read my changelog…

- Now logs out if there is less than 29 logs in order to keep inventory placeholder, however only works on slot1 now

The reason of this because I'm too lazy to figure out GetBankItemAmount. I think the col and row are reversed so I head straight and supported only slot 1.

I know you guys are complaining about the add to bonfires when no bonfires nearby thing. It's annoying, because the original script uses the SPS integration and I totally scrapped it because it messes with most random detection. I'll look into it

On Er1k's you will be stuck in the middle not moving trying to burn when it can't… unless some legit person adds a fire near you(which is unlikely if you are far from the bank and there is already a fire next to the bank) - so I'd suggest use CephaX latest for now till Er1k or someone else adds a similar failsafe to execute banking if it fails trying to burn after 5 times


Any suggestions as to how to fix this? ;) If you rely on the fire next to the shantay chest, the problem will still persist because you assume a perma-fire on the tile opposite to it, which I know isn't always there if legits screw things up.

E: Meanwhile don't download it, or unless you know how to fix it ;)

Ezio Auditore da Firenze

2012-05-18 21:37:24

From: Er1k
I am very aware of those errors actually. In fact that if you read my changelog…

- Now logs out if there is less than 29 logs in order to keep inventory placeholder, however only works on slot1 now

The reason of this because I'm too lazy to figure out GetBankItemAmount. I think the col and row are reversed so I head straight and supported only slot 1.

I know you guys are complaining about the add to bonfires when no bonfires nearby thing. It's annoying, because the original script uses the SPS integration and I totally scrapped it because it messes with most random detection. I'll look into it


Strange.. your modded version of the script is flawless for me! going 2 hours strong no bugs/glitches spirit detection runs smooth! thanks mate =]

Hero

2012-05-18 21:42:23

Nice release. Thanks for this!

blinkblink

2012-05-18 21:45:36

From: Er1k


I know you guys are complaining about the add to bonfires when no bonfires nearby thing. It's annoying, because the original script uses the SPS integration and I totally scrapped it because it messes with most random detection. I'll look into it

Any suggestions as to how to fix this? ;) If you rely on the fire next to the shantay chest, the problem will still persist because you assume a perma-fire on the tile opposite to it, which I know isn't always there if legits screw things up.

E: Meanwhile don't download it, or unless you know how to fix it ;)


That is the purpose why CephaXz added a failsafe after 5 failed attempt to light a fire it executes returning to the bank

He added that since v5:
v5
-Better failsafe if its not firemaking while still having logs in inventory now.
-Walk to bank chest if the bank chest is off screen. Trolls trying to plant flowers and fire are made further away from bank chest. And now I beat them :p
-Better random detections.
-Can start the script even if its on bank screen now.


That is the suggestion.. add a failsafe for failed amount of times of trying to burn.


I am very aware of those errors actually. In fact that if you read my changelog…

- Now logs out if there is less than 29 logs in order to keep inventory placeholder, however only works on slot1 now

The reason of this because I'm too lazy to figure out GetBankItemAmount. I think the col and row are reversed so I head straight and supported only slot 1.


If that were working then explain the console log:

LOL it did detected my logs, and it still insisted I did not have enough logs and instantly logged out :P And yes my logs are placed in the very 1st top slot in the bank.

*Edit*
After I remove the lines of that part it works fine for me your modded version.. its only missing the failsafe

Er1k

2012-05-18 22:31:58

From: blinkblink
LOL it did detected my logs, and it still insisted I did not have enough logs and instantly logged out :P And yes my logs are placed in the very 1st top slot in the bank.

*Edit*
After I remove the lines of that part it works fine for me your modded version.. its only missing the failsafe


Found the bug about the logout. Check here.

    //Keep inventory slot
while GetBankItemAmount(0, 0) = 0 do
wait(100+random(50));
writeln('amount of logs: ' + IntToStr(GetBankItemAmount(0, 0)));
if GetBankItemAmount(1, 1) < 29 then //this is wrong, should be 0, 0

Sorry have been doing a lot lately. Apparently I missed that.

That is the suggestion.. add a failsafe for failed amount of times of trying to burn.


Need to review the script logic because the fire lighting function does not detect no bonfires nearby in the original version. I am struggling between relocation, or finding fires on mainscreen. Give me some time on that. Most of the time it will be fine.

ajhockey88

2012-05-18 23:04:22

From: illester
The tele-other thing is getting really annoying. Anti botters have too much time on their hands.


turn off accept aid…

Juggalo812

2012-05-18 23:29:47

BE CAREFUL USING THIS THEY HAVE DISCOVERED HOW TO BREAK MOST FM BOTS. THERE IS A MOD WHO STANDS THERE WATCHING THEM BREAK THE BOTS AND REPORTS THEM. I'll be messaging Ceph the way they use so no more people learn how to do it.

CoconutMangos

2012-05-18 23:49:11

Err doesn't seem broken to me :L

CephaXz

2012-05-19 02:17:16

I am going to ask a mod to close and remove this thread soon. Er1k will be creating a new thread and maintaining the script from here on. I'm working on my other scripts, didn't actually have much time to maintain this anyway. I have to run all the way back to shantay and fix this script everytime because I only have one account, and membership expiring soon on Monday. Since Er1k himself is doing bonfire and using the script all the time, it would be better for him to maintain the script.

The purpose of me creating this script is because someone requested it on the script request section. I had some free time so I made it for everyone to use it temporarily, until someone is making a new one. Having my finals in 2 weeks, might not be that active on forums till then. Wish me luck :D

bl00dbull3t

2012-05-19 02:19:15

Thanks for the great script. I got 99 FM today. I got it within 1 week.

Kyle Undefined

2012-05-19 02:37:05

From: Er1k
The reason of this because I'm too lazy to figure out GetBankItemAmount. I think the col and row are reversed so I head straight and supported only slot 1.


Could you go into Bank.simba and change BankPointToBankIndex to


function BankPointToBankIndex(P: TPoint): Integer;
begin
Result := P.X * 10 + P.Y + 1;
end;

It's printing the correct values now, but I don't want to commit this yet. I don't know if it was really that easy of a fix.

zunkill

2012-05-19 04:32:18

[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
[Error] C:\Simba\Includes\SRL/SRL/core/antirandoms\certers.simba(122:165): Closing square bracket (']') expected at line 121
Compiling failed.


i go to start script and it fails because of this? ^

EDIT: i havnt touched anything i only enter my info and ran…

tutkubakay

2012-05-19 05:32:04

i have the same problem. ^

Er1k

2012-05-19 05:35:47

From: Kyle Undefined
Could you go into Bank.simba and change BankPointToBankIndex to


function BankPointToBankIndex(P: TPoint): Integer;
begin
Result := P.X * 10 + P.Y + 1;
end;

It's printing the correct values now, but I don't want to commit this yet. I don't know if it was really that easy of a fix.


Kyle I'll just be lazy and wait for you to commit this ;) Do poke me when you do, I'm sure it breaks some of my scripts.

tutkubakay

2012-05-19 05:37:20

Well, i solved it with my tries. But the Devs should check it anyway. I am noob.

Here it is ;

Change certer codes with this, it will work ;

(*
Certers
=======

Stores all the routines to solve the Certers random. None of these routines
should be used throughout scripts. They only need to be called in SRL's random
detection methods.

This solver uses multiple DTMs to identify each item. If an item can't be
identified right away, it will rotate the item and loop through the items again.

*)

const
CT_ITEM_COUNT = 9;
CT_ITEM_BOWL = 0;
CT_ITEM_SHEARS = 1;
CT_ITEM_RING = 2;
CT_ITEM_SWORD = 3;
CT_ITEM_BATTLEAXE = 4;
CT_ITEM_SHIELD = 5;
CT_ITEM_SPADE = 6;
CT_ITEM_HELMET = 7;
CT_ITEM_FISH = 8;

type
TCTItem = record
name, text: string; // name and text to click
DTMs: TIntegerArray;
end;
TCTItemArray = array of TCTItem;

(**
* Author: DemiseScythe
* Description: Detects if a player is in the Certers random.
*)
function CT_Detect(): boolean;
var
s: string;
begin
if (tabExists(TAB_MAGIC)) then
exit;

s := getNPCChatname();
result := (s = 'Dll8g' {Miles/Niles}) or (s = 'Gll8g' {Giles});
end;

(**
* Author: Coh3n, DTMs by DemiseScythe
* Updated by: [J]ustin - Spade DTM - 19/05/2012
* Description: Returns a TCTItemArray of all the Certer items.
*)
function CT_GetItems(): TCTItemArray;
begin
//setLength(result, CT_ITEM_COUNT);
setLength(result, 9);

with result[CT_ITEM_BOWL] do
begin
name := 'Bowl';
text := lowercase(name);
DTMs := [
DTMFromString('mAAEAAHic42FgYGBiZGBgBuKfDBCaD4i/ANmvgFgGyBYG4k9AtiBU3TUg+ywQXwXiuwwQ/kkgfgDEj4H4FBC/A+IPQPwRiAsy5BhyU2UZijLlGIqz5MD88lx5hvx0WQY7Z3GGhBhphsRYGQYHV3EG/wBJBn6gHlIwI8gPJGBkAADRtRm0'),
DTMFromString('mlwAAAHicY2dgYJBggABmIJYCYgMg1gFicSAWAmIuIFYBYn0gloPyQaA0T5GhpkSJIStNnsHLX5rByVOSITZWliEvS4GBHyiPCzMCMRMODAUAmFgH6Q==')
];
end;

with result[CT_ITEM_SHEARS] do
begin
name := 'Shears';
text := lowercase(name);
DTMs := [
DTMFromString('mPwEAAHic42dgYOBgZGBgBWIRIBYAYm4g5gdiUSBmAGI2IP4JZDIB6d9A+gcQfwXil0D8Coi/QOkPUDZIzXcgfg7ED6D4JhBfBuJjQHwNiC8CcVqyK0NDVTBDYa4XQ1SkHUNmmhtYDERnpLgxuLgaMgT4WzC4uRsz+PkYMCTHWTKEBpkwZKfaMvAD9ZOLQd5iIhOjAQCPQCJj'),
DTMFromString('mVAEAAHicE2BgYPgPxD+A+DMQ/4LyPwDxayB+D8RfoeJvgfglEHMxMjAwAjEPELMD8WWg2HUgvgvED4D4BhA/har/CDXnORA/BOIXQLwfiE8B8VEgPgvECXGODGWFfgx5WZ4MwcFWDH5+5gy1Ja4M7bVeDKkJVgzhIaYMnh56DIVZDgz5mQ4M5UX+DI3VIQwZqW4MmWnuDPxAMyjBQC8wMFGA0QEAfj0reg==')
];
end;

with result[CT_ITEM_RING] do
begin
name := 'Ring';
text := lowercase(name);
DTMs := [
DTMFromString('mVAEAAHicE2BgYPgDxD+A+DsQMzKCCAgbxgfJg8R+AikmIP0Xqp4Ryn4BxI+B+DWUfgPEnxkg6n8B8Tcg/gLEd4D4NhBfhOJLQHwaiBOirRjSk2wZinOdGDw99BnCQ80YqopdGSZ0xDLkZ3sz5Gc6gtWkJFgzeHsZMAQGWDF0N0cxmFvqMNja6zPwA82gBIO8zEQBRgcA6YwpHQ=='),
DTMFromString('mFQEAAHic42VgYGBjZGBgBmI+IGYFYk4g/g8U/wXFIDYnVF4QiHmB+A5Q7BkQPwXi11B8C4gvAfFJID4MxIeA+DgQnwPiG0BcX+rG0NcaxbBqbhZDeooVQ3NNKENuqh1Daa4jQ3WhM0NThTtDXYkrWCw/3Q7M5wfqIxUDncfARCJGAQD5FyAT')
];
end;

with result[CT_ITEM_SWORD] do
begin
name := 'Sword';
text := lowercase(name);
DTMs := [
DTMFromString('mPwEAAHic42dgYPgNxD+h9Fcg/g/l/4CK/YDy/0H5IPk/QMzIyMBwA0g/AeLXQPwBiD8D8Scg/o6k5gKQPgnEB4F4JxBvAOJVQNxUGcxQWeTHUJbnw1BX7MKQn2bLUJHnwDCpI4ahuzGCoSTLnqG62I+htymCoaU6mGFqdyxDR30YWI4fqJ9czEQBRgMABzot8Q=='),
DTMFromString('mAAEAAHic42FgYPgFxb+xsEH0DyD+gyT3EUqzMjIw8AOxKBC/BPLvAfEVID4DxKeA+AgQ7wNiL3dDBl9PY4bkWAcwrir0YUhPdGLwcDVgyEx0ZqgvcmII8zdgiAi2ZPD31GHgB+ohBQOtZ2AiASMDADBgH6M=')
];
end;

with result[CT_ITEM_BATTLEAXE] do
begin
name := 'BattleAxe';
text := lowercase(name);
DTMs := [
DTMFromString('mJgIAAHick2JgYOBnZGAQBGJRIBYGYglGiBgXEPMAMRsQcwIxMxAzAPEfBgj+BsRfgfgzlAbpEQJiEagZUkAsB2WDxF4A1TwE4jtAfA2IzwPxRyD+BMQ/gPgfA8SO70D6N1T8FRC/hqr7CcT/gZiFEUKzQd3zCyrGCXV3VYknQ2WxB0NxnhtDeZEHQ2GOK5iuLfMCy9VXeDNUl3oxlJcEMXQ0xzAUFwQwZGd6M+Tn+DJUl4cwVJWFMNRWhDJM7klkaKgJZ+hujWUoKw4CqyvM82dorIkAY36Qn+mAQd5kogPGDQCBfztn'),
DTMFromString('mJgIAAHicvdA/S4JRHMXxUwgRKQU2hCj4HkKTECIcSkJFUVSeEkX6I4kU5FKTb6ctSFBSVEiMlnBobeoFFC3aEH59uGurFz7cy7mH34XrkbS2JDmxYWxiBQ6swgW3yee24DO7B3548cesX0yNH3zjCxO8Yox3fOATz3hCFy100MQ9HvBo8p7pDdE3vQFe0Db3I7zhOBeyZVIB5TNBpRLbKp/s6qwUlpXd0eX5oazcnupXcTVu07qrJ+1z5fRApUJE1YuoapWoCta+3Z3n8VhIN7WY7bp6pHIxonXeWgS+VssL8P+aAXLdOcY=')
];
end;

with result[CT_ITEM_SHIELD] do
begin
name := 'Shield';
text := lowercase(name);
DTMs := [
DTMFromString('mfgEAAHicE2JgYPgAxC+A+DsQ/wXiz0B8B4ivAvElIL4IxKeB+D5UDScjA4MEEAswQtiCjBA9N4D4GhBfAOKbQPwUiK8A8RkgPgDE94D4DdS+o0B8GyoGMv8UVP17IJ5Q5s4wsdyDYXqtF8OkCg+GvlI3MD2j1huMu4pcGRqzHBnKEmzAfJDa6hRbuJ7KZBuGllwnBn6gWdTAQO8xMFEBYwIAOLkzag=='),
DTMFromString('mVAEAAHicE2BgYBBjZGAQAmIZIFYGYh0gtgJieyBWAmIRIOYFYnYg5gDiP0A9n4D4GxB/BOKjQHwYiA8B8UEgPgLEx4H4FBCfhGKYmhNQ+cNQ8dNAPKXMn2FSiR/DgpZkhkWtQNyWAhYriXZk6Mn3YWjN9ASLgeS787wZegt8GMrjnBkKojwY0gKsGfiBZlCCgV5iYKIAowMAy0onqA==')
];
end;

with result[CT_ITEM_SPADE] do
begin
name := 'Spade';
text := lowercase(name);
DTMs := [
DTMFromString('mJgIAAHick2JgYOAFYj4gFgFiMSifDYiZgZgDiAWhYjAMA6xQdSCaBYi5oFgYqkcSiKWAWBpqtgQQu0KxPRDbQtmOULYNEJsAsQ4Qq0LtAunjAWIhJDuZoPYwQt3HjGQvCHf2BzBUN9gyNLc7MmQXmzFU1NowVNXbMtQ22TG0dDgyZBaaguVBYiB6+pxIsrAI1H20xoxQP9Ma4wYAphgrGg=='),
DTMFromString('m5wEAAHictdBBSwJRFIbhb1wL7XKhEK2mzBBHSGnhPhhCGaLRURxERv2PLmtVooFBZCJZJLrITT/A13GINi298HAPl8t3DichaYU5pnjDM4Z4wBgTPGKET3zjB4YhxXGIFJI4wglOcWzs8mZR5iteoh7v+MAXFlhj+efPOOq3nWGAe/Rxh6dovkanKC8o6MbP/6q1L1RpWGFdsk3Zbja8t/zepZx6RuVqWhXvTLVWVtduWs0gJ79rhW9Xjqnb5rkOyN8X1qLYnvxzNkLsNe8='),
DTMFromString('m6wAAAHic42ZgYChjZmDIAuISIK4F4nwgrgPidiCeBsQTgXgWEC8C4meMDAyPgPg7EH8D4tdA/BeIuZkYGLSB2BiILYHYDIgjXa0YXE30wTjZzwFMR7lbMwTbGzHEeZgxRLmaMmQGWYNpLqA7iMWMJGAkAACJ+RWu')
];
end;

with result[CT_ITEM_HELMET] do
begin
name := 'Helmet';
text := lowercase(name);
DTMs := [
DTMFromString('mkwEAAHicE2ZgYGBkZGBgA2J2IOYGYiZGhNg/oPwfBogYiP0DiD8CMQuQLwTE/4FsVqg+QSC+CuTfAOLLQHwTiG8B8T0oBsmdB+ILQHwaSc0zIL4CxMeB+BgQnwLic0BcVmTKUJQlz5CTKstQlqfAkJ8hxzBzoidDf4czQ2ayDENKvBRDeqIMw+QeV4ZpfW4MnU32DBUlZmD19aXKDKsWBDGsnB8IluMHmkctzAgKDyphLAAATHotqg=='),
DTMFromString('mqAEAAHicE2FgYGBnhGBuIGYEYgYg/g+kvgPxV6g8BxCLALEoEPMBMQ8QC0LFJKHif4BqWYD0AyD9GIjvAfE1IH4ExG+h9Ecg/gLE/4D4DhA/BOI3QPwLKv4KygfZ+xSIPwBxfoY5g5uDEIO1OT9Db5MHw6xef4baEnuG9loXhowkY4ZwfwkGf3dRhto8FYaNi2LA8lWFtgxTO30Y1s6LAuO5EwIZ+ls8GcrybBj4gWZSE4OCjImKGBsAAK6vMEA='),
DTMFromString('mAAEAAHic42FgYPgFxB+A+B0QMzIyMDAD8R8g+y8QvwViNiCfgxFCcwHxe6DYCyB+zABhPwXiR0D8E4i/Q815BsTfgPgTEFekuDNMq4tgaC8KYCiK0mFoTDNgmNEYxdBW6A/GG6alM6ybmsYwtzWaYWlvIgM/UA8pGOgkBiYSMDIAAA0EIiY=')
];
end;

with result[CT_ITEM_FISH] do
begin
name := 'Fish';
text := lowercase(name);
DTMs := [
DTMFromString('m1gAAAHic42JgYGDiZGB4ysHAcAKIlwHxGiC+B8SPgPgrEP8HYl6gGj9GBgZXIDYBYltGCD8SiNOBOBaIw4E4BIjdQtQZ7P2UGZLyrBki0kwZ4nMsGcKT9Rg8I3QYsorNGNKLbcGYC2g3MZiRSIwAAFSFFBo='),
DTMFromString('mwQAAAHic42RgYFjPwcBwBYi/Q/FtIL4OxGug4g+AOJGRgcEYiNWB2AqIA4A4G4hzgTgCiH1A/Mokhqp6D4bKWneGju4Ahp5uF4bZc6IZpk2PYOjrdWPo7HRh4ALaRwgzEoHhAACqKhdS')
];
end;

end;

(**
* Author: Coh3n & DemiseScythe
* Description: Sets up to solve random.
*)
procedure CT_Setup();
begin
if (not loggedIn()) then
exit;

clickNorth(SRL_ANGLE_HIGH);
end;

(**
* Author: Coh3n
* Description: Clicks the "Change spin" button 'clicks' times.
*)
procedure CT_ChangeSpin(clicks: integer);
var
i, x, y: integer;
begin
if (not loggedIn()) then
exit;

mouse(364, 162, 5, 5, mouse_Move);
if (waitUptextMulti(['ange', 'nge', 'spin', 'pin'], 200)) then
begin
getMousePos(x, y);

for i := 1 to clicks do
mouse(x, y, 0, 0, mouse_Left);
end;
end;

(**
* Author: Coh3n
* Description: Identifies the item, waits for a mazimum of 30 seconds.
*)
function CT_IdentifyItem(items: TCTItemArray): integer;
var
i, j, t, t2, x, y: integer;
aFound: extended;
begin
if (not loggedIn()) then
exit;

result := -1;
t := (getSystemTime + 60000);
addToSRLLog('CT_IdentifyItem: Identifying item…');
markTime(t2);

// loops through DTMs while item is rotating on screen
repeat
for i := 0 to high(items) do
for j := 0 to high(items.DTMs) do
// look in the box where the item is rotating
if (findDTMRotatedAlternating(items.DTMs[j], x, y, 145, 150, 370, 295, -Pi, Pi, Pi/30, aFound)) then
begin
addToSRLLog('CT_IdentifyItem: Found item ~ '+items.name);
result := i;
exit;
end;

// change the spin every 15000
if (timeFromMark(t2) >= 15000) then
begin
addToSRLLog('CT_IdentifyItem: Didn''t ID item, changing spin…');
CT_ChangeSpin(randomRange(5, 10));
markTime(t2);
end;

until(getSystemTime > t);

if (result = -1) then
addToSRLLog('CT_IdentifyItem: Didn''t identify item');
end;

(**
* Author: Coh3n
* Description: Clicks the correct item's text.
*)
function CT_SelectItem(item: TCTItem): boolean;
begin
if (clickText(item.text, charsNPC, 75, 40, 240, 180, mouse_Left)) then
begin
addToSRLLog('CT_SelectItem: Clicked item text');
result := true;
end else
addToSRLLog('CT_SelectItem: Didn''t click text; may have ID''d wrong item');
end;

(**
* Author: Coh3n
* Description: Solves the random event, returns true when the portal is
* clicked.
*)
function CT_Solve(): boolean;
var
dtmPortal, i, t: integer;
items: TCTItemArray;
begin
if (not loggedIn()) then
exit;

CT_Setup();
dtmPortal := DTMFromString('mbQAAAHicY2VgYHjGyMDwCIjvAfEnIH4HxJuB4quAeBsQrwPiPUA8YWsSw8RtSQzTdqYytC2OZujeGM/ADxRHx4xYMBgAAJveEIE=');
items := CT_GetItems();
t := (getSystemTime + (3 * 60000)); // maximum 3 minutes

repeat
if (findNPCChatTextMulti(['ortal', 'atch'], nothing)) then
if (clickPortal(dtmPortal)) then
begin
result := waitTabExists(TAB_MAGIC, 8000);
break;
end;

if (not areTalking) then
begin
i := CT_IdentifyItem(items);

if (i <> -1) then
if (CT_SelectItem(items)) then
wait(2000 + random(500));

end else
clickContinue(true, true); // in case there are extra messages (GE) or we get one wrong

until(getSystemTime > t);

freeDTM(dtmPortal);
for i := 0 to high(items) do
freeDTMs(items.DTMs);

if (not result) then
addToSRLLog('CT_Solve: Certers solver timed out');
end;

Pure Wrecked

2012-05-19 05:54:13

I commented out the following:
{ if GetBankItemAmount(1, 1) < 29 then
begin
writeln('Not enough logs - Logout');
Logout;
TerminateScript;
end;
}

Because regardless of how many logs I had the script was terminating. By simply removing this part it allows the script to function, just make sure you have enough logs to burn.

Only just started running, will report any other bugs and ways around them as I meet them.

Justin

2012-05-19 06:12:10

From: zunkill
i go to start script and it fails because of this? ^

EDIT: i havnt touched anything i only enter my info and ran…


Whoops, my bad, requested a pull request to fix this issue.

Er1k

2012-05-19 06:46:14

From: Pure Wrecked
I commented out the following:
{ if GetBankItemAmount(1, 1) < 29 then
begin
writeln('Not enough logs - Logout');
Logout;
TerminateScript;
end;
}

Because regardless of how many logs I had the script was terminating. By simply removing this part it allows the script to function, just make sure you have enough logs to burn.

Only just started running, will report any other bugs and ways around them as I meet them.


Should be fixed and script is moved to new thread here -http://villavu.com/forum/showthread.php?t=82691

Harry

2012-05-19 14:11:44

Closed on request. See link above.