Jump to content

tglogo.png

Photo
- - - - -

Newbie Script Request


  • Please log in to reply
3 replies to this topic

#1 oosho

oosho

    General Poster

  • Members
  • 100 posts
Offline

Posted 31 May 2015 - 09:02 PM

I have no idea how to write scripts but i can learn from patterns easily.
I need my bot to do the following:
1- welcome users as soon as they join the room with a massage that can be edited later on.
2- assign levels to users of my choice to be exempted from recieving the welcome madsage and recieve a different one that also can be edited later on.
3- add and remove users to the above list with remote commands.
4- to respond to remote commands to op,deop,kick,kick and ban users with remote commands.
Thank you very much
  • 0

#2 Haggis

Haggis

    The Haggis

  • Members
  • 1,122 posts
  • Gender:Male
  • Location:Scotland

  • img
    Country
Offline

Posted 17 June 2015 - 07:36 AM

Wow i have not done scripting for a very long time :)

 

so on join message

on *:JOIN:#: /msg $nick Hello, Welcome to our channel

Remote Kick

on *:text:!kick:#:{
kick # $1}

If i remember correctly the op, deop, ban etc will depend if your are on ircd or ircx

 

One of the guys that still does this sort of stuff will be ale to help :)


  • 0
Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

#3 Groovyaxis2

Groovyaxis2

    General Poster

  • Members
  • 61 posts
  • Gender:Male

  • img
    Country
Offline

Posted 19 June 2015 - 05:20 AM

For the greet you could do something like 

#persongreet on
on *:START:{
  window @SetGreet
  titlebar @SetGreet SetGreet Recorder
  echo -a  Display All The SetGreet Greetings That Are Set
  echo -a  To Delete A Greet That Has Been Set Hit ALT+R And GoTo The Variables tab
}
on *:TEXT:*!setgreet*:#: {
  set %personal.greet $+ $nick $2-
  echo @SetGreet 9 $+ $fulldate $+ 4 $nick $+ 7 $+ ! $+ 08 $+ $address 9 Greet that was set : 4 $2- 
  msg $nick $nick Your Personal Greet Has Been Set To: $2-
}
on *:JOIN:#: {
  if ($nick == $me) halt 
  if (Guest isin $nick) halt
  if (%personal.greet [ $+ [ $nick ] ] == $null) { msg # (*) $nick Get A Greet! (*) !setgreet (text) (*)  }
  else {
    msg $chan %personal.greet [ $+ [ $nick ] ] 
  }
}
#persongreet end

and then your members can add there own greet witch will be echoed to a window in the bot so it can be monitored, you could then add a switch to it like....

-
  Room Stuff
  .Personal Greets ( $+ %persongreet $+ )
  ..On:/enable #persongreet | set %persongreet On | /msg $chan  Personal Greetings are now on | /echo 0,12 Personal Greetings 0,94 Loaded !
  ..Off:/disable #persongreet | set %persongreet Off | /msg $chan  :P Personal Greetings are now off | /echo 0,12 Personal Greetings 0,4 Unloaded !
  .-

There are many ways to add in a greet , i hope this helps you  :lolwave:

 

add the greet script to remots and add the switch script to the popups channel or menu bar. This has come from a personal script i still use and i have many games added. My switch file is added to remotes so you could do that as well, you could add it like... 

 

Menu menubar {
  -
switch to add
.personalgreet  
 
or so on.

Edited by Groovyaxis2, 19 June 2015 - 05:25 AM.

  • 0

#4 CheatHacker

CheatHacker

    Neophyte

  • Members
  • 3 posts
  • Gender:Male
  • Location:USA

  • img
    Country
Offline

Posted 02 June 2017 - 11:25 AM

Wow i also have not done scripting for a very long time


  • 0


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users