SRL Archive - First Scripts

First Script!


Drakan

2008-05-05 20:13:17

Hey guys this is my first ever script so don't laugh :P Its a simple auto talker with nice little waits and stuff. Its pretty good IMO for my first one. I use it to sell stuff with in banks and crap. Well umm please critique me on it =]

BTW its set up for smart =]

{______________________________________
/ Cheese's TalkSmart \
|--------------------------------------|
|Author: The[Cheese] |
| |
|SRL Version: 415 |
| |
|Description: My First Script! Talk |
| smart with my talker! Random |
| timing makes it much harder to |
| detect! |
| |
|Usage: Fill out the constants, then |
| go! Its S.M.A.R.T. ready! F2 to |
| stop the script. |
\______________________________________/
}

program TalkSmart;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/srl.scar}

const
line1='Hello guys! Im fat!'; //First line of text that will be displayed.
line2='I like cheese!'; //Second line of text that will be displayed. If you want only one,
//then make both lines the same thing.
SmartWorld = 35; // World that S.M.A.R.T. should load.
Signed = true; // Load signed or unsigned?

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name :=''; //Name
Players[0].Pass :=''; //Pass
Players[0].Nick :=''; //Nickname 3 - 4 Letter's of character's name.
Players[0].Active :=true; //Dont change this!
end;

procedure TalkSmartly;
begin
TypeSend(line1);
wait(100 + Random(1000));
TypeSend(line2);
wait(100 + Random(1000));
end;

procedure SetupSmart;
begin
SmartSetupEx(SmartWorld, false, Signed);
ClearDebug;
WriteLn('Setting up Smart... Please Hold...');
Wait(10000 + random(5000));
SetTargetDC(SmartGetDC);
While not(SmartReady) do Wait(100);
end;

begin
SetupSRL;
SetupSmart;
DeclarePlayers;
LoginPlayer;
wait(6000);
repeat
TalkSmartly;
until(isFKeyDown(2));
end.

EDIT: Attached a smaller, S.M.A.R.T. free version =]

noidea

2008-05-05 20:24:34

Yay, first post!!! Well, it's a first time script so I wont be critical. It looks ok and I like the 'Talk Smartly' as a name for the procedure. It is also good that you included the User, Pass, Nick, Declare players. I am honestly not going to say anything about the S.M.A.R.T… (I hate S.M.A.R.T.) You should include it as an attachment instead of the *
[SCAR] Lasty you should make a version that doesn't include S.M.A.R.T. for the noobs that cannot romove it them selves. 

Other than that good job ;)

noidea

Drakan

2008-05-05 20:26:31

Thanks I'll do that now =]


why do you hate smart?

Nava2

2008-05-06 16:18:12

Hm… I should try and use this because if i'm not mistaken; SMART is useless on an autotalker because it blocks your chat messages and clicks while it runs?

Nava2

alberttai

2008-05-06 16:53:12

From: Nava2
Hm… I should try and use this because if i'm not mistaken; SMART is useless on an autotalker because it blocks your chat messages and clicks while it runs?

Nava2


Agreed ^

Nava2

2008-05-06 17:11:08

From: alberttai
Agreed ^


So… I am right?

Nava2

Runescapian321

2008-05-06 17:17:26

From: Nava2
SMART is useless on an autotalker because it blocks your chat messages and clicks while it runs?

Nava2


Kind of. Unless the script trades for you too, it is kind of pointless to run an autotalker (All it'd do is talk, and you wouldn't be able to actually trade, assuming that you'd use this to advertise buying/selling ofc :p). You could unblock it if you wanted to trade, but IMO it's just better to use the regular client

Back ontopic…

It's a nice script, but everyone knows autotalkers are simple :p Impress us with a pwnage powerminer/chopper/fisher xD

Drakan

2008-05-06 17:21:00

how bout with a VEM and BANKER! :P Im workin on that now! I actualy got it to walk to the mine so far. Its pretttttty nice too :D

EDIT: So far I got walking to and from the mine almost flawless! I'm really getting the hang of radial walking =]

Nava2

2008-05-06 22:04:19

From: The[Cheese]
how bout with a VEM and BANKER! :P Im workin on that now! I actualy got it to walk to the mine so far. Its pretttttty nice too :D

EDIT: So far I got walking to and from the mine almost flawless! I'm really getting the hang of radial walking =]


He said original :rolleyes:.

We have lots of those haha. Try doing something different! :)

