Skip to content
GuarDDog v. 5

Making Remote Commands for GuarDDog v. 5

A TG007 community discussion started by The Gate Keeper.

Discussion 40 posts
Page 1 of 2
Open
Topic #6099 · 40 published posts · 4,428 views

ok, well basically, the way GuarDDog v. 5 works now is that it uses a seperate system, not the userlist system. so basically this is what you need to do.

 

on *:TEXT:*:#: {
  var %t = $strip($1-) | tokenize 32 %t
  if ($aop.level($chan,$nick) == <level>) {
    if (<command1> == $1) { ... }
    elseif (<command2> == $1) { ... }
    elseif (<command3> == $1) { ... }
  }
}

 

see how it have some things in there as <>. Basically that means you need to modify it how you see fit. For $aop.level($chan,$nick) it returns the user's level. The format is <g|l><level> (g or l then level)

 

So for example, if you had yourself as a global admin, the level that returns is gadmin. If you had yourself as local protect, the level would be lprotect.

 

I know this is a bit of a complex way to do things, but it's the way that it needs to be, to support not only the global and local system, but also to support use colors. If you do get stuck, there should be a few questions around here about making them, and i should have posted examples based on people's remote commands, so fish around for a bit, but that's the basic format in which you need to follow.

Hey GateKeeper;

 

Alright, you asked . . .

 

In Hybrid, I have these script blocks buried in the remote tab of the hybrid.mrc script (I built them in script editor):

 

}

on *:TEXT:!yoda:#: {

if (!%msg.yoda. [ $+ [ $nick ] ]) { msg # S Tahoma;0 $read(TEXT\yoda.txt) $+ }

set -u5 %msg.yoda. [ $+ [ $nick ] ] $true

}

on *:TEXT:!man:#: {

if (!%msg.man. [ $+ [ $nick ] ]) { msg # S Tahoma;0 $read(TEXT\man.txt) $+ }

set -u5 %msg.man. [ $+ [ $nick ] ] $true

}

on *:TEXT:!phobia:#: {

if (!%msg.phobia. [ $+ [ $nick ] ]) { msg # S Tahoma;0 $read(TEXT\phobia.txt) $+ }

set -u5 %msg.phobia. [ $+ [ $nick ] ] $true

}

 

Now, I can figure out how to convert these commands to your structure. Tell me - if I create them and add them to their own mrc script, then I can load that script in GD (/load -rs NEWNAME.mrc) and then that will load everytime I load GD, right? If that is the case, then I can keep all of these bits in their own file, versus "modifying" any existing MRC script (and potentially messing it up lol).

 

Also, tell me how I can easily mimic Bottalk commands from the Hybrid days. For example - user types "Too Bad", script responds "Soo Sad" or something such.

 

I know this sounds goofy, but these commands (and others) are one of the reasons our room is not like any other trivia room here in MSN Chat land. So your help would really be appreciated.

 

Gracias!

 

B

on *:TEXT:*:#: {
 var %t = $strip($1-) | tokenize 32 %t
 if (!yoda == $1) {
   if (!%msg.yoda. [ $+ [ $nick ] ]) { msg # S Tahoma;0 $read(TEXT\yoda.txt) $+  }
   set -u5 %msg.yoda. [ $+ [ $nick ] ] $true
 }
 elseif (!man == $1) {
   if (!%msg.man. [ $+ [ $nick ] ]) { msg # S Tahoma;0 $read(TEXT\man.txt) $+  }
   set -u5 %msg.man. [ $+ [ $nick ] ] $true
 }
 elseif (!phobia == $1) {
   if (!%msg.phobia. [ $+ [ $nick ] ]) { msg # S Tahoma;0 $read(TEXT\phobia.txt) $+  }
   set -u5 %msg.phobia. [ $+ [ $nick ] ] $true
 }
}

 

Just add everything to this 1 on text event. As in mIRC you can only have 1 type of event per file, so just keep adding to this in the same format.

 

Give me a few weeks and i'll either modify Peter's Bot talk or make my own advanced Bot Talk system.

on *:TEXT:*:#: {
 var %t = $strip($1-) | tokenize 32 %t
 if ($aop.level($chan,$nick) == gadmin) {
   if (`cb == $1)  /access $chan clear deny | access # add deny *>*!*@* | /msg # (st) Bans Cleared+Guest Banned By $nick (st)
   elseif (<command2> == $1) { ... }
   elseif (<command3> == $1) { ... }
 }
}

 

whats wrong on this code?i want code for clear bans to add it on garddug5

 

thx

Try this...

 

on *:TEXT:*:#: {
var %t = $strip($1-) | tokenize 32 %t
if (level($nick) == gadmin) {
if (`cb == $strip($1)) /access $chan clear deny | access # add deny >*!*@* | /msg # (st) Bans Cleared+Guest Banned By $nick (st)
elseif (<command2> == $strip($1)) { ... }
elseif (<command3> == $strip($1)) { ... }
}
}

 

For on text events it is alwyas best to use the $strip command to strip away color coding, and such. Otherwise mIRC won't see what you tell it to look for if someone uses colors in their text they send.

no responce :notworking:

i think no need to the code part elseif command 2 and 3 ^o)?

elseif (<command2> == $strip($1)) { ... }
elseif (<command3> == $strip($1)) { ... }
}

dunno

but no responce from the script

 

just give me a code to clear bans on gurddog5 dear no need to use mine

thx alote for ur help

waiting

on @*:TEXT:*:#: {
var %t = $strip($1-), %r = $strip($1) | tokenize 32 %t
if ($aop.level($chan,$nick) == gadmin) {
if (`cb == %r) /access # clear deny | /msg # (st) Bans Cleared By $nick (st)
}
}

 

Try this :P

Edited Mar 17, 2006 4:45 AM by Cryton

 

 

There is nothing so absurd but some philosopher has said it

on @*:TEXT:*:#: {
var %t = $strip($1-), %r = $strip($1) | tokenize 32 %t
if ($aop.level($chan,$nick) == gadmin) {
if (`cb == %r) /access # clear deny | /msg # (st) Bans Cleared By $nick (st)
}
}

 

Try this :P

not working cryton :notworking: :'(

I hope the command is right but its not working :s.

 

 

There is nothing so absurd but some philosopher has said it

I hope the command is right but its not working :s.

yeah not working with me too :(

any one help?

Try this...

 

on @*:TEXT:*:#: {
var %t = $strip($1-), %r = $strip($1) | tokenize 32 %t
if ($level($nick) == gadmin) {
if (`cb == %r) /access # clear deny | /msg # (st) Bans Cleared By $nick (st)
}
}

 

I don't know where people are getting the $aop.level(...) from. However, it never seems to work for me. Just use $level($nick) instead, lol. I wouldn't even use $level($nick), because nicks can be cloned. I'd add gates to levels. It is more secure.

Cause its what TGK showed as a example.

 

 

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

Cause its what TGK showed as a example.

 

not working too :(

sorry guys am bathring u (F) but not working:'(

Ahh, okay. It makes more sense now, lol. I was even trying to look in the mirc help file concerning it, but never realised it is a gd5 command, lol. Okay, then $level($nick) won't help then.

 

P.S.: See, I'm still learning new things about GD5 everyday, lol.

 

P.P.S.:Rumba, you're no bother. that is what we are here for. We'll try to help you out if we can. :pizza:

Edited Mar 17, 2006 6:37 AM by Warrior124

okay, just now tested this code out, and it is working for me...

 

on @*:TEXT:*:#: {
 var %t = $strip($1-), %r = $strip($1) | tokenize 32 %t
 if ($aop.level($chan,$nick) == gadmin) {
   if (`cb == %r) { /access # clear deny | /msg # (st) Bans Cleared By $nick (st) }
 }
}

 

This is basically the same code that was shown which leads me to think you don't have the nickname that is sending `cb as Global Admin. Maybe you have the nick as Global Owner, or something like that. However, it needs to be Global Admin in order for the command to work.

Edited Mar 17, 2006 6:47 AM by Warrior124
Scr|pt : :: Global Admin JOIN :: rumba ::

8Scr|pt's local time: Welcome Global Admin rumba for commands type !commands

яυмвά : `cb

яυмвά : !hop

8Scr|pt has left the conversation.

8Scr|pt has joined the conversation.

 

am a global admin but sorry not working

 

 

Edited Mar 17, 2006 7:42 AM by rumba

Okay, two questions.

 

1: is 8Scr|pt owner in the channel?

 

2: Does it say anything in the "Status Window" whenever you use the command `cb?

яυмвά : `cb

Scr|pt : Bans Cleared By rumba

 

it works now dear thx

i just put it on a empty script and it worked good i mean embty .mrc file

thx again

and thx all for care :lmaojump:

Edited Mar 17, 2006 7:43 AM by rumba

No problem, lol. Glad to help :pizza:

on @*:TEXT:*:#: {
 var %t = $strip($1-), %r = $strip($1) | tokenize 32 %t
 if ($aop.level($chan,$nick) == gadmin) {
   if (`cb == %r) { /access # clear deny | access # add deny >*!*@* | access # add deny >?¯â‚¬چ | /msg # (st) Bans Cleared+Guest & return nicknames are Banned By $nick (st)
  }
}

 

i edited it Warrior to ban guest and return nick names check it

it works with me i think but wanna be sure if the code is right