Skip to content
MSN Addons

Remote Commands

A TG007 community discussion started by Blayde.

Discussion 5 posts
Page 1 of 1
Open
Topic #6552 · 5 published posts · 1,611 views

I have a problem!! I wanted to make a remote access script for my self. I have coded the menu though, but I can get it running. I wanted to have the whole thing in whispers (no onscreen). I have done it, but there is an error!! The menu does not come all at once, first, two lines come, later after 10 to 15 seconds, the other menus come! I have checked my ping, its about 0.125 secs!! All the other things like bot talk, and the scripts remote access commands work properly. Can you tell me the reason for the lag?? I am posting the coded file. Please tell me if there is any problem.

 

on admin:TEXT:@admin*:?: {
/privmsg $nick (co) Welcome to your Commands list, $nick (co)
/privmsg $nick (co) Type @hammer for commands related to authority    (co)
/privmsg $nick (co) Type @script for commands related to the script     (co)
/privmsg $nick (co) Type @chat for commands related to the chatroom   (co)
/privmsg $nick (co) Type @misc for commands that do not firt elsehwere(co)
/privmsg $nick (co) Type @macro for available room macros                  (co)
/close -m $nick
}

on admin:TEXT:@hammer*:?: {
/privmsg $nick Type @own - Gold up (will work only when i have a golden hammer!)
/privmsg $nick Type @deown - Deown yourself(will only work when I have a golden hammer!)
/privmsg $nick Type @host  - Host yourself
/privmsg $nick Type @dehost - Dehost yourself
/privmsg $nick Type @admin <nick> - add to Adminlist
/privmsg $nick Type @hammer2 for more commmands
/close -m $nick
}


on admin:TEXT:@hammer2*:?: {
/privmsg $nick Type !own <nickname> to make someone else the owner
/privmsg $nick Type !deown <nickname> to deown someone
/privmsg $nick Type !host <nickname> to host someone
/privmsg $nick Type !dehost <nickname> to dehost someone
/privmsg $nick Type @voice <nick> - Voice <nick>
/privmsg $nick Type @hammer3 for more commands
/close -m $nick
}


on admin:TEXT:@hammer3*:?: {
/privmsg $nick Type @kick <nick> - Kick
/privmsg $nick Type @ban <nick> - Ban
/privmsg $nick Type @mode <input> - Set mode on <input>
/privmsg $nick Type @fixmodes - Fix room modes
/privmsg $nick Type @gk <nick> - Gatekeeper of <nick>
/privmsg $nick Type @hammer4 for more commands
/close -m $nick
}


on admin:TEXT:@hammer4*:?: {
/privmsg $nick Type @list <nick> - Add <nick> to Shitlist
/privmsg $nick Type @slist <nick> - Add <nick> to Silence list
/privmsg $nick Type @unlist <nick> - remove <nick>  from Shitlist
/privmsg $nick Type @remove <nick> remove <nick> from Silence list
/privmsg $nick Type @protect <nick> - add <nick> to protected list
/privmsg $nick Type @hammer5 for more commands
/close -m $nick
}


on admin:TEXT:@hammer5*:?: {
/privmsg $nick Type @take - Kick & Close Room
/privmsg $nick Type @dcban <nick> - silent disconnect + ban
/privmsg $nick @bguest - Guest banned for 15 minutes
/privmsg $nick @guest - Guest ban removed
/privmsg $nick Type @cb - Clear all
/privmsg $nick Type @hammer6 for more commands
/close -m $nick
}


on admin:TEXT:@hammer6*:?: {
/privmsg $nick @bguest - Guest banned for 15 minutes
/privmsg $nick @guest - Guest ban removed
/privmsg $nick @inviteon - Invite on
/privmsg $nick @inviteoff - Invite off
/privmsg $nick Type @limit <aantal> - set roomlimit
/privmsg $nick (co)End of hammer commands(co)
/close -m $nick
}

