Need Help With First Script!
Hey guys I know I'm new here but I'm really interested in learning to script. I read through the newbie tutorials and watched YoHoJo's videos and I can say I have an ehhh "basic" understanding of what I'm doing. :P
What I need help with is how to script an Auto Responder type program that would basically act like a dice bag in account form. I thought this would be a cool idea as it is my first script and I don't think it would be to over the top to code.
Just an overview of what I'm trying to accomplish, I want to run a script which would open up SMART, log into the lobby, stay there in a friends chat and when a select person says something like "Roll" the script would see it and say a random number between lets say 1 and 10.
Any help would be much appreciated but please don't code this for me. I want to learn how to do this myself so I can make my own more complicated scripts in the future :)
Here's what I have so far (I have the r variable there just as a placeholder for a random number):
Simba Code:
program DiceBot;
{$DEFINE SMART}
{$I SRL/SRL.Simba}
procedure DiceRoll;
var
r: Integer;
begin
if FindChatBoxText('!Roll', 8, clFriend) then
TypeSend('Rolling the dice!');
repeat
DiceRoll;
until(false);
end;
begin
DiceRoll;
end.