SRL Archive - RS3 Outdated / Broken Scripts

Bandit 0.15 Beta


WT-Fakawi

2012-03-26 18:33:00

As follow up of this thread, here is the first public beta of my Bandits Killer. I need feedback!


Bandit Beta


0.15

by WT-Fakawi


———————————————————————————————————————–

Description


This script kills bandits, eats and trades lobster at the bandit shop.
Uses God Armour Zamorak Cloak as lure.

———————————————————————————————————————–

Requirements



  • p2p.
  • Combat 70+ I guess. Wouldnt know really. I guess it works at any level.
  • Cash in your pouch to buy back lobster at the banditshop.
  • Plenty Noted Lobster (like +2k) in the lower right invslot(28). (See bugsnote in script)
  • A Zamorak Claok in your inventory. Be sure to NOT have any other capes on you!
  • Use armour at will. Script does not use potions.

———————————————————————————————————————–
Before you start

It is a dangereous place there. Make sure you have plenty unnoted lobsters, plenty note lobsters and the Zamorak Cloak inside your inventory or these hostile bandits will start bashing you right away.
Gently sneak up to the centre of the Bandit coffeeshop and hit run.


———————————————————————————————————————–
Plans

Stats with only gained XP vs Lobbies eaten.
Better lure protection. See desciption in script.

———————————————————————————————————————–

Feedback

If you give feedback, you may question my methodology of the lobster as restore. I have my reasoning and if you wish to drink prayer flasks(6) do so by all means, but I am not going to implement that!Please give me some progress as this is a beta release. I sincerely hope to reach 99 with this one, so use wisely.




some progress, (yes it eats a lot of lobsters!):


Simba Code:
[LEFT]<============== 0.27 Progress Report ===============>
Worked for 2 Hours, 47 Minutes and 1 Seconds
<============== 0.27 Progress Report ===============>
Name :
Number : 0
Ate : 298 Lobster
XP Gained : 150646
Worked for : 166 minutes.
Active : True
**********************************************
0 : = T. HP 78. W : 166 min. L: C R: . XP Gained = 150646

<============== 0.01 Progress Report ===============>
Worked for 3 Hours, 25 Minutes and 8 Seconds
<============== 0.01 Progress Report ===============>
Name :
Number : 0
Ate : 278 Lobster
XP Gained : 186344
Worked for : 205 minutes.
Active : True
**********************************************
0 : = T. HP 79. W : 205 min. L: C R: . XP Gained = 186344

<============== 0.01 Progress Report ===============>
Worked for 3 Hours, 49 Minutes and 23 Seconds
<============== 0.01 Progress Report ===============>
Name :
Number : 0
Ate : 213 Lobster
XP Gained : 208069
Worked for : 229 minutes.
Active : True
**********************************************
0 : = T. HP 80. W : 229 min. L: C R: . XP Gained = 208069

<============== 0.01 Progress Report ===============>
Worked for 3 Hours, 16 Minutes and 47 Seconds
<============== 0.01 Progress Report ===============>
Name :
Number : 0
Ate : 218 Lobster
XP Gained : 180292
Worked for : 196 minutes.
Active : True
**********************************************
0 : = T. HP 80. W : 196 min. L: Ten-Lost R: . XP Gained = 180292

<============== 0.01 Progress Report ===============>
Worked for 4 Hours, 2 Minutes and 24 Seconds
<============== 0.01 Progress Report ===============>
Name :
Number : 0
Ate : 363 Lobster
XP Gained : 242386
Worked for : 242 minutes.

<============== 0.01 Progress Report ===============>
Worked for 3 Hours, 54 Minutes and 0 Seconds
<============== 0.01 Progress Report ===============>
Name :
Number : 0
Ate : 104 Lobster
XP Gained : 171935
Worked for : 233 minutes.
Active : True
**********************************************


[/LEFT]

Screenie

This is the spot and this is what the inv should look like:


Enjoy!….and auto responsible!

Wyn

2012-03-26 18:33:47

First

Well take a look into

Jokester

2012-03-26 19:16:40

Is Bunyip support planned? Or any of the other spots?

WT-Fakawi

2012-03-26 19:18:43

From: Jokester
Is Bunyip support planned? Or any of the other spots?
I have no idea what you are talking about. It kills bandits and eats/sells/buys lobsters :smile:

Jokester

2012-03-26 19:22:37

From: WT-Fakawi
I have no idea what you are talking about. It kills bandits and eats/sells/buys lobsters :smile:


I'll take that as a hint to add it myself ;)

Imagine

2012-03-26 19:34:53

Ugh, & I had just finished writing my bandits script.
Only thing mine has over yours is Prayer Support, but the script is probably buggy as hell right about now :/

Oh well, grats, looks like it took a while to write :)

Kyle Undefined

2012-03-26 19:37:22

Nice work WT! Will use this later for sure! :)

TheWord

2012-03-26 21:57:34

Would you reccomend doing this or ghoulies?

begginer

2012-03-27 03:41:17

Nice xp. I'll try this. :)

P1nky

2012-03-27 03:43:51

Lovely, although maybe adding a feature for pures :D?

lol_monkyy

2012-03-27 22:33:22

Warning! You passed a wrong ys to a finder function: -2. That is below 0, thus out of bounds. Setting the value to 0 for now.
Couldnt assemble DDTM. Exiting script.
Successfully executed.
The following DTMs were not freed: [2]
The following bitmaps were not freed: [FullHitBar, 4, 5, 6]

hmm..

serexcety

2012-03-28 00:04:14

deaths occured?

WT-Fakawi

2012-03-28 02:31:51

@lol_Monkyy: Make sure you are standing in bandit cafe, and have the five cactus visible in main screen.

@serexcety: Nope. Wear a ring of life just to be sure :)

Brow

2012-03-28 19:01:43

Great script Fakawi - Working fine for me, just one thing… why does it heal when it's still got loads of health left lol… is there something I can change so it can eat at a different % of health or something? :) Thanks
-Brow

WT-Fakawi

2012-03-28 19:32:40

From: Brow
Great script Fakawi - Working fine for me, just one thing… why does it heal when it's still got loads of health left lol… is there something I can change so it can eat at a different % of health or something? :) Thanks
-Brow

Thanks for sharing Brow! I do that because I want stay as much 100% as I possibly can.

But if you want to change point-of-eat, goto CheckAndRestoreHealth and take a look at these 4 lines:

  MM_HP := GetMMLevels('health', HPColor);
SC_HP := Players[CurrentPlayer].Level[SKILL_HITPOINTS]*10;
If MM_HP = SC_HP then Begin Result := True; Exit; End;
If MM_HP < SC_HP - HighFood then
  1. MM_HP (MiniMap HP) is the numerical readout of your health, topright above the minimap.
  2. SC_HP (Screen HP) is the readout of your HP stats times 10. (I grab all stats at script startup)
  3. If those two numbers (MM_HP and SC_HP) are equal then all is fine and we can exit.
  4. But if the difference is larger than HighFood, -which in case of lobster is 120 (line 152 in SetupProps)- than it eats.

So if the difference is larger than 120, it will eat later.

tl;dr: Change Highfood to any number larger than 120.

Might I ask the combatlevel of your Player?, and do you have a progress for me?

umadm8?

2012-03-28 19:56:24

Mite as well afk with Guthans and ur autoclicker alching

WT-Fakawi

2012-03-28 20:06:34

From: umadm8?
Mite as well afk with Guthans
Off course not. With this script you can stay on this place for weeks, without having to repair your Guthan every six hours. I thought about swiching armour to guthan when damaged aot eating, but even that wasnt endless. This is.

Defence 86.4 currently.

yerrakhunt

2012-03-28 20:58:44

Great script! I assume you put a ton of effort into this. Well done.

FifthDimension

2012-03-28 21:37:56

Lol. Nice idea, but this spot is already crowded enough, the last thing people trying to legitly train is a handful of bots. And the lobsters idea made me lol irl. Pots/Protect Melee/Guthans support or the script won't be worth it. And why do you think you have to use a zamorak cloak and keep it in your inventory…you can use any god item you want, normally the item most people use is 1 arrow equipped in their arrows slot.

