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 

Execute script commands from another script

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


Joined: 02 Dec 2003
Posts: 40
Location: The Netherlands

PostPosted: Wed Dec 15, 2010 12:44 pm    Post subject: Execute script commands from another script Reply with quote

Hi all,

Situation:

2 scripts, first script has a trigger !a that performs an action.
Second script has trigger !b that performs an action.

They are both seperate scripts (e.g. a.tcl and b.tcl)

Now I want to create a new script (e.g. c.tcl) and set a trigger !c that will execute !a and !b.

Is that possible? To call triggers from another script?

Thx

Chris
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Trixar_za
Op


Joined: 18 Nov 2009
Posts: 143
Location: South Africa

PostPosted: Wed Dec 15, 2010 1:56 pm    Post subject: Reply with quote

Yeah, it's completely possible. Just make sure you load a.tcl and b.tcl before c.tcl in the conf, otherwise you'll get errors.
_________________
http://www.trixarian.net/Projects
Back to top
View user's profile Send private message Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Wed Dec 15, 2010 5:52 pm    Post subject: Reply with quote

And the c'proc must send the good args to the a & b proc.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
cvanmeer
Halfop


Joined: 02 Dec 2003
Posts: 40
Location: The Netherlands

PostPosted: Thu Dec 16, 2010 1:23 am    Post subject: Reply with quote

Thx lads
Back to top
View user's profile Send private message Visit poster's website MSN 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