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 

Bindable commands?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Mon Apr 03, 2006 12:30 am    Post subject: Bindable commands? Reply with quote

Is it physically possible to have a script where you type @bind roster <my roster here> then if you wanted to remove it you'd type @binc roster none or something along those lines, also could you list all your current binds?

All of this done while in an a channel of course.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Apr 03, 2006 10:35 pm    Post subject: Reply with quote

yes
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Tue Apr 04, 2006 9:17 am    Post subject: Reply with quote

Can you maybe post an example or post on how to?
Back to top
View user's profile Send private message
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Wed Apr 05, 2006 10:39 am    Post subject: Reply with quote

Anybody?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Apr 05, 2006 1:07 pm    Post subject: Reply with quote

What's that command supposed to do?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Apr 05, 2006 7:57 pm    Post subject: Reply with quote

Sir_Fz wrote:
What's that command supposed to do?

Would appear we want a public commands solution to manipulate binds for updating/updated files?
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Wed Apr 05, 2006 9:08 pm    Post subject: Reply with quote

Alchera wrote:
Sir_Fz wrote:
What's that command supposed to do?

Would appear we want a public commands solution to manipulate binds for updating/updated files?


Yes, that's exactly what we would want..
Back to top
View user's profile Send private message
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Sun Jun 11, 2006 1:27 pm    Post subject: Reply with quote

Sir_Fz wrote:
What's that command supposed to do?


I found a version in mIRC which pretty much sums up exactly what I wanted,

Code:
on *:text:*:#:{ if ($me isop #) || ($me isop $chan) || ($address($nick,2) isin %botowner) || ($address($nick,2) isin %botadmins) && ($chan != #botsrus) {
      if ($left($1,1) == $+(%trigger. [ $+ [ $chan ] ])*) && ($remove($1,$left($1,1)) != set) && ($2 == $null) {
        if ($eval($+(%,$remove($1,$left($1,1)),.,$chan),2)) {
          if ($eval($+(%,theme.,#),2) == 1) && ($eval($+(%,msgmode.,#),2) == 1 || $eval($+(%,msgmode.,#),2) == $null) { /cnotice $nick $chan 10,1[15 $eval($+(%,$remove($1,$left($1,1)),.,$chan),2) 10,1] }

elseif ($left($1,1) == $+(%trigger. [ $+ [ $chan ] ])*) && ($remove($1,$left($1,1)) == set) && ($nick isop $chan || $address($nick,2) isin %botadmins) && ($2 != $null) && ($3 != $null) && ($2 != trigger) && ($2 != punishtype) && ($2 != nourls) && ($2 != noads) && ($2 != nonotice) && ($2 != theme) && ($2 != onjoinmsg) && ($2 != msgmode) && ($2 != onjoinmsg2)  {
        set $+(%,$2.,#) $3-
        /cnotice $nick $chan $2 set to: $eval($+(%,$2.,#),2)
        halt
}


This is very advanced coding from what I can see, and yes it does work I have tested it in mIRC... anyone keen to trasnlate to TCL Wink
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Jun 11, 2006 9:47 pm    Post subject: Reply with quote

"advanced"?

no, this is very primitive coding

I suspect that by "binding" you mean something quite different from eggdrop's command binding; perhaps if you elaborate on what you want to accomplish, someone will be willing to help
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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