And I understand the idea behind lobsters letting you stay there for a while, but you have to be really high defence with good defence boosting gear, which pretty much wrecks the idea of pures training their or trying to maintain a high attack bonus.

Just some thoughts, but seriously if I see bots there that are eating lobsters I'm probably going to rage this script to hell and back lolz…

WT-Fakawi

2012-03-29 02:33:12

From: FifthDimension
Lol. Nice idea, but this spot is already crowded enough, the last thing people trying to legitly train is a handful of bots. And the lobsters idea made me lol irl. Pots/Protect Melee/Guthans support or the script won't be worth it. And why do you think you have to use a zamorak cloak and keep it in your inventory…you can use any god item you want, normally the item most people use is 1 arrow equipped in their arrows slot.

And I understand the idea behind lobsters letting you stay there for a while, but you have to be really high defence with good defence boosting gear, which pretty much wrecks the idea of pures training their or trying to maintain a high attack bonus.

Just some thoughts, but seriously if I see bots there that are eating lobsters I'm probably going to rage this script to hell and back lolz…


Thanks for your constructive criticism. For me Lobster selling/buying is actually much cheaper than Prayer Flasks(6) or even repairing Guthan. Also, there are quite a lot of legits that do exactly the same; buy/sell/eat. Besides, noone sees what I eat,no? And the spot is 12 hours a day completely deserted :) Only when the kids come home from school and tte USA wakes up, it gets kinda crowded. But even then, you wont notice me, because I do exactly like everybody else; I clam a spot (the best spot) and stick to it.

But, please tell me how I should commence :smile:

JuKKa

2012-03-29 04:20:25

I have noticed that (atleast me) I get 50k-60k exp per hour with the lower level bandits, alot of more then the higher leveled, I also eat only about 20 lobsters per hour.

Brow

2012-03-29 09:26:49

From: WT-Fakawi
Thanks for sharing Brow! I do that because I want stay as much 100% as I possibly can.

But if you want to change point-of-eat, goto CheckAndRestoreHealth and take a look at these 4 lines:

  MM_HP := GetMMLevels('health', HPColor);
SC_HP := Players[CurrentPlayer].Level[SKILL_HITPOINTS]*10;
If MM_HP = SC_HP then Begin Result := True; Exit; End;
If MM_HP < SC_HP - HighFood then
  1. MM_HP (MiniMap HP) is the numerical readout of your health, topright above the minimap.
  2. SC_HP (Screen HP) is the readout of your HP stats times 10. (I grab all stats at script startup)
  3. If those two numbers (MM_HP and SC_HP) are equal then all is fine and we can exit.
  4. But if the difference is larger than HighFood, -which in case of lobster is 120 (line 152 in SetupProps)- than it eats.

So if the difference is larger than 120, it will eat later.

tl;dr: Change Highfood to any number larger than 120.

Might I ask the combatlevel of your Player?, and do you have a progress for me?


I'll have to try and change this then… I'm using it on a second account at 125 combat with 99 att, 90 str & 92 def. My mains maxed lol :/

I'll have a proggy tonight for you :) Once again fantastic script it's much appreciated.
-Brow

FifthDimension

2012-03-29 09:28:15

From: WT-Fakawi
Thanks for your constructive criticism. For me Lobster selling/buying is actually much cheaper than Prayer Flasks(6) or even repairing Guthan. Also, there are quite a lot of legits that do exactly the same; buy/sell/eat. Besides, noone sees what I eat,no? And the spot is 12 hours a day completely deserted :) Only when the kids come home from school and tte USA wakes up, it gets kinda crowded. But even then, you wont notice me, because I do exactly like everybody else; I clam a spot (the best spot) and stick to it.

But, please tell me how I should commence :smile:


Welll, I'm semi rich, like 300m bank and I have a pure that I'm going to train at bandits in the future with super sets/pray renewals/pray pots flasks.

It would be gr8 to have support for that, because it's better xp, can be used for pures, and less chance of dying. But short term I'd say tell people to wield a god arrow because it frees up all their other inventory slots, and support for switching to guthans spear would be nice for mains who won't get hit much in the first place. Again just thought idk how complicated some of this stuff will be.