on admin:TEXT:@script*:?:{
/privmsg $nick Type @version For $me 's version 
/privmsg $nick Type @away to make me go away (c) :P
/privmsg $nick Type @back to make me come back :P
/privmsg $nick Type @quit to make me leave the room (please no :'() :P
/privmsg $nick Type @hop to make me go and come back
/privmsg $nick Type @script 2 for more options.
/close -m $nick
}

on admin:TEXT:@script2*:?:{
/privmsg $nick Type @say <message> to make me say something...
/privmsg $nick Type @uptime to know my uptime
/privmsg $nick Type @time for current time on my watch (O)
/privmsg $nick (co)End of script commands(co)
/close -m $nick
}

on admin:TEXT:@chat*:?:{
/privmsg $nick Type @fixmodes - Fix room modes
/privmsg $nick Type @welcome <*> - Set Onjoin
/privmsg $nick Type @topic <*> - set Topic 
/privmsg $nick Type @stat for room stats
/close -m $nick
}


on admin:TEXT:@misc*:?:{
/privmsg $nick  ====--- Away remote options ---===
/privmsg $nick @settime <Number> - set time for away reason
/privmsg $nick @onaway <reason> - Put script on away with reason
/privmsg $nick @backnow - Script back with reason
/privmsg $nick Type @misc2 for more commands
/close -m $nick
}


on admin:TEXT:@misc2*:?:{
/privmsg $nick @T - Script goes to toilet
/privmsg $nick @b - Script comes back 4m toilet
/privmsg $nick @roomcounter - show stats of Joins
/privmsg $nick (co) End of Misc commands (co)
/close -m $nick
}


on admin:TEXT:@funny*:?:{
/privmsg $nick @die <nick> - funny kick
/privmsg $nick @hammerkick <nick> - Funny kick
/privmsg $nick @flowerlist <nick> - Funny kick
/privmsg $nick @wake <nick> - Funny Kick
/privmsg $nick @copie - Take someone else his * in your * 
/privmsg $nick (co)End of Funny Commands
/close -m $nick
}

 

Please check the whole thing and tell me the problem....

Put timers on them ..

on admin:TEXT:@admin*:?: {
timer 1 1 privmsg $nick (co) Welcome to your Commands list, $nick (co)
timer 1 2 privmsg $nick (co) Type @hammer for commands related to authority (co)
timer 1 3 privmsg $nick (co) Type @script for commands related to the script (co)
timer 1 4 privmsg $nick (co) Type @chat for commands related to the chatroom (co)
timer 1 5 privmsg $nick (co) Type @misc for commands that do not firt elsehwere(co)
timer 1 6 privmsg $nick (co) Type @macro for available room macros (co)
/close -m $nick
}

on admin:TEXT:@hammer*:?: {
timer 1 1 privmsg $nick Type @own - Gold up (will work only when i have a golden hammer!)
timer 1 2 privmsg $nick Type @deown - Deown yourself(will only work when I have a golden hammer!)
timer 1 3 privmsg $nick Type @host - Host yourself
timer 1 4 privmsg $nick Type @dehost - Dehost yourself
timer 1 5 privmsg $nick Type @admin <nick> - add to Adminlist
timer 1 6 privmsg $nick Type @hammer2 for more commmands
/close -m $nick
}


on admin:TEXT:@hammer2*:?: {
timer 1 1 privmsg $nick Type !own <nickname> to make someone else the owner
timer 1 2 privmsg $nick Type !deown <nickname> to deown someone
timer 1 3 privmsg $nick Type !host <nickname> to host someone
timer 1 4 privmsg $nick Type !dehost <nickname> to dehost someone
timer 1 5 privmsg $nick Type @voice <nick> - Voice <nick>
timer 1 6 privmsg $nick Type @hammer3 for more commands
/close -m $nick
}


on admin:TEXT:@hammer3*:?: {
timer 1 1 privmsg $nick Type @kick <nick> - Kick
timer 1 2 privmsg $nick Type @ban <nick> - Ban
timer 1 3 privmsg $nick Type @mode <input> - Set mode on <input>
timer 1 4 privmsg $nick Type @fixmodes - Fix room modes
timer 1 5 privmsg $nick Type @gk <nick> - Gatekeeper of <nick>
timer 1 6 privmsg $nick Type @hammer4 for more commands
/close -m $nick
}


on admin:TEXT:@hammer4*:?: {
timer 1 1 privmsg $nick Type @list <nick> - Add <nick> to Shitlist
timer 1 2 privmsg $nick Type @slist <nick> - Add <nick> to Silence list
timer 1 3 privmsg $nick Type @unlist <nick> - remove <nick> from Shitlist
timer 1 4 privmsg $nick Type @remove <nick> remove <nick> from Silence list
timer 1 5 privmsg $nick Type @protect <nick> - add <nick> to protected list
timer 1 6 privmsg $nick Type @hammer5 for more commands
/close -m $nick
}


on admin:TEXT:@hammer5*:?: {
timer 1 1 privmsg $nick Type @take - Kick & Close Room
timer 1 2 privmsg $nick Type @dcban <nick> - silent disconnect + ban
timer 1 3 privmsg $nick @bguest - Guest banned for 15 minutes
timer 1 4 privmsg $nick @guest - Guest ban removed
timer 1 5 privmsg $nick Type @cb - Clear all
timer 1 6 privmsg $nick Type @hammer6 for more commands
/close -m $nick
}


on admin:TEXT:@hammer6*:?: {
/privmsg $nick @bguest - Guest banned for 15 minutes
/privmsg $nick @guest - Guest ban removed
/privmsg $nick @inviteon - Invite on
/privmsg $nick @inviteoff - Invite off
/privmsg $nick Type @limit <aantal> - set roomlimit
/privmsg $nick (co)End of hammer commands(co)
/close -m $nick
}

on admin:TEXT:@script*:?:{
/privmsg $nick Type @version For $me 's version 
/privmsg $nick Type @away to make me go away (c) :P
/privmsg $nick Type @back to make me come back :P
/privmsg $nick Type @quit to make me leave the room (please no :'() :P
/privmsg $nick Type @hop to make me go and come back
/privmsg $nick Type @script 2 for more options.
/close -m $nick
}

on admin:TEXT:@script2*:?:{
/privmsg $nick Type @say <message> to make me say something...
/privmsg $nick Type @uptime to know my uptime
/privmsg $nick Type @time for current time on my watch (O)
/privmsg $nick (co)End of script commands(co)
/close -m $nick
}

on admin:TEXT:@chat*:?:{
/privmsg $nick Type @fixmodes - Fix room modes
/privmsg $nick Type @welcome <*> - Set Onjoin
/privmsg $nick Type @topic <*> - set Topic 
/privmsg $nick Type @stat for room stats
/close -m $nick
}


on admin:TEXT:@misc*:?:{
/privmsg $nick ====--- Away remote options ---===
/privmsg $nick @settime <Number> - set time for away reason
/privmsg $nick @onaway <reason> - Put script on away with reason
/privmsg $nick @backnow - Script back with reason
/privmsg $nick Type @misc2 for more commands
/close -m $nick
}


on admin:TEXT:@misc2*:?:{
/privmsg $nick @T - Script goes to toilet
/privmsg $nick @b - Script comes back 4m toilet
/privmsg $nick @roomcounter - show stats of Joins
/privmsg $nick (co) End of Misc commands (co)
/close -m $nick
}


on admin:TEXT:@funny*:?:{
/privmsg $nick @die <nick> - funny kick
/privmsg $nick @hammerkick <nick> - Funny kick
/privmsg $nick @flowerlist <nick> - Funny kick
/privmsg $nick @wake <nick> - Funny Kick
/privmsg $nick @copie - Take someone else his * in your * 
/privmsg $nick (co)End of Funny Commands
/close -m $nick
}

You get the jist of how to do it. A suggestion though, on your @cb, you might wanna change that to clear bans, not clear all.

on *:text:@cb*:?:{ access # clear deny | privmsg $nick Denies cleared } 

I got this done, but now there is a new problem... My script automaticaly gets ignored bcoz of rapid message sending!

 

Please help...

Edited May 6, 2006 6:26 AM by Blayde

I started coding the commands execution. When I coded for @host and tested it, I get the following error

 

+o No such channel

 

and i also dont get to be the host!! I am attaching the whole file itself... Please have a look and tell me the problem!

 

on admin:TEXT:@admin:?: {
timer 1 1 privmsg $nick (co) Welcome to your Commands list, $nick (co)
timer 1 2 privmsg $nick (co) Type @hammer<1-7>for commands related to authority
timer 1 3 privmsg $nick (co) Type @script for commands related to the script
timer 1 4 privmsg $nick (co) Type @chat for commands related to the chatroom
timer 1 5 privmsg $nick (co) Type @misc for commands that do not firt elsehwere
/close -m $nick
}

on admin:TEXT:@hammer1:?: {
timer 1 1 privmsg $nick (co) Type @own - Gold up (will work only when i have a golden hammer!)
timer 1 2 privmsg $nick (co) Type @deown - Deown yourself(will only work when I have a golden hammer!)
timer 1 3 privmsg $nick (co) Type @host - Host yourself
timer 1 4 privmsg $nick (co) Type @dehost - Dehost yourself
timer 1 5 privmsg $nick (co) Type @hammer2 for more commmands
/close -m $nick
}


on admin:TEXT:@hammer2:?: {
timer 1 1 privmsg $nick (co) Type !own <nickname> to make someone else the owner
timer 1 2 privmsg $nick (co) Type !deown <nickname> to deown someone
timer 1 3 privmsg $nick (co) Type !host <nickname> to host someone
timer 1 4 privmsg $nick (co) Type !dehost <nickname> to dehost someone
timer 1 5 privmsg $nick (co) Type @hammer3 for more commands
/close -m $nick
}


on admin:TEXT:@hammer3:?: {
timer 1 1 privmsg $nick (co) Type @kick <nick> - Kick
timer 1 2 privmsg $nick (co) Type @ban <nick> - Ban
timer 1 3 privmsg $nick (co) Type @mode <input> - Set mode on <input>
timer 1 4 privmsg $nick (co) Type @fixmodes - Fix room modes
timer 1 5 privmsg $nick (co) Type @hammer4 for more commands
/close -m $nick
}


on admin:TEXT:@hammer4:?: {
timer 1 1 privmsg $nick (co) Type @list <nick> - Add <nick> to Shitlist
timer 1 2 privmsg $nick (co) Type @slist <nick> - Add <nick> to Silence list
timer 1 3 privmsg $nick (co) Type @unlist <nick> - remove <nick> from Shitlist
timer 1 4 privmsg $nick (co) Type @remove <nick> remove <nick> from Silence list
timer 1 5 privmsg $nick (co) Type @hammer5 for more commands
/close -m $nick
}


on admin:TEXT:@hammer5:?: {
timer 1 1 privmsg $nick (co) Type @take - Kick & Close Room
timer 1 2 privmsg $nick (co) Type @dcban <nick> - silent disconnect + ban
timer 1 3 privmsg $nick (co) @bguest - Guest banned for 15 minutes
timer 1 4 privmsg $nick (co) @guest - Guest ban removed
timer 1 5 privmsg $nick (co) Type @hammer6 for more commands
/close -m $nick
}


on admin:TEXT:@hammer6:?: {
timer 1 1 privmsg $nick (co) Type @admin <nick> - add to Adminlist
timer 1 2 privmsg $nick (co) Type @voice <nick> - Voice <nick>
timer 1 3 privmsg $nick (co) Type@inviteon - Invite on
timer 1 4 privmsg $nick (co) Type@inviteoff - Invite off
timer 1 5 privmsg $nick (co) Type @hammer7 for more commands
/close -m $nick
}

on admin:TEXT:@hammer7:?: {

timer 1 1 privmsg $nick (co) Type @gk <nick> - Gatekeeper of <nick>
timer 1 2 privmsg $nick (co) Type @protect <nick> - add <nick> to protected list
timer 1 3 privmsg $nick (co) Type @cb - Clear all
timer 1 4 privmsg $nick (co) End of Hammer Commands
/close -m $nick
}

on admin:TEXT:@script:?:{
timer 1 1 privmsg $nick (co) Type @version For $me 's version
timer 1 2 privmsg $nick (co) Type @away to make me go away (c) :P
timer 1 3 privmsg $nick (co) Type @back to make me come back :P
timer 1 4 privmsg $nick (co) Type @quit to make me leave the room (please no :'() :P
timer 1 5 privmsg $nick (co) Type @script 2 for more options.
/close -m $nick
}

on admin:TEXT:@script2:?:{
timer 1 1 privmsg $nick (co) Type @say <message> to make me say something...
timer 1 2 privmsg $nick (co) Type @uptime to know my uptime
timer 1 3 privmsg $nick (co) Type @time for current time on my watch (O)
timer 1 4 privmsg $nick (co) Type @hop to make me go and come back
timer 1 5 privmsg $nick (co) End of script commands
/close -m $nick
}

on admin:TEXT:@chat:?:{
timer 1 1 privmsg $nick (co) Type @fixmodes - Fix room modes
timer 1 2 privmsg $nick (co) Type @welcome <*> - Set Onjoin
timer 1 3 privmsg $nick (co) Type @topic <*> - set Topic
timer 1 4 privmsg $nick (co) Type @stat for room stats
/close -m $nick
}


on admin:TEXT:@misc:?:{
timer 1 1 privmsg $nick (co) ====--- Away remote options ---===
timer 1 2 privmsg $nick (co) @settime <Number> - set time for away reason
timer 1 3 privmsg $nick (co) @onaway <reason> - Put script on away with reason
timer 1 4 privmsg $nick (co) @backnow - Script back with reason
timer 1 5 privmsg $nick (co) Type @misc2 for more commands
/close -m $nick
}


on admin:TEXT:@misc2:?:{
timer 1 1 privmsg $nick (co) @T - Script goes to toilet
timer 1 2 privmsg $nick (co) @b - Script comes back 4m toilet
timer 1 3 privmsg $nick (co) @roomcounter - show stats of Joins
timer 1 4 privmsg $nick (co) End of Misc commands (co)
/close -m $nick
}


;Commands Execution

;hammers

on admin:TEXT:@own*:?: /mode # +q $nick

on admin:TEXT:@deown*:?: /mode # -q $nick

on admin:TEXT:@host*:?: /mode # +o $nick

on admin:TEXT:@dehost*:?: /mode # -o $nick


Edited May 6, 2006 8:34 AM by Blayde

i m attachin the whole file caz i can not execute the other commands

 

Download it from here