SRL Archive - RS Scripts

My First Script Auto-Talker Accepts Trades


rscheater13

2007-01-27 15:31:06

This is my first script and I made the all popular auto-talker. But this one will accept trades, i hope. Feedback is greatly appreciated. I want to know how i can make it better and fix something if anything is wrong with it.

Update V1.1:
This is now a SRL script so any mod that feels the urge to move this script, please don't criticize me because this script originally wasn't SRL.

Update V1.2:
Now has a main loop and everything that i could find is capitalized. JAD, please make sure i didn't miss anything, or someone else…

hakeris15

2007-01-31 06:35:52

nice script for first time i didint trai it but then i have time i tray it :) nice lines :)

unknownx22

2007-02-02 21:24:28

This SRL?

rscheater13

2007-02-04 11:31:19

Thanks hakeris15!
And no, this isn't an SRL script, yet….

diamondhero5

2007-02-18 14:36:22

I like it, but u should make it so i can talk and accept trades at same time.
Also on line 25 can u explaini to me about the x,y( i mean using them for cordinates)?
Thank you.

Check out my auto talker at:
http://www.villavu.com/forum/showthread.php?t=6101

rscheater13

2007-02-21 20:42:31

diamondhero5, I'm guessing you know very little about scripting when you ask about x and y. X and y are variables, i declared them variables under var on line 15 and 16. In my next update, it will include SRL and so i won't have that in there because SRL already declares x and y variables. It does talk and accept trades at the same time, or maybe you mean keep talking even after it accepts a trade, but you have to be there to trade the items, so i don't really see a point in it and i'm not gonna upgrade as far as to make it trade what it was typing. I'm being pressed for time so the update may take a while

diamondhero5

2007-02-21 21:53:29

i know some about scripting i just still dont understand the x,y thing for using them with cordinates
Also when u r useing sendkeys it wont type it will just blurt it out.
check out mine.
//Directions
//Set what u would like it to say(lines 9-12)
//Set how long until says next message(line 47)
//hit play
//press F12 to stop
program AutoTalk;

const
message1='cyan:selling full rune';
message2='white:selling full rune';
message3='Green:selling fulll rune';
message4='red:selling full rune';

procedure SendText(text: string);
var i: Integer;
begin
for i := 1 to Length(Text) do
begin
SendKeys(Text[i]);
Wait(50+random(50));
end;
SendKeys(Chr(13));
end;

procedure namechange(wstatus :String);
begin
status(wstatus);
GetApplication.Title:=wstatus;
GetSelf.Caption:=wstatus;
end;


procedure nc4(wstatus:String; time:Integer);
begin
namechange(wstatus);
wait(time);
end;

procedure Talk;
begin
case random(4) of
0:SendText(message1);
1:SendText(message2);
2:SendText(message3);
3:SendText(message4);
end;
wait(2124+random(241));
end;
procedure nc(wstatus:String);
begin
nc4(wstatus, 250);
end;

procedure flashx;
begin
nc4('Auto-Talker',200);
nc4('By Diamondhero5',200);
nc4('Auto-Talker',200);
nc4('By Diamondhero5',200);
nc4('Auto-Talker',200);
nc4('By Diamondhero5',200);
nc4('Auto-Talker',200);
nc4('By Diamondhero5',200);
nc4('Auto-Talker',200);
nc4('By Diamondhero5',200);
end;

procedure Animate;
begin
nc(' ');
nc('A');
nc('Au');
nc('Aut');
nc('Auto');
nc('Auto- ');
nc('Auto-T');
nc('Auto-Ta');
nc('Auto-Tal');
nc('Auto-Talk');
nc('Auto-Talke');
nc('Auto-Talker');
nc('--------------');
nc('Auto-Talker');
nc('--------------');
nc('By Diamondhero5');
flashx;
nc4('Auto-Talker - By Diamondhero5',5);
end;


procedure ThankYou;
begin
writeln('-------Auto-Talker-------')
writeln('-----by Diamondhero5-----')
writeln('- I know u will like it -')
writeln('@@##$$ Thank you $$##@@')
writeln(' ENJOY ')
end;

begin
Animate
ActivateClient
Thankyou
repeat
Talk;
until(IsFKeyDown(12))
end.

rscheater13

2007-02-22 18:49:00

diamond hero, you might wanna stop bragging about your script, i checked out your auto-talker page and you got a lot of help for it, plus i recommend you look at a tut on how to make scripts, and if you made an auto-wcer like you say, you would know how to declare x and y variables or include SRL so you wouldn't have to

edit: i just looked over your script and you have declared "i" a variable, which i also saw on your topic yesterday, you may want to give credit to the person that gave that to you and it seems like you are having a lil trouble with being accused of stealing that wcer so you may want to figure out how to make your own scripts

diamondhero5

2007-02-22 20:07:59

ok first of all i made that auto talker but yes i did steal that wc script and i looked on all of the tutorials and none of them explain the x y thing clearly

rscheater13

2007-02-23 17:19:24

you can't tell me you got everything else that is basically useless in your auto-talker but couldn't understand how the tut explained x and y and i already said this, you have "i" declared as a variable, so how could you not have gotten it from someone else if you don't understand how to make certain things variables clearly?!

diamondhero5

2007-02-26 19:02:04

omg ur an idiot i know how to make variables i don't know hot to use them with cordinates, i said this like 5 times

Smartzkid

2007-02-26 19:13:45

:p ZOMG NOOB FLAMING SESSION!

Heh, rscheater, would you mind if I borrowed your trader? The SRL one doesn't always trade right…

JAD

2007-02-26 19:33:19

diamond.. I wouldn't suggest calling him an idiot since that is rude.. and rscheater, even if he did get a lot of help so what? everybody gets help with there scripts. i have a 300+ line power miner coming out and i got a lot of help with error fixing.. so don't discourage him and tell him that the only reason he has a script is because he had help. only reason he posted it was to show you that he does know the basics of scripting. I'll download your script then edit this post and tell you what i think.

Edit: what I'd suggest doing is using procedures/functions instead of making just 1 huge main loop. makes script look better, and it helps other people read it and could even make script run better possibly :P and as far as scripting standards go, i would just suggest checking your capitals :) other then that pretty good first script.

rscheater13

2007-02-26 20:42:50

Smartzkid, i don't mind, you can borrow it. I don't mind getting or giving help either but i would at least like for some recognition, i also try to give recognition to the people that help me. Also when he said "check out mine" i considered that bragging and I don't like it when people brag, especially when they are showing off their own script on some else's page that has a script performing the same task, unless he was trying to help and was letting me see his for reference. Thanks a lot JAD i'll edit it tomorrow if i can, tennis is really getting in the way… Also, i don't know that much about functions, i only know procedures. I'll try to add some loops, but it won't include functions, i'll try to find a tut that will help me learn about functions later, again tennis wins for time. I didn't realize that capitals could be that important so i'll work on them.

diamondhero5

2007-03-01 19:20:15

sorry if i made u think i was bragging, i was just showing some things that i have that u might want to add…

sorry

rscheater13

2007-03-03 15:18:12

Well I'm sorry i thought you were bragging and misunderstood you.

diamondhero5

2007-03-04 00:43:47

appolgy accepted
sorry i've been gone so long….
i've been on sythe

rscheater13

2007-03-05 18:00:48

lol, same, and mopar and Tennis…