Botscript / Informations script / !menu / !set / !unset

Release your script here.
State:
- Author
- What it does
- Perhaps a little guide.
- Also, if the snippet is of any use to the community, it has a chance of getting posted on the main page, so don't hesitate to submit/ask!

Botscript / Informations script / !menu / !set / !unset

Postby Cristian » Sun Feb 03, 2008 2:59 pm

;# A little informations script optimized a lot, using variables, and is channel based.
;# You can set all types off '!triggers'.

;# !set <command> <text> - only operators
;# !unset <command> - only operators
;# !theme <theme> - only operators
;# !<command> - all

;# Tested and works on version 6.15

Code: Select all
;# 
;# visit http://sp00fed.org for updates or support.
;# script by Sumsar
;#

on *:TEXT:*:#: {
  if (! == $left($1,1)) {
    var %theme = $iif($eval($+(%,$chan,.,data,.,theme),2) != $null,$ifmatch,$chr(32))
    if ($nick isop $chan) {
      if (set == $right($1,-1)) { .set $+(%,$chan,.,$2) $3- | .msg $chan %theme Command $2 created. %theme }
      if (unset == $right($1,-1)) { if ($+(%,$chan,.,$2) != $null) { .unset $+(%,$chan,.,$2) | .msg $chan %theme Command $2 deleted. %theme } }
      if (theme == $right($1,-1)) { set $+(%,$chan,.,data,.,theme) $+($2-,) }
    }
    if ($eval($+(%,$chan,.,$right($1,-1)),2) != $null) { .msg $chan %theme $eval($+(%,$chan,.,$right($1,-1)),2) %theme }
  }
}
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: Botscript / Informations script / !menu / !set / !unset

Postby fraguk » Fri Jul 18, 2008 4:06 am

script dont work, error output from bot in Mirc = * /if: invalid format (line 7, test1.mrc)
-
fraguk
 

Re: Botscript / Informations script / !menu / !set / !unset

Postby Cristian » Fri Jul 18, 2008 4:27 am

I forgot a ")" sorry about that, and thanks for the message, the script is updated.
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: Botscript / Informations script / !menu / !set / !unset

Postby fraguk » Fri Jul 18, 2008 4:37 am

np Sumsar m8 ;)
fraguk
 

Re: Botscript / Informations script / !menu / !set / !unset

Postby Jerzy » Sun May 03, 2009 3:46 pm

Hey Sumsar!
How do i change the trigger? i want to have it to: .
// Jerzy
Jerzy
 

Re: Botscript / Informations script / !menu / !set / !unset

Postby Cristian » Sun May 03, 2009 4:14 pm

change:
Code: Select all
if (! == $left($1,1)) { 


to

Code: Select all
if (. == $left($1,1)) { 
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: Botscript / Informations script / !menu / !set / !unset

Postby Jerzy » Sun May 03, 2009 4:42 pm

it helped but somethings wrong.
Code: Select all
[18:40:58] <@Jerzy> .set .Hej Hej
[18:40:59] <@[JerzyBot]> Command .Hej created.
[18:40:59] <@[JerzyBot]> Command .Hej deleted.
[18:41:12] <@Jerzy> .HEJ
[18:41:13] <@[JerzyBot]> Command created.
[18:41:13] <@[JerzyBot]> Command deleted.
Jerzy
 

Re: Botscript / Informations script / !menu / !set / !unset

Postby Cristian » Sun May 03, 2009 5:11 pm

hmm, the script i posted had some tabs in the code, try and remove the tabs or copy the script again, if it doesn't work, then I will look into it.
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: Botscript / Informations script / !menu / !set / !unset

Postby Jerzy » Sun May 10, 2009 9:33 am

what is tabs :b?
these: { and } ?
Jerzy
 

Re: Botscript / Informations script / !menu / !set / !unset

Postby Cristian » Sun May 10, 2009 1:20 pm

I have removed them from my first post, if you copy and paste the new one, it should wok.

tabulator key is above your caps lock key.
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Next

Return to Mirc Scripting Release

Who is online

Users browsing this forum: No registered users and 0 guests

cron