WT-Fakawi

2012-03-29 09:38:40

From: FifthDimension
Welll, I'm semi rich, like 300m bank and I have a pure that I'm going to train at bandits in the future with super sets/pray renewals/pray pots flasks.

It would be gr8 to have support for that, because it's better xp, can be used for pures, and less chance of dying. But short term I'd say tell people to wield a god arrow because it frees up all their other inventory slots, and support for switching to guthans spear would be nice for mains who won't get hit much in the first place. Again just thought idk how complicated some of this stuff will be.


If you could briefly describe the procedures, for what "pure" and what is needed I might try. But remember I have little understanding of runescape because I never play the game, so be patient :smile:

one1988

2012-03-29 09:40:39

Just wondering does anyone know how much it is for chinning xp per per hour

Olly

2012-03-29 09:51:18

From: one1988
Just wondering does anyone know how much it is for chinning xp per per hour


It wouldn't be worth it, your better off doing it legit down in ape atoll.

WT-Fakawi

2012-03-29 10:46:22

From: FifthDimension
….to wield a god arrow because it frees up all their other inventory slots
That is a good idea and very simple to implement because with my system I only need to know the exact name of the arrow, and the armourslot to unwield it.


Guthan is also not very difficult to implement anymore, since the framework is running quite smoothly, and as I mentioned above, I only need their names, no bitmaps nor dtms required. That also explains why my script takes a long time to startup and sometimes heavily rotates the cam, because it grabs the correct uptext and associate it with the invobject.

MausaufTisch

2012-03-29 10:47:45

i would love you if you add prayer support, so i can use it on my pure :)

LemonHaze

2012-03-29 10:53:03

nice, around 55k exp/hr with cb stats 75+ not bad at all!

WT-Fakawi

2012-03-29 10:54:40

From: MausaufTisch
i would love you if you add prayer support, so i can use it on my pure :)


You mean: have noted prayer flasks(6) in the inv, drink when prayer exceeds a level and sell/buy at bandits when running out of flasks?

one1988

2012-03-29 11:30:25

From: WT-Fakawi
You mean: have noted prayer flasks(6) in the inv, drink when prayer exceeds a level and sell/buy at bandits when running out of flasks?


Yeah prayer renewal and praye flasks would be a good implementation 5 prayer renewal flasks and the rest prayer flasks.

nathan lad

2012-03-29 15:25:32

From: WT-Fakawi
If you could briefly describe the procedures, for what "pure" and what is needed I might try. But remember I have little understanding of runescape because I never play the game, so be patient :smile:


pure support is simple. just need to code for the prayer points remaining to be read and then to drink thru ure invy of prayer pots.

also like with the lobsters u cud unnote prayer pots at the shop for unlimited stays too.

MausaufTisch

2012-03-29 15:42:42

From: nathan lad
pure support is simple. just need to code for the prayer points remaining to be read and then to drink thru ure invy of prayer pots.

also like with the lobsters u cud unnote prayer pots at the shop for unlimited stays too.



yes. please add it! :) :)

pigggy

2012-03-29 19:08:26

yea add prayer pots please :D and super str pots :P

i3egoHan

2012-03-30 08:41:03

WT great job!

Im in the same boat as you since i dont really play any more, Not sure how long prayer renewel lasts.

Suggestions for pure mode.

drink prayer renewnel (if they have them) every random 10-30 minutes? (someone clarify time..)

nathan lad

2012-03-30 18:43:51

yeah also atm this isnt range compatible cos we have to use a cloak over an accumulator, perhaps adding zamorak coif to the set up or just remove the puttin on and off of the zammy item

Harry

2012-03-30 19:25:01

Why use a blind click for returning to the bar? Use a simple DTM of the yellow dots that never move (the guys sitting down). Works pretty clean in a simple one I just made ('mQwAAAHicY2ZgYMhlYmAoBuJSIA4F8h2BOAuIf/7nY/j0jQdM8wP5MMyIhIEAAFKCCI8=', if you want to borrow it for testing), then mouse(xxx+2,yyy-2,5,5,true), else do the blindclick if that fails.

