Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Craftman_21

Pages: [1]
1
I just need a little help writing a few scripts since i have never written any scripts before or used sleep language at all.

If you could just send a reply if your able to help me with writing a few.

The type of scripts i need help writing are:

User Online List
Reconnect the bot every 10 minutes
Notification anytime someone joins a game with a specfic word in it.

2
JavaOp Support Archive / Re: Channel Notifications
« on: January 20, 2008, 07:53:15 pm »
If i tried writing the script for the user online/offline check, would you mind looking over it to help me optimize it or see if im doing something wrong?

And is there a basic function to check if a user is online or an interface to help with friend lists and battle.net thats in sleepscript 2.0?

Also is it possible for the timing function to have multiple timer instances for multiple routines?

How do i use the $tick function to have it set that when 5000 milliseconds or 5 seconds passes it displays "5 seconds have passed"

My Current script trying to do it:

sub onMessage {
   if ($2 eq ".starttimer") {
   $ticks();
   if ($ticks eq 5000);
   sendMessage("5 Seconds have passed....");
   }
}

3
JavaOp Support Archive / Re: Channel Notifications
« on: January 20, 2008, 03:23:29 pm »
Ahh this is something i've been looking for all this time.

Few questions though, how do have it set that anytime someone says a specific word that it will reply with a particular message.

For example, anytime someone says bunny it would display the bunny. Because currently the person has to say "bunny" by itself in order to get a response.

Also how do you create a user database in which it can interact with b.net so you can check and see which users are online and which game they are currently or if they are offline.

And my last question, what function would you use to make the bot do a particular action every 10 minutes.

Im sorry if this is alot of questions that you dont have time for, im really noob to bots and i've never made scripts before so its all a new experience to me.

4
JavaOp Support Archive / Re: Channel Notifications
« on: January 18, 2008, 11:51:25 pm »
You think you could give me a small example or template of how to filter a whisper of joining a game into an announcement?

Also is it possible to have a command to list the current users online that are in the bot's database or a seperate list of users?

5
JavaOp Support Archive / Channel Notifications
« on: January 18, 2008, 04:19:29 pm »
How do i set it so that when someone joins a game it shows the game they joined in the channel?

Thank you

Pages: [1]