Nava2

Drakan

2008-05-06 22:32:10

Umm where did he say original? :P

Runescapian321

2008-05-07 07:13:28

I was thinking that too:p ^


Nice to see a new member putting an effort into scripting :)

Drakan

2008-05-07 15:49:09

Thanks runescapian =] I've really been looking into DTM's and DDTM's and i've learned quite a lot. I'm working on making a DDTM to click inside the mine instead of using a symbol. This way I can get to whatever rocks i need (aka iron, copper, tin… w.e :P) I read this is the way that I think fawk walks to his goblin killer, with those 3 rocks. ANyway suggestions are welcomed =]

Nava2

2008-05-07 17:59:26

From: Runescapian
I was thinking that too:p ^


Nice to see a new member putting an effort into scripting :)


Agreed. Now post help on my thread!!!

and back on topic…

A varrok east miner shows skill no doubt, just its far from original which is always a plus when you apply… apparently :)

Nava2

Drakan

2008-05-07 19:38:05

Well I got something much bigger for when I apply ;)

Anyway I'm pretty proud of myself right now. I figured out how to make a DDTM, and the first one I made worked on the first try. I'm REALLY close to near perfect walking. I just have one or two more DDTM's to make.

Heres some questions though:

Is it safe to use more than 1 DDTM?(Answered)
Do I need to release DDTM's like I free bmps?(Answered)
Will it lag if I have more DDTM's even if I release them when I'm done using them?

Runescapian321

2008-05-08 07:11:43

As long as you release them, I think you'll be OK ;)

Drakan

2008-05-08 15:38:43

Okay :P I just want to be sure. =]

Drakan

2008-05-08 18:12:50

Update on how my new miner is comming:

Got nearly all of the walking done and perfected. Only death walk to do. Learned about TPA's and how to use FindColorSpiralTolerance. I made a rock finder and clicker for that. About half of the mining procedure is done. Player setup is almost done. Things are comming along great and I'm learning a lot!

noidea

2008-05-12 16:31:21

I hate SMART for two reasons… Just incase some thing happens, for example, you put a capital in your nick name and the script will not find randoms. You have to pause the script, and 'un-block' SMART. Second, on my computer it is very laggy and bumps the CPU work up to 100% Also if some one knows a way of preventing the outragous amout of lagg pm me please.
thanks
noidea

Harry

2008-05-12 16:32:49

From: noidea
I hate SMART for two reasons… Just incase some thing happens, for example, you put a capital in your nick name and the script will not find randoms. You have to pause the script, and 'un-block' SMART. Second, on my computer it is very laggy and bumps the CPU work up to 100% Also if some one knows a way of preventing the outragous amout of lagg pm me please.
thanks
noidea


Lol, the NickName part is not S.M.A.R.T.'s fault. It does that on normal RS too…

And the CPU issue is just Jagex's game. Set SCAR.exe as "High" priority.

Jimmy5410

2008-05-13 19:01:40

Nice autotalker, but remove the S.M.A.R.T. Please 8/10

tony727

2008-05-14 16:22:27

how much time do ppl spend
to work on scripts?
i was wondering so
if i have time i wana make one myself

noidea

2008-05-14 20:01:11

I know it I set it to High priority it's fine, except I cannot do any thing else on my computer at all. I also know that the nick name is not smarts fault, I was just using as an example… Mabe that my comp was made a few years ago has to do with it lol. 512mb RAM? lol
Sorry If I sounded rude HY, it wasnt meant to be ;)