Seems to work pretty good :D Nice work.

Edit: script needs an InPin at the shop. Tries to sell noted stuff but fails and logs out due to that.

fretje12

2012-03-30 21:37:14

nice release, a lot of peoeple need it.

WT-Fakawi

2012-03-31 04:46:12

@Harry: Blind click doesn't really matter as immideately after the blnd click it callibrates around the 5 cactus(sp) DDTM. InPin will be in next release definately. Sry, never use pin :(

@Nathan: No it is not compatible with range. Currently only the method described can be used. I can make it more versatile, but for that I need to know exactly proceduralwise how to implement those other methods.

Almost Defence 88 now.

<==============  0.15 Progress Report ===============>
Worked for 4 Hours, 20 Minutes and 12 Seconds
<============== 0.15 Progress Report ===============>
Name :
Number : 0
Ate : 277 Lobster
XP Gained : 238293
Worked for : 260 minutes.
Active : True
**********************************************
0 : = T. HP 82. W : 260 min. L: C R: . XP
<==============  0.15 Progress Report ===============>
Worked for 4 Hours, 14 Minutes and 23 Seconds
<============== 0.15 Progress Report ===============>
Name :
Number : 0
Ate : 238 Lobster
XP Gained : 235673
Worked for : 250 minutes.
Active : True
**********************************************
0 : = T. HP 83. W : 250 min. L: C R: . XP Gained = 235673

siuman101

2012-03-31 07:11:03

Welcome to Bandit 0.15
Current player:
Warning! You passed a wrong ys to a finder function: -2. That is below 0, thus out of bounds. Setting the value to 0 for now.
Couldnt assemble DDTM. Exiting script.
Successfully executed.
The following DTMs were not freed: [2]
The following bitmaps were not freed: [FullHitBar, 4, 5, 6]
i don't know why i got this problem once i start the bot. Is there any setting problem?
More detailed information is that i stand where the demo picture stand which is at the font page.

Harry

2012-03-31 07:37:54

Blind click does matter to me, since I hate blind clicks ;) Even if it calibrates it's such low randomness it doesn't feel safe to me.

BTW I died last night using this, not sure why. Thankfully I was using a ring of life, so I didn't lose anything. Protip to anyone to use that ring, it's worth it.

Also perhaps consider using MMToMS or similar with the NPC dots in your object finding. Would make it much more accurate, especially in regards to the shop keeper which sometimes will not click inside the tent fully and will break the script.

It also tries to eat your noted lobsters in last slot if you're at the shop keeper and ran out of lobsters in the rest of your inv.

BTW, you have SRL stats disabled, it'd be neat to have those reenabled in it and see how many of those people "AFK" at bandits are using this script :)

Other than these stuff, it seems to be flawless :D So great work.

siuman101

2012-03-31 08:34:58

From: siuman101
Welcome to Bandit 0.15
Current player:
Warning! You passed a wrong ys to a finder function: -2. That is below 0, thus out of bounds. Setting the value to 0 for now.
Couldnt assemble DDTM. Exiting script.
Successfully executed.
The following DTMs were not freed: [2]
The following bitmaps were not freed: [FullHitBar, 4, 5, 6]
i don't know why i got this problem once i start the bot. Is there any setting problem?
More detailed information is that i stand where the demo picture stand which is at the font page.


How can you run that lol… i still can't use the bot cause of the above problem.

lol_monkyy

2012-03-31 11:26:49

I managed to run the bot, I'll post a proggie soon. It eats lobbies way too fast but other then that its great.

conro

2012-03-31 11:52:02

So could I wield a god arrow instead of a cloak without any problems?

illuminatiswag

2012-03-31 12:05:00

Hey Fakawi any chance you can add prayer pot support ?

Brow

2012-04-01 17:08:25

A small proggy here for ya… a bit later than promised but meh :)

Number : 0
Ate : 73 Lobster
XP Gained : 99866
Worked for : 100 minutes.
Active : True

I'll get a better one later on :) Once again great script but along with a few others in this thread I wouldn't mind prayer support whether it be prayer renewal OR normal prayer pots :D Thanks
-Brow

xGatmann

