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
And replace whole line withCode:// 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)Code: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
Last edited by i3egoHan; 04-12-2012 at 12:32 PM.
8+ Years:C++, PICBASIC(ASM), Java, PHP, Perl, AHK
My last hobby (yes i was the dev):Electronic PIC Development And HERE
SMARTManager 0.91 (Script management/6 Hour limit fix): View thread here
Like my work? Help me out: http://villavu.com/forum/showthread.php?p=984147#
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
I don't know why, but when it comes to the shop, he just trades to shopkeeper, and stands there. Nothing more.. :/
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
would be cool, Id love to use it for training my ranged![]()
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.
SRL is a Library of routines made by the SRL community written for the Program Simba.We produce Scripts for the game Runescape.
Keep getting a MSVCR100D.dll Missing error or some shit.
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.
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?
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.ph...&postcount=322
@OP Are you planning on making it support prayer potions, seeing I want to use it on my 30-defence turmoil pure?
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;
Last edited by iraqownz; 07-01-2012 at 05:56 PM.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)