Skip to content
MSN Addons

Need Help in this code

A TG007 community discussion started by nyt1972.

Closed discussion 10 posts
Page 1 of 1
Closed
Topic #4785 · 10 published posts · 1,122 views

Hello guys,

 

I am using kenobi4fi bot and I want to use this addon for auto commands, but its not working, please help me.

 

 

#auto on

on hostlevel:JOIN:#:{ notice $nick Welcome Host $nick.Type @hostlevel for your commands. }

on hostlevel:TEXT:@hostlevel:#:/notice $nick you have been added to Hostlevel Access. | /notice $nick to host yourself, type @host | /notice $nick to Kick someone type @kick(space)(nickname)(space)(kick reason) | /notice $nick @hostrules @roomrules show u the rules!

on hostlevel:TEXT:@host:#:if ($nick == %away) halt | /mode # +o $nick

on hostlevel:TEXT:@dehost:#:/mode # -o $nick

on hostlevel:TEXT:@kick*:#:if ($nick == $op) halt | /kick # $2-

on hostlevel:TEXT:@kick >:#:halt

on hostlevel:TEXT:@ban >:#:halt

on hostlevel:TEXT:@hostrules:#: /notice $nick Host rules are here: http://groups.msn.com/mygroup/hostrules.msnw

on hostlevel:TEXT:@roomrules:#: /msg # Room rules are here: http://groups.msn.com/mygroup/chatroomrules.msnw

 

on ownerlevel:JOIN:#:{ notice $nick Welcome Owner $nick.Type @ownerlevel for your commands. }

on ownerlevel:TEXT:@ownerlevel:#:/notice $nick You have been added to ownerlevel access, here are your remote commands! | /notice $nick @owner will ownerlevel you up | /notice $nick @kicklist (nick to add to kick list) | /notice $nick @hostrules @roomrules show u the rules!

on ownerlevel:TEXT:@kick*:#:/kick # $2-

on ownerlevel:TEXT:@kicklist*:*:if ($nick == $me) halt | auser kick $address($2,1) $2 | msg $comchan($nick,1) $2 has been added to my Kick List | kick $comchan($nick,1) $2 Kicklisted(H)

on ownerlevel:TEXT:@owner:#:/mode # +q $nick

on ownerlevel:TEXT:@deop:#:/mode # -q $nick

on ownerlevel:TEXT:@host:#:/mode # +o $nick

on ownerlevel:TEXT:@dehost:#:/mode # -o $nick

on ownerlevel:TEXT:@hostrules:#: /notice $nick Host rules are here: http://groups.msn.com/mygroup/hostrules.msnw

on ownerlevel:TEXT:@roomrules:#: /msg # Room rules are here: http://groups.msn.com/mygroup/chatroomrules.msnw

on adminlevel:JOIN:#:{ notice $nick Welcome adminlevel $nick enjoy your day sir. Type @adminlevel for your commands. }

on adminlevel:TEXT:@adminlevel:#:/notice $nick You have been added to the scripts adminlevel access | /notice $nick @op will ownerlevel you up | /notice $nick @host Will Give you hostlevel | /notice $nick @kick >(nick) will kick | /notice $nick @clearq will clear owner access

on adminlevel:TEXT:@more:#:/notice $nick @clearh will clear host access | /notice $nick @clear will clear all access | /notice $nick @bans clears bans | /notice $nick @hop Will hop me | /notice $nick @part will make me leave channel | /notice $nick @talk will turn on bot talk.(*)Type more2(*)

on adminlevel:TEXT:@more2:#:/notice $nick @silence will turn bot talk off | /notice $nick @back will take me out of my cup | @topic + (new topic, changes the topic | /notice $nick @join + (new onjoin message) changes just that

on adminlevel:TEXT:@host:#:/mode # +o $nick

on adminlevel:TEXT:@dehost:#:/mode # -o $nick

on adminlevel:TEXT:@owner:#:/mode # +q $nick

on adminlevel:TEXT:@deowner:#:/mode # -q $nick

on adminlevel:TEXT:@nameon:#:.enable #name | /msg # ::Name list on Sir::

on adminlevel:TEXT:@nameoff:#:.disable #name | /msg # ::Name list off Sir::

on adminlevel:TEXT:@cupon:#:.enable #cup | /msg # ::Cup Kick on Sir::

on adminlevel:TEXT:@cupoff:#:.disable #cup | /msg # ::Cup Kick off Sir::

on adminlevel:TEXT:@funon:#:.enable #fun | /msg # Switched on Sir

on adminlevel:TEXT:@funoff:#:.disable #fun | /msg # Switched off Sir

on adminlevel:TEXT:@hop:#:/hop

on adminlevel:TEXT:@part:#:/quit

on adminlevel:TEXT:@away:#:/away )

on adminlevel:TEXT:@back:#:/away | unset %away

on adminlevel:TEXT:@join*:#:/prop # onjoin : $2-

on adminlevel:TEXT:@op:#:/mode # +q $nick

on adminlevel:TEXT:@deop:#:/mode # -q $nick | /msg # Thankyou (*) $nick (*) for your services

on adminlevel:TEXT:@voiceall:#: { %i = 0 | %nicks = "" | :nextnick | inc %i | if ($nick(#,%i) == $me) { inc %i } | if ($nick(#,%i) == $null) { if ($len(%nicks) > 0) .sockwrite -tn msn.server. $+ $cid MODE $msn.get($cid,fullroom) +vvvvv %nicks | halt } | %nicks = %nicks $nick(#,%i) | if (6 // %i) { .sockwrite -tn msn.server. $+ $cid MODE $msn.get($cid,fullroom) +vvvvv %nicks | %nicks = "" } | goto nextnick }

on adminlevel:TEXT:@specall:#: { %i = 0 | %nicks = "" | :nextnick | inc %i | if ($nick(#,%i) == $me) { inc %i } | if ($nick(#,%i) == $null) { if ($len(%nicks) > 0) .sockwrite -tn msn.server. $+ $cid MODE $msn.get($cid,fullroom) -vvvvv %nicks | halt } | %nicks = %nicks $nick(#,%i) | if (6 // %i) { .sockwrite -tn msn.server. $+ $cid MODE $msn.get($cid,fullroom) -vvvvv %nicks | %nicks = "" } | goto nextnick }

on adminlevel:TEXT:@specoff:#:/mode # -m | /msg # Spec mode is off sir

on adminlevel:TEXT:@specon:#:/mode # +m | /msg # Spec mode is on sir

on adminlevel:TEXT:@spec*:#:/mode # -v $2-

on adminlevel:TEXT:@voice*:#:/mode # +v $2-

 

on adminlevel:TEXT:@kicklist*:*:if ($nick == $me) halt | auser kick $address($2,1) $2 | msg $comchan($nick,1) $2 has been added to my Kick List | kick $comchan($nick,1) $2 Kicklisted(H)

on adminlevel:TEXT:@kick*:#:/kick # $2-

on adminlevel:TEXT:@clear:#:/access # clear deny | /amsg ::Bans cleared as u command sir::

on adminlevel:TEXT:@roomrules:#: /msg # Room rules are here: http://groups.msn.com/mygroup/chatroomrules.msnw

on adminlevel:TEXT:@hostrules:#: /notice $nick Host rules are here: http://groups.msn.com/mygroup/hostrules.msnw

on adminlevel:TEXT:@hu*:#:/mode # +o $2 | msg # .:: Hosted up $2 sir as you commanded ::.

on adminlevel:TEXT:@dh*:#:/mode # -o $2 | msg # .:: Dehosted $2 as you commanded sir ::.

on adminlevel:TEXT:@o*:#:/mode # +q $2 | msg # .:: Ownered $2 as you commanded sir ::.

on adminlevel:TEXT:@dh*:#:/mode # -q $2 | msg # .:: Dehosted $2 as you commanded sir ::.

on adminlevel:TEXT:@update:#:{ msn.getpp | /.msg # S \rTahoma;Current Passport Is Now Updated }

;;;;;;;;;

on *:kick:*:{

set %lkp $knick

set %lkpa $address($knick,1)

}

on adminlevel:TEXT:@banlast:#:/auser kicklist %lkpa : %lkp | msg # %lkp Has been added to the ban list

;;;;;

#auto end

 

u've to add ur self 1st in the level that u wanna to use its commands so be sure from that

 

 

and try to use this

 

;put in da remote and click on ur nick in the nick list or any nick u wanna add him to ur level then try to use the commands

 

menu nicklist {
LEVELS
.Admin list
..add:{ auser adminlevel $address($$1,1)  | notice $$1 You are now an Admin | echo $active $$1 added to adminlist }
..remove:{ ruser adminlevel $address($$1,1)  | notice $$1 You have been removed from my Admin List :).  | echo $active $$1 removed from adminlist }
.-
owner list
..add:{ auser ownerlevel $address($$1,1)  | notice $$1 You are now an owner | echo $active $$1 added to ownerlist }
..remove:{ ruser ownerlevel $address($$1,1)  | notice $$1 You have been removed from my owner List :).  | echo $active $$1 removed from ownerlist }
.-
.host list
..add:{ auser hostlevel $address($$1,1)  | notice $$1 You are now an Host | echo $active $$1 added to hostlist }
..remove:{ ruser hostlevel $address($$1,1)  | notice $$1 You have been removed from my Host List :).  | echo $active $$1 removed from Hostlist }
}

 

hope i helped

The user is already added to that level but even then none of the command is working. But b4 I checked these commands and it worked well with 8ball. now I want to use with kenobi.

ok u tried that wt i posted 4 u?

yes I did add this code already.

you dont need to add that code

its allready in kenobi

just go to vincula settings and tun OFF "show users own colours"

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

that option is unchecked.

if you added that code the ya have it all twice now

i would suggest you either remove it or download kenobi again

as it has the @admin etc allready in it

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

ok Now the problem in this code is that it works fine on ownerlevel and hostlevel but not with adminlevel.

 

 

#auto on

on hostlevel:TEXT:@hostrules:#: /notice $nick Host rules are here: http://groups.msn.com/Islam4Allahusa/hostrules.msnw