2012-04-07 01:43:36

Has anyone died using this yet?

Gestapo

2012-04-07 03:05:13

Warning! You passed a wrong ys to a finder function: -2. That is below 0, thus out of bounds. Setting the value to 0 for now.
COULDNT ASSEMBLE ROCK. PLACE YOUR PLAYER!. EXITING
Successfully executed.
The following bitmaps were not freed: [FullHitBar, 4, 5, 6]


i am in the same spot as you are.

siuman101

2012-04-08 19:25:44

So, no 1 is gonna fix this script?? ah!! what a good script wasted

Hitman1531

2012-04-08 20:38:11

Looks good.

WT-Fakawi

2012-04-10 16:58:28

From: siuman101
So, no 1 is gonna fix this script?? ah!! what a good script wasted


Still works. Who told you it didn't? Ts.

i3egoHan

2012-04-12 08:15:53

Just a heads up, Not sure if it still works but the shop interfaces changed yesterday.


EDIT:

Just a matter of changing cords, I know WT is busy (like all of us)

so heres a good fix..

Find line which contains this
// DIRTY! Yet Effective...Could have used stored color of InvItem! Too Lazy

And replace whole line with


lobDTM := DTMFromString('mQwAAAHicY2ZgYDgKxBeB+CQQTwDiFiCeBsR746QZzqTJMqwIkWAQBPJhmBEJAwEAXH8H3A==');
if(NOT FindDTM(lobDTM, x, y, MSX1, MSY1, MSX2, MSY2)) then
begin
x := 197;
y := 145;
end;
Mouse(x, y, 6, 6, False); // DIRTY! Yet Effective...Could have used stored color of InvItem! Too Lazy

Will try/should use the DTM if not will use cords.. (in case someone sells a diffrent item to store)

b3asts

2012-04-12 11:16:29

here are a few suggestions on adding, but i really like what you've started
1. Support prayer potion buying, so pures ect can use it… It would trade and buy back prayer pots and just pray melee the whole time

tomiakaz

2012-04-19 16:04:29

I don't know why, but when it comes to the shop, he just trades to shopkeeper, and stands there. Nothing more.. :/

Brazzers

2012-05-12 12:32:04

From: tomiakaz
I don't know why, but when it comes to the shop, he just trades to shopkeeper, and stands there. Nothing more.. :/


let me just direct you to the post 2 above your own

"shop interfaces changed yesterday" (as of day of post)

since the interface update nobody has updated the script

Sigma

2012-05-16 21:13:28

I plan to re-vamp this script, but I need to ask him for permission first of course. So I'll keep you posted for his response :P

rebeltjeh

2012-05-17 08:04:25

would be cool, Id love to use it for training my ranged :)

WT-Fakawi

2012-05-17 08:19:21

Bandit Shop has gotten a big overhaul. That's exactly the part of the script that is rather crappy. I scan for the Bandit Shop Screen, which no longer is found, so the program just stops. All other stuff like eating/fighting/positioning still works.

strdatmage

2012-05-17 22:01:28

Keep getting a MSVCR100D.dll Missing error or some shit.

rebeltjeh

2012-05-22 03:46:46

replacing food with renewals / emergency ppots (iflower than x prayerpoints )would make it possible to stay there for long times without having to go to the shop

But that would be a lot of work ofcourse, just a suggestion.

K1ller

2012-05-26 01:10:08

Hey just wondering if ur gonna be updating this script i really liked it but it keeps getting stuck at the shop thx to the update was wondering if its gonna go anywhere?

Bandolier

2012-05-26 16:26:34

From: strdatmage
Keep getting a MSVCR100D.dll Missing error or some shit.

This is a client-side error, and has nothing to do with the script. Please refrain from posting client-side errors in script threads. Try this solution for your problem: http://villavu.com/forum/showpost.php?p=851272&postcount=322

@OP Are you planning on making it support prayer potions, seeing I want to use it on my 30-defence turmoil pure?

newy1

2012-06-13 21:54:37

From: K1ller
Hey just wondering if ur gonna be updating this script i really liked it but it keeps getting stuck at the shop thx to the update was wondering if its gonna go anywhere?


^^
Please?

iraqownz

2012-07-01 13:40:46

hello :)

as i was reading the posts in here, i saw that a few members are asking about, a fix, in relate to the shop problem, and i decided to take a look at it.

the problem is that, the colors of the shop got changed. but i don't really understand why "i3egoHan" tried to change the "buylobsters coordinates" as the problem emerge at "findshopkeeper, and the script keep searching for higher tolerance.

the reason of why, the script get stuck, in the findshopkeeper, is because this line
Repeat
Wait(1000);
Until BanditScreen or (GetSystemTime > BTime + 15000)
if BanditScreen then


you see, that the "BanditScreen" uses color, which are the colors of the shop. and as the shop interface got changed, the script cannot find the color, of the "banditscreen" which is the "shop" itself.

the heart of the problem, is this line.
Repeat

the script will not move to the next step, as long as the "repeat" is standing in the function "findshopkeeper," because, the script will continue or keep repeating, finding the "banditscreen" which are the colors of the shop, that got changed.

changing in the "buylobsters" will not solve the problem, as the "lobstercycle" is structured like this

if FindShopKeeper then
if HandleGoods then
if GoBack then


you see, the first command, that the script will follow, according to the "code" above me, is this line "if FindShopKeeper then" the second command is "if HandleGoods then" and the third command is "if GoBack then"

the Function, that runs "buylobsters" is this Function "HandleGoods"

so, there is no point modifying, the "buylobsters" as long, as the script keep getting stuck in "FindShopKeeper" and cannot complete the commands, of the "findshopkeeper" Function.

i apologize for my bad English. i am from Denmark, and not that good at english.

to i3egoHan
you are a high respected SRL member according to me, and you know much more about scripting than me. and the reason of why, i explain all this, is not because of you. i explain all this, because, of those who want to learn more about scripting, and how they should solve problems like this. I apologize if the explanation bothers you

please do not blame me, if i made any mistakes. i am very new at scripting. i started get interest in scripting for about a week ago, and began to try it myself. if i made any mistakes, then please tell me them, and i apologize

a quick solution to the shop problem

open the script, and search for "findshopkeeper"

then replace, the whole code, with this code.

Function FindShopKeeper:Boolean;
var {Dmx, Dmy, }Ax, Ay, x, y, z, STime, ETime, BTime, tol: integer;
ShopKeeper :array[1..4] of integer;
ClickOnce:Boolean;
begin
ShopKeeper[1] := 15262187;
ShopKeeper[2] := 14803691;
ShopKeeper[3] := 13950685;
ShopKeeper[4] := 14935534;
STime := GetSystemTime;
tol := 13;
ClickOnce := True;
repeat // I like this loop. Very forgiving.
CheckAndRestoreHealth;
inc(tol);
Writeln('Shopkeeper tol = ' + IntToStr(tol));
if tol > 100 then
begin
Writeln('coulndt find shopkeeper');
Result := False;
Exit;
end;
for x := 1 to 4 do
begin
if not LoggedIn then Exit;
Ax := MSCx;
Ay := MScy;
ETime := GetSystemTime;
Wait(100);
If WTFindObjTPAEx(Ax, Ay, ShopKeeper[x], tol, 0, 10, 40, 100, MSx1, MSy1, MSx2, MSy2, ['shop']) Then //Talk-to
begin
Mouse(Ax, Ay, 0, 0, False);
FtWait(4);
if Chooseoption('Trade') then
begin
FFlag(0);
BTime := GetSystemTime;
begin
Result := True;
Exit;
end
Break;
end
end;
end;
Wait(100);
if ((ETime-STime > 50000) and (ClickOnce = True)) then
begin
if FindSymbol(y, z, 'store') then
begin
ClickOnce := False;
MFF(y, z, 0, -1);
FFlag(0);
end
end;
until(ETime-STime > 90000);
Result := False;
end;

iraqownz

2012-07-01 13:48:59

sorry "WT-Fakawi" didn't saw that you already said, what the problem is. well, this is your script, and i thank you very much, for creating this amazing script. i myself, use it everyday, and this is one of the best script, i have tried yet.