egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

multi pref want

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
apnihost
Voice


Joined: 23 Jun 2013
Posts: 8

PostPosted: Wed Jan 20, 2016 3:06 pm    Post subject: multi pref want Reply with quote

Code:
pref {! @}
bind pub - ($pref)test test
proc test {nick uhost hand chan text} {
}


i make this but its not working
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Fri Jan 22, 2016 1:05 pm    Post subject: Reply with quote

You can try using this code and then create

Code:
bind PUBM - * shortcut

proc shortcut {nick uhost hand chan arg} {

   if {[string index $arg 0] in {! . `}} {
      set cmd [string range $arg 1 end]
      set cmd [lindex [split $cmd] 0]

      set arg [join [lrange [split $arg] 1 end]]
   } elseif {[isbotnick [lindex [split $arg] 0]]} {
      set cmd [lindex [split $arg] 1]
      set force [lindex [split $arg] 3]

      set arg [join [lrange [split $arg] 2 end]]
   } else { return }

   if {[info commands command:$cmd] ne ""} { command:$cmd $nick $uhost $nick $chan $arg }
}


and then create

Code:
proc command:test {nick uhost hand chan arg} {


And it will work with !test `test or even BOTNICK test
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber