View Full Version : a way to stop looking for chatmessage ?
sjlou
12-09-2011, 04:40 PM
titel says it all
function VTele: boolean;
var
spell: tbox;
P: TPointArray;
begin
result := false;
if FindBlackChatMessage('use') then Exit; /////////// HERE
GameTab(tab_Magic);
if SpellAvailable(spell, 'varrock teleport') then
begin
writeln('using varrock teleport');
MouseBox(spell.x1, spell.y1, spell.x2, spell.y2, 1);
end;
if FindSymbolsMulti(P, ['store','water','quest']) then
begin
wait(6000);
writeln('@ varrock ');
Inc(tele);
result := true;
end
end;
procedure TeleOut;
var
x,y :integer;
label start;
begin
start:
if (not Vtele)then
begin
BA := DTMFromString('mWAAAAHicY2FgYOhiYWDog+JJQHwGKHYOiE 9AMbvAeRTMDxRDxoxoGAQAHa4JTw==');
if FindDTM(BA,x,y, MMX1, MMY1, MMX2, MMY2) then
begin
// Mouse(x,y,5,5,true);
MouseFlag(x,y,5,5,5);
freedtm(ba);
end;
goto
start;
end;
end;
'Toxin
12-09-2011, 07:24 PM
Heheheheheh purrrrrrrfect :stirthepot:
I need help with something like this for checking to see if an ore was mined. Would using FindBlackChatMessage or another method be a good way of detecting than an ore was mined?
weequ
12-09-2011, 07:42 PM
I didn't understand your problem. What's wrong with using blackchatmessage?
Heheheheheh purrrrrrrfect :stirthepot:
I need help with something like this for checking to see if an ore was mined. Would using FindBlackChatMessage or another method be a good way of detecting than an ore was mined?Well if someone steals your rock you would just continue mining empty rock. You could make it find ores nearby and if none is found it would change rock. Alternatively you could try checking out animating.scar or something like that.
Failure
12-09-2011, 08:11 PM
Heheheheheh purrrrrrrfect :stirthepot:
I need help with something like this for checking to see if an ore was mined. Would using FindBlackChatMessage or another method be a good way of detecting than an ore was mined?
A simple method I used in a RSPS server was, open the expierence thingy, and get the color as soon you get exp. :p
sjlou
12-09-2011, 11:33 PM
I didn't understand your problem. What's wrong with using blackchatmessage?
Well if someone steals your rock you would just continue mining empty rock. You could make it find ores nearby and if none is found it would change rock. Alternatively you could try checking out animating.scar or something like that.
nothings wrong with it..
lets say im standing in wildy 20+ and trying to teleport, and get a message saying "you can't use teleport blabla ect ect" then i walk down and try to teleport again, but then the blackchatmessage is still saying "you can't use teleport blabla " and exiting with out trying to teleport, thats my problem
PatDuffy
12-09-2011, 11:41 PM
I actually encountered a problem like this while checking to see if I was out of summoning special move points for my FruitFall script. The way I got around it was by only checking the last line (line 8), and by creating a procedure to break the chat (titled it BreakChat :p) that examines a random object in the inventory or on the main-screen(of course had to pre-set what objects with a simple function using TPA's).
if NoPoints or InSide then
begin
Wait(1000+Random(5000));
BreakChat;
end;
If the last line was already 'Your special move bar'(chat to determine if I was out of points) then NoPoints would return True, and BreakChat; would be called so the current last chat message would not affect the FindChat function.
sjlou
12-09-2011, 11:51 PM
I actually encountered a problem like this while checking to see if I was out of summoning special move points for my FruitFall script. The way I got around it was by only checking the last line (line 8), and by creating a procedure to break the chat (titled it BreakChat :p) that examines a random object in the inventory or on the main-screen(of course had to pre-set what objects with a simple function using TPA's).
if NoPoints or InSide then
begin
Wait(1000+Random(5000));
BreakChat;
end;
If the last line was already 'Your special move bar'(chat to determine if I was out of points) then NoPoints would return True, and BreakChat; would be called so the current last chat message would not affect the FindChat function.
cool,
ill try that,thanks for the tip !!
anymore tips ??
grats
12-10-2011, 12:58 AM
I have it go to a procedure that randomizes: examineinv, pressing tab.. and more to come hopefully
these put new messages on the screen so it's just a silly fix but it works
PatDuffy
12-10-2011, 01:17 AM
Yeap, that's pretty much how I saw it too. I had no idea how else to get around it
grats
12-10-2011, 01:23 AM
yea I'm still wondering how to do a vk_alt (alt doesn't work) like vk_tab
because "pretending" to alt tab to get the chat to "break" as you said is an excellent, realistic thing.. imo, because I do alt tab frequently to switch programs
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.