Skip to content
MSN

!commands and show user colors

A TG007 community discussion started by DreaM.

Discussion 14 posts
Page 1 of 1
Open
Topic #714 · 14 published posts · 896 views

hi all biggrin.gif

 

I know that gatekeeper knows the answer of this question because we had a talk about it before in err0r.net so I hope he helps.

 

Question is:

 

as you all know when we check show user colors in vincula, the script never replies for !commands and gatekeeper said once when he was talking about his theme that we should use variables after the strip etc........

 

so if I want to let !commands work with vincula while show user colos is activated, what should I replace ? help.gif

you would need to replace the coding in vincula with something else as it, as the way it has been done in there adds some invisible characters at the front of the text , thats why the commands dont workwhen you show users own colours

My code does NOT have bugs. It just develops random features.

on *:text:*:#: {

if (*!command* iswm $1-) do stuff

}

 

If i remember right something like that should work

first of all thank you ozzy but can you give more help by pasting the code that should be replaced and by what also? help.gif

 

thank you also daemon for your caring to reply but lol daemon that was not the question you got in mind embar.gif

its lots of bits of code that need changing and im not going to go through vincula to find each bit , sorry

My code does NOT have bugs. It just develops random features.

no need to modify any code

 

this is how i have mine set up

 

on *:TEXT:*:#: {

var %text = $strip($1-)

if (!<command> == $gettok(%text,1,32)) { command }

}

 

the above text will respond to only the first word. so they would need to be like that. if you want it to be the whole line, just use %text instead of $gettok. its all confusing at first, and i wouldn't recommend it if you donno what your doing with $gettok and that. but if you do, then yea, go for it.

You could use

tokenize 32 $strip($1-) 

btw on some of the font choices $strip wont work , as it doesnt use those chrs

 

 

what vincula does , is leave some invisible chrs infront of the first word

 

eg

 

lets say # is the invisible chr

this means the following would look like this

"testing commands"

 

##testing commands

 

 

so it would put 2 of the chrs infront of the first word

 

i think one of them is $chr(3)

My code does NOT have bugs. It just develops random features.

ozzy, i've never had that problem and i've been using the system for months so i donno.

$strip() should work, because altho MSN uses invisible characters that $strip() doesn't remove, vincula translates all of MSN's characters into normal mIRC color/font codes that $strip() WILL remove.

bfush.PNG

I Got it gatekeeper but is not there anyway to do it by updating vincula codes inestead of using var for all ! commands ?

you don't have to put in a command for every single !command. all you should have to do is insert one command at the beginning:

on *:TEXT:*:#:{
 tokenize 32 $strip($1-)
 if (!q == $1) mode $chan +q $nick
 if (!ban == $1) { kick $chan $$2 $3- | access $chan add deny $ial($$2).addr 0 : $+ $3- }
;etc etc etc
}

that should work fine with vincula.

bfush.PNG

yea vex is right. but if you use new on text all the time, then yes you will need to use $strip all the time. thats why you code it like vex has it where it views all text, and has all the if statements in the one on text event.

thank you guys for reply fixed.gif