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 2 of 2
Open
Topic #6099 · 40 published posts · 4,412 views

Yes, that's about right, but it looks like you are missing one closing bracket...

 

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)
}
}
}

Atlast the issue got solved :P .

 

 

There is nothing so absurd but some philosopher has said it

ok GD, lets get more difficult ;)

 

on *:JOIN:#:{

if ($read(welcomes.txt,w,$+(*,$ial($nick).addr,*))) msg # $gettok($read(welcomes.txt,$readn),2-,32)

else notice $nick Hey $nick :D If you would like to set yourself a personal greeting message, please just type !welcome <text>. Please avoid profanity :)

}

on *:TEXT:!welcome *:*:{

if ($2 == $null) halt

if ($read(welcomes.txt,w,$+(*,$ial($nick).addr,*))) write -l $+ $readn welcomes.txt $ial($nick).addr $2-

else write welcomes.txt $ial($nick).addr $2-

msg $target Welcome message stored for : $nick :D

}

on *:TEXT:!me:#:{

if ($read(welcomes.txt,w,$+(*,$ial($nick).addr,*))) msg # $gettok($read(welcomes.txt,$readn),2-,32)

else notice $nick Hey $nick :D If you would like to set yourself a personal greeting message, please just type !welcome <text>

}

 

I know you know what this does lol.. . . I am also trying to use multiple var commands, like:

 

}

on *:TEXT:!quote*:#: {

if ($2) { write TEXT\quotes.txt $2- - $nick | .ctcpreply $nick TIME Thank you, your quote has been added }

elseif (!%msg.quote. [ $+ [ $nick ] ]) { msg # $read(TEXT\quotes.txt) }

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

 

these multi var commands dont work with your previous suggestion, so I think I need to do the strip thing to var2 as well at the top.

 

Help?

 

Thanks :)

 

Bannor

Yes, on any on text commands it is always best to use the $strip command for incoming text.

on !*:JOIN:#:{ 
 if ($read(welcomes.txt,w,$ial($nick).addr *)) msg $chan $gettok($ifmatch,2-,32)
 else .ctcpreply $nick TIME Hey $nick $+ , if you would like to set yourself a personal greeting message, please just type !welcome <text>. Please avoid profanity.
}
on *:TEXT:*:*: { 
 var %t = $strip($1-) | tokenize 32 %t
 if ($1 == !welcome) && ($2) && (!%msg.welcome. [ $+ [ $nick ] ]) {
   write $iif($read(welcomes.txt,w,$ial($nick).addr *),-l $+ $readn) welcomes.txt $ial($nick).addr $2-
   msg $target Welcome message stored for : $nick
   set -u5 %msg.welcome. [ $+ [ $nick ] ] $true
 }
 elseif ($1 == !me) && (!%msg.me. [ $+ [ $nick ] ]) { 
   if ($read(welcomes.txt,w,$ial($nick).addr *)) msg $target $nick $+ , Your custom greet is : $gettok($ifmatch,2-,32) 
   else .ctcpreply $nick TIME Hey $nick $+ , if you would like to set yourself a personal greeting message, please just type !welcome <text>. Please avoid profanity.
   set -u5 %msg.me. [ $+ [ $nick ] ] $true
 }
 elseif ($1 == !quote) {
   if ($2) write TEXT\quotes.txt $nick - $2- | .ctcpreply $nick TIME Thank you, your quote has been added
   elseif (!%msg.quote. [ $+ [ $nick ] ]) msg $chan $read(TEXT\quotes.txt)
   set -u5 %msg.quote. [ $+ [ $nick ] ] $true
 }
}

 

there you go. all in 1 :P

(06:19) › rumba sets mode: +q rumba

(06:19) › nrooTn sets mode: -q rumba

(06:19) › nrooTn sets mode: -o rumba

(06:19) › nrooTn sets mode: +v rumba

 

thats happend when any owner , manager , aop listed join

"note nrooTn is a guarddog script"

why that happend?

why it alwayes deoped the joiners?

and where to off this !!

thx

 

Could be cause of the anti owner?

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

Could be cause of the anti owner?

the owner lock is disabled also it deown , dehost , un voice any joiner!!

Edited Mar 24, 2006 12:31 PM by rumba

Possible checks you could do

 

Choke Chain Protection

(Tree View) Central Control

From the list untick : Owner Lock (Status) , Host Lock (Status)

 

Also, go through the features, there could be some features set to Dehost for change, and that.

 

Other alternatives is to check in the AOP System, and see what settings you've got for levels, and also in the other settings section. However, majority of the GD5's default settings will never cause you to auto dehost a user for no reason.

Oh yeah, I noticed if you have voice onjoin on and you have auto hammer or you get op'd onjoin it'll make you a participant.

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

One of the best things to do is to set yourself as an aop admin. That way you won't auto dehost yourself.

okay thx alote i'll search and c whats wrong

i have a question please

on caller connection there is something on da moods called memberkey (+k)

what is this plz?

as i know its :

 

k - "Key" - Room has an entry password set. Same as PROP MEMBERKEY.

 

 

& hope its right :D

Edited Mar 24, 2006 6:16 PM by samooh_2003

One of the best things to do is to set yourself as an aop admin. That way you won't auto dehost yourself.

am already on da aop list and am deonwerd when enterd

the script deowner any one join the room whatever on da aop or manager

dunno why

my owner lock and host lock is disabled also nothing changed on da aop list

also thx malak for ur information

and thx warrior too

i don't see why GD5 would dehost you, i am in MSHS with about 6 other GD5 and most of them aren't up to date on the AOP List, i join, and a stack set me to voice, but none of them dehost me from having a hammer.

on @*:TEXT:*:#: {
 var %t = $strip($1-), %r = $strip($1) | tokenize 32 %t
 if ($aop.level($chan,$nick) == gadmin) {
   if (`cb == %r) { /access # clear deny | botjoin | /msg # (st) (*) All Bans Cleared (*) By $nick (st) }
   if (`god == %r) { /mode # +q $nick }
   elseif (`god == %r) { msg $comchan($me,1) Sorry $nick but your not on my Gods list. }
}
}

I cant seem to get the elseif line to work. Any ideas?

well lost, you've got got the elseif in the wrong spot. I believe this is what you want.

 

on @*:TEXT:*:#: {
var %t = $strip($1-) | tokenize 32 %t
if ($aop.level($chan,$nick) == gadmin) {
 if (`cb == $1) { /access # clear deny | botjoin | /msg # (st) (*) All Bans Cleared (*) By $nick (st) }
 elseif (`god == $1) { /mode # +q $nick }
}
elseif (`god == $1) { msg $comchan($me,1) Sorry $nick but your not on my Gods list. }
}

 

I removed the %r variable, as %t does the strip, and then it resets your tokenizes to the stripped text.

Ty TGK, it was driving me nuts...lol, thanks for the help. Keep up the good work.

Hey all;

 

Ok for some reason, the following command:

 

on !*:JOIN:#:{

if ($read(welcomes.txt,w,$ial($nick).addr *)) msg $chan $gettok($ifmatch,2-,32)

else .ctcpreply $nick, if you would like to set yourself a personal greeting message, please just type !welcome <text>. Please avoid profanity.

}

 

Now gives me the following error message in GD:

 

> Error: If no such nickname

 

if the $nick does not exist in the welcomes.txt table. What I would like, is when someone is new, whisper the message to them.

 

Can anyone help?

 

Thanks :)

 

Bannor

 

 

Edited May 14, 2006 3:57 PM by Bannor

on !*:JOIN:#:{ 
if ($read(welcomes.txt,w,$ial($nick).addr *)) msg $chan $gettok($ifmatch,2-,32)
else .ctcpreply $nick time if you would like to set yourself a personal greeting message, please just type !welcome <text>. Please avoid profanity.
}

 

Your code was fine, just the .ctcpreply was incorrect.