Log in

View Full Version : FindNormalRandoms dosn't find talking randoms?



footballjds
12-26-2007, 07:40 PM
why does this Script not find talking randoms? it finds other ones, ie it found and solved demon... to test it i set the nickname to he, and typed in the. and it didn't find it, any clues? please look at script b4 answer thanks!


program HighAlcher;
{.include srl/srl.scar}
{.include SRL/SRL/skill/Magic.scar}
var
StopAmount : integer;

const
Your_SRL_ID = ''; // don't have this? go to:
Your_SRL_Pass = ''; // http://www.stats.srl-forums.com/
//Note the above is uneeded but very nice!

////////////////////////////////////////////////////////////////////////////////
procedure SetupPlayers;
begin
NumberOfPlayers(1);//Don't Change This
Players[0].Nick := 'he';//Nick Name
Players[0].Integers[0] := 21;//Number Of Alchs to do
end;
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
procedure CastHighAlch;
begin
CastSpell(35);
wait(10+random(50));
end;
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
procedure OnLongbows;
begin
wait(30+random(10));
if(IsUpTextMultiCustom(['longbow', 'long', 'ong', 'bow', 'ew', 'apl', 'agi', 'ngb'])) then
begin
MouseBox(694, 324, 716, 348, True);
end;
end;
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
procedure AntiBan;
begin
case random(500) of
0, 2, 3: Begin
KeyDown(VK_Down);
Wait(random(1000));
KeyUp(VK_Down);
end;
4, 5, 6: Begin
KeyDown(VK_Left);
Wait(random(1000));
KeyUp(VK_Left);
end;
7, 8, 9: Begin
KeyDown(VK_Right);
Wait(random(1000));
KeyUp(VK_Right);
end;
10, 11, 12: Begin
KeyDown(VK_Up);
KeyDown(VK_Left);
Wait(random(1000));
KeyUp(VK_Up);
Wait(random(800));
KeyUp(VK_Left);
end;
13: Begin
HoverSkill('magic', False);
end;
14, 15: Begin
PickUpMouse;
end;
16: Begin
AlmostLogout;
end;
17, 18: Begin
BoredHuman;
end;
end;
end;
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
procedure MainLoop;
var
DoneAmount : integer;
begin
repeat
StopAmount := (Players[0].integers[0]);
CastHighAlch;
FindNormalRandoms;
OnLongbows;
If FindFight Then
Begin
RunAwayDirection('W');
Wait(5000+random(3000));
RunAwayDirection('E');
Setrun(false);
end;
wait(1050+random(300));
wait(1050+random(300));
AntiBan;
DoneAmount := DoneAmount +1;
until(DoneAmount >= StopAmount)
end;
////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////
begin
MouseSpeed := 13;
If FindRs Then
begin
ActivateClient;
end else
begin
Writeln('No RS');
TerminateScript;
end;
SetupSRL;
SetupPlayers;
MainLoop;
end.
////////////////////////////////////////////////////////////////////////////////

Method
12-26-2007, 08:18 PM
You either need to start logged out and use LoginPlayer, or put the following at the end of your DeclarePlayers procedure:

NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);

It's not recognizing the talking text because you haven't added that little piece of code. Once you add the snippet, it should work fine.

osmm
12-26-2007, 08:22 PM
Also, you are not suspose to have a nickname that is a word. So for the user
Iauto123

DONT use: auto

DO use: uto

Otherwise it would be responding to anyone that said auto, automatic, autorph, autoretaliate, and so on.

n3ss3s
12-26-2007, 08:46 PM
osmm, you haven't noticed that "auto" contains "uto", so does "automatic" etc -.-

footballjds
12-26-2007, 09:18 PM
You either need to start logged out and use LoginPlayer, or put the following at the end of your DeclarePlayers procedure:

NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);

It's not recognizing the talking text because you haven't added that little piece of code. Once you add the snippet, it should work fine.

Thanks, il add that!


osmm, you haven't noticed that "auto" contains "uto", so does "automatic" etc -.-lol... so wtf am i suposed to do when my char name were... x0 the one? but its not, it is a real persons name i found on highscores, but it aint mine, but if it were? wtf do i put for nick? ty!

n3ss3s
12-26-2007, 09:24 PM
Wtf are you now talking about?



Players[0].Name := 'Username';
Players[0].Pass := 'Password';
Players[0].Nick := 'ser';
Players[0].Active := True;

A proper player array with the min vars.

Nick is a part of the Name.

osmm
12-26-2007, 09:32 PM
lol yea didn't notice that :p. I was just tryin to come up with an example. Anyways to answer footballjds's question, for x0 the one, there is no nickname. You would have to make a new acount to auto on. Or you can just auto with the nickname "he" except make sure you aren't using scripts with a responder, also it will be just a little laggy cause the FindNormalRandoms is gona check for randoms everytime it sees "he". OR you could learn how to script and make a custom script fit for your crazzy nickname ;).

footballjds
12-26-2007, 09:35 PM
lol yea didn't notice that :p. I was just tryin to come up with an example. Anyways to answer footballjds's question, for x0 the one, there is no nickname. You would have to make a new acount to auto on. Or you can just auto with the nickname "he" except make sure you aren't using scripts with a responder, also it will be just a little laggy cause the FindNormalRandoms is gona check for randoms everytime it sees "he". OR you could learn how to script and make a custom script fit for your crazzy nickname ;).

thanks, but i cant just dump my account.... but i think ne is better than he anyhow... and i am learning how to script, ive writted a high alcher and a any longbow stringer, the stringer is flawless so far... but how could i make a script to fit my "crazzy" usr?

BTW jackex, x0 the one is not my account, nor ever was.
(just an account im using for an example):duh:

n3ss3s
12-26-2007, 09:36 PM
Wtf, just make the Nick part of your name, only thing that matters.

footballjds
12-26-2007, 09:38 PM
Wtf, just make the Nick part of your name, only thing that matters.

ok, ty, don't get upset or anything.
it finds it when i type in X0 the one... but the random event says X0 The One and the T is to close to the he for it to find to he iguess?