on hostlevel:TEXT:@chatrules:#: /msg # Chat rules are here: http://groups.msn.com/islam4allahusa/chatrules.msnw

on hostlevel:TEXT:@helpdesk:#: /msg # Help Desk is here: http://groups.msn.com/islam4allahusa/helpdesk1.msnw

 

on ownerlevel:TEXT:@hostrules:#: /notice $nick Host rules are here: http://groups.msn.com/Islam4Allahusa/hostrules.msnw

on ownerlevel:TEXT:@chatrules:#: /msg # Chat rules are here: http://groups.msn.com/islam4allahusa/chatrules.msnw

on ownerlevel:TEXT:@helpdesk:#: /msg # Help Desk is here: http://groups.msn.com/islam4allahusa/helpdesk1.msnw

on adminlevel:TEXT:@nameon:#:.enable #name | /msg # ::Name list on Sir::

on adminlevel:TEXT:@nameoff:#:.disable #name | /msg # ::Name list off Sir::

on adminlevel:TEXT:@cupon:#:.enable #cup | /msg # ::Cup Kick on Sir::

on adminlevel:TEXT:@cupoff:#:.disable #cup | /msg # ::Cup Kick off Sir::

on adminlevel:TEXT:@funon:#:.enable #fun | /msg # Switched on Sir

on adminlevel:TEXT:@funoff:#:.disable #fun | /msg # Switched off Sir

on adminlevel:TEXT:@hop:#:/hop

on adminlevel:TEXT:@part:#:/quit

on adminlevel:TEXT:@away:#:/away )

on adminlevel:TEXT:@back:#:/away | unset %away

on adminlevel:TEXT:@voiceall:#: { %i = 0 | %nicks = "" | :nextnick | inc %i | if ($nick(#,%i) == $me) { inc %i } | if ($nick(#,%i) == $null) { if ($len(%nicks) > 0) .sockwrite -tn msn.server. $+ $cid MODE $msn.get($cid,fullroom) +vvvvv %nicks | halt } | %nicks = %nicks $nick(#,%i) | if (6 // %i) { .sockwrite -tn msn.server. $+ $cid MODE $msn.get($cid,fullroom) +vvvvv %nicks | %nicks = "" } | goto nextnick }

on adminlevel:TEXT:@specall:#: { %i = 0 | %nicks = "" | :nextnick | inc %i | if ($nick(#,%i) == $me) { inc %i } | if ($nick(#,%i) == $null) { if ($len(%nicks) > 0) .sockwrite -tn msn.server. $+ $cid MODE $msn.get($cid,fullroom) -vvvvv %nicks | halt } | %nicks = %nicks $nick(#,%i) | if (6 // %i) { .sockwrite -tn msn.server. $+ $cid MODE $msn.get($cid,fullroom) -vvvvv %nicks | %nicks = "" } | goto nextnick }

on adminlevel:TEXT:@specoff:#:/mode # -m | /msg # Spec mode is off sir

on adminlevel:TEXT:@specon:#:/mode # +m | /msg # Spec mode is on sir

on adminlevel:TEXT:@spec*:#:/mode # -v $2-

on adminlevel:TEXT:@voice*:#:/mode # +v $2-

 

on adminlevel:TEXT:@kicklist*:*:if ($nick == $me) halt | auser kick $address($2,1) $2 | msg $comchan($nick,1) $2 has been added to my Kick List | kick $comchan($nick,1) $2 Kicklisted(H)

on adminlevel:TEXT:@kick*:#:/kick # $2-

on adminlevel:TEXT:@clear:#:/access # clear deny | /amsg ::Bans cleared as u command sir::

on adminlevel:TEXT:@chatrules:#: /msg # Chat rules are here: http://groups.msn.com/islam4allahusa/chatrules.msnw

on adminlevel:TEXT:@helpdesk:#: /msg # Help Desk is here: http://groups.msn.com/islam4allahusa/helpdesk1.msnw

on adminlevel:TEXT:@hostrules:#: /notice $nick Host rules are here: http://groups.msn.com/Islam4Allahusa/hostrules.msnw

on adminlevel:TEXT:@hu*:#:/mode # +o $2 | msg # .:: Hosted up $2 sir as you commanded ::.

on adminlevel:TEXT:@dh*:#:/mode # -o $2 | msg # .:: Dehosted $2 as you commanded sir ::.

on adminlevel:TEXT:@o*:#:/mode # +q $2 | msg # .:: Ownered $2 as you commanded sir ::.

on adminlevel:TEXT:@dh*:#:/mode # -q $2 | msg # .:: Dehosted $2 as you commanded sir ::.

on adminlevel:TEXT:@update:#:{ msn.getpp | /.msg # S \rTahoma;Current Passport Is Now Updated }

;;;;;;;;;

on *:kick:*:{

set %lkp $knick

set %lkpa $address($knick,1)

}

on adminlevel:TEXT:@banlast:#:/auser kicklist %lkpa : %lkp | msg # %lkp Has been added to the ban list

;;;;;

#auto end

 

ok thanx,

 

I got it myself, it shuld be adminlevellevel instead of adminlevel in kenobi.