I hope someone might be able to help me and tell me if this code might work in buzzen its a basic connection code I was given for spcn (which works) and what iv done is iv been messing about with it to get it to work in buzzen .... it lets you do the email and password and it does try to connect to buzzen ... so what I will do is put both the spcn code and the buzzen code below and let you see both so someone might be able to tell me what they think ... I know it will need a roomlister and I know someone that is doing one ... as always nais tuke = thank you for any replies and please remember Im still learning ![]()
SPCN
on *:START:{
if ($getuser == $null) { adduser $$?"Enter your email account" | adduserpw $$?"Enter its password" }
if (!$exists(SPCNFont.ini)) { dialog -m font font }
connect
}
on *:CONNECT:{
if ($getuser == $null) { adduser $$?"Enter your email account" | adduserpw $$?"Enter its password" }
NICKSERV IDENTIFY $getuser $getuserpw
}
on *:JOIN:#:{
if ($nick == $me) { who # }
}
on *:disconnect:{ echo # 12 DisConnected from SPCNChat }
alias adduser { writeini spcn.ini account email $1 }
alias adduserpw { writeini spcn.ini account pass $1 }
alias getuser { return $readini(spcn.ini,account,email) }
alias getuserpw { return $readini(spcn.ini,account,pass) }
alias connect { server two.irc.sparkpea.net }
dialog font {
title "Font Dialog By BOx"
size -1 -1 102 63
option dbu
combo 1, 2 14 60 50, sort size drop
text "Font Type", 2, 18 5 26 8
combo 3, 2 39 60 50, sort size drop
text "Font Color", 4, 18 27 26 8
check "Bold", 5, 74 14 27 10
check "Italic", 6, 74 25 27 10
check "Random Color", 7, 2 50 43 10
check "Use Font", 8, 67 1 33 10
}
alias pini {
if ($2 == $null) return $readini(SPCNFont.ini,n,settings,$$1)
if ($1 == r) remini SPCNFont.ini settings $$2
else writeini SPCNFont.ini settings $$1 $2-
}
On *:Dialog:font:init:*: {
if ($pini(do.font)) did -c font 8
if ($pini(font.b)) did -c font 5
if ($pini(font.i)) did -c font 6
if ($pini(font.r)) did -c font 7
didtok font 3 44 Black,White,DarkBlue,DarkGreen,Red,DarkRed,Purple,DarkYellow,Yellow,Green,Teal,C
yan,Blue,Pink,DarkGray,Gray
didtok font 1 44 Arial,Tahoma,Arial Black,Arial Narrow,Century,Comic Sans MS
did -c font 3 $didwm(font,21,$pini(font.color) $+ *,1)
did -c font 1 $didwm(font,19,$pini(font.font) $+ *,1)
}
on *:dialog:font:sclick:*:{
if ($did == 8) { if ($pini(do.font)) { pini r do.font | did -u font 8 }
else { pini do.font $true | did -c font 8 }
}
if ($did == 5) { if ($pini(font.b)) { pini r font.b | did -u font 5 }
else { pini font.b $true | did -c font 5 }
setfontcode
}
if ($did == 6) { if ($pini(font.i)) { pini r font.i | did -u font 6 }
else { pini font.i $true | did -c font 6 }
setfontcode
}
if ($did == 7) { if ($pini(font.r)) { pini r font.r | did -u font 7 }
else { pini font.r $true | did -c font 7 }
}
if ($did == 1) { pini font.font $did(font,$did).seltext | setfontcode }
if ($did == 3) { pini font.color $did(font,$did).seltext | setfontcode }
}
alias setfontcode {
var %x = $pini(font.color)
var %c $replace(%x,white,1,black,2,darkred,3,darkgreen,4,darkblue,5,darkyellow,6,purple,7,teal,8,
lightgray,9,darkgray,\n,red,11,green,12,blue,\r,yellow,14,pink,15,cyan,16)
%x = 1
if ($pini(font.b)) inc %x
if ($pini(font.i)) %x = $calc(%x + 2)
if ($pini(font.u)) %x = $calc(%x + 4)
pini font.code %c %x $replace($pini(font.font),$chr(32),\b) $+;0
}
alias webfont {
if ($pini(do.font)) {
if ($gettok($pini(font.code),1,32) isnum) var %fc = $chr($gettok($pini(font.code),1,32))
else var %fc = $gettok($pini(font.code),1,32)
if ($pini(font.r)) {
%fc = $rand(1,16)
while ((%fc == 10) || (%fc == 13)) %fc = $rand(1,16)
}
return $chr(1) $+ S $iif($pini(font.r),$chr(%fc),%fc) $+ $chr($gettok($pini(font.code),2,32)) $+ $gettok($pini(font.code),3,32) $1- $chr(1)
}
else return $1-
}
alias mircfont {
if (!$pini(do.font)) return $1-
var %a = $gettok($pini(font.code),1,32)
var %b = $gettok($pini(font.code),2,32)
if (%a == 1) %a = 00
elseif (%a == 2) %a = 01
elseif (%a == 3) %a = 05
elseif (%a == 4) %a = 03
elseif (%a == 5) %a = 02
elseif (%a == 6) %a = 07
elseif (%a == 7) %a = 06
elseif (%a == 8) %a = 10
elseif (%a == 9) %a = 15
elseif (%a == 11) %a = 04
elseif (%a == 12) %a = 09
elseif (%a == 14) %a = 08
elseif (%a == 15) %a = 13
elseif (%a == 16) %a = 11
elseif (%a == \r) %a = 12
elseif (%a == \n) %a = 14
else %a = 01
return $iif(%b == 2,$chr(2)) $+ $chr(3) $+ %a $+ $1- $+ $chr(1)
}
on *:input:*:{
if (/* iswm $1) || (//* iswm $1) { return }
msg # $webfont($1-)
halt
}
menu channel {
-
Fonts:{ dialog -m font font }
-
Connect
.server 2 :{ server -m two.irc.sparkpea.net }
BUZZEN
on *:START:{
if ($getuser == $null) { adduser $$?"Enter your email account" | adduserpw $$?"Enter its password" }
if (!$exists(BuzzenFont.ini)) { dialog -m font font }
connect
}
on *:CONNECT:{
if ($getuser == $null) { adduser $$?"Enter your email account" | adduserpw $$?"Enter its password" }
NICKSERV IDENTIFY $getuser $getuserpw
}
on *:JOIN:#:{
if ($nick == $me) { who # }
}
on *:disconnect:{ echo # 12 DisConnected from BuzzenChat }
alias adduser { writeini buzzen.ini account email $1 }
alias adduserpw { writeini buzzen.ini account pass $1 }
alias getuser { return $readini(buzzen.ini,account,email) }
alias getuserpw { return $readini(buzzen.ini,account,pass) }
alias connect { server irc.buzzen.com }
dialog font {
title "Font Dialog By BOx"
size -1 -1 102 63
option dbu
combo 1, 2 14 60 50, sort size drop
text "Font Type", 2, 18 5 26 8
combo 3, 2 39 60 50, sort size drop
text "Font Color", 4, 18 27 26 8
check "Bold", 5, 74 14 27 10
check "Italic", 6, 74 25 27 10
check "Random Color", 7, 2 50 43 10
check "Use Font", 8, 67 1 33 10
}
alias pini {
if ($2 == $null) return $readini(BuzzenFont.ini,n,settings,$$1)
if ($1 == r) remini BuzzenFont.ini settings $$2
else writeini BuzzenFont.ini settings $$1 $2-
}
On *:Dialog:font:init:*: {
if ($pini(do.font)) did -c font 8
if ($pini(font.b)) did -c font 5
if ($pini(font.i)) did -c font 6
if ($pini(font.r)) did -c font 7
didtok font 3 44 Black,White,DarkBlue,DarkGreen,Red,DarkRed,Purple,DarkYellow,Yellow,Green,Teal,C
yan,Blue,Pink,DarkGray,Gray
didtok font 1 44 Arial,Tahoma,Arial Black,Arial Narrow,Century,Comic Sans MS
did -c font 3 $didwm(font,21,$pini(font.color) $+ *,1)
did -c font 1 $didwm(font,19,$pini(font.font) $+ *,1)
}
on *:dialog:font:sclick:*:{
if ($did == 8) { if ($pini(do.font)) { pini r do.font | did -u font 8 }
else { pini do.font $true | did -c font 8 }
}
if ($did == 5) { if ($pini(font.b)) { pini r font.b | did -u font 5 }
else { pini font.b $true | did -c font 5 }
setfontcode
}
if ($did == 6) { if ($pini(font.i)) { pini r font.i | did -u font 6 }
else { pini font.i $true | did -c font 6 }
setfontcode
}
if ($did == 7) { if ($pini(font.r)) { pini r font.r | did -u font 7 }
else { pini font.r $true | did -c font 7 }
}
if ($did == 1) { pini font.font $did(font,$did).seltext | setfontcode }
if ($did == 3) { pini font.color $did(font,$did).seltext | setfontcode }
}
alias setfontcode {
var %x = $pini(font.color)
var %c $replace(%x,white,1,black,2,darkred,3,darkgreen,4,darkblue,5,darkyellow,6,purple,7,teal,8,
lightgray,9,darkgray,\n,red,11,green,12,blue,\r,yellow,14,pink,15,cyan,16)
%x = 1
if ($pini(font.b)) inc %x
if ($pini(font.i)) %x = $calc(%x + 2)
if ($pini(font.u)) %x = $calc(%x + 4)
pini font.code %c %x $replace($pini(font.font),$chr(32),\b) $+;0
}
alias webfont {
if ($pini(do.font)) {
if ($gettok($pini(font.code),1,32) isnum) var %fc = $chr($gettok($pini(font.code),1,32))
else var %fc = $gettok($pini(font.code),1,32)
if ($pini(font.r)) {
%fc = $rand(1,16)
while ((%fc == 10) || (%fc == 13)) %fc = $rand(1,16)
}
return $chr(1) $+ S $iif($pini(font.r),$chr(%fc),%fc) $+ $chr($gettok($pini(font.code),2,32)) $+ $gettok($pini(font.code),3,32) $1- $chr(1)
}
else return $1-
}
alias mircfont {
if (!$pini(do.font)) return $1-
var %a = $gettok($pini(font.code),1,32)
var %b = $gettok($pini(font.code),2,32)
if (%a == 1) %a = 00
elseif (%a == 2) %a = 01
elseif (%a == 3) %a = 05
elseif (%a == 4) %a = 03
elseif (%a == 5) %a = 02
elseif (%a == 6) %a = 07
elseif (%a == 7) %a = 06
elseif (%a == 8) %a = 10
elseif (%a == 9) %a = 15
elseif (%a == 11) %a = 04
elseif (%a == 12) %a = 09
elseif (%a == 14) %a = 08
elseif (%a == 15) %a = 13
elseif (%a == 16) %a = 11
elseif (%a == \r) %a = 12
elseif (%a == \n) %a = 14
else %a = 01
return $iif(%b == 2,$chr(2)) $+ $chr(3) $+ %a $+ $1- $+ $chr(1)
}
on *:input:*:{
if (/* iswm $1) || (//* iswm $1) { return }
msg # $webfont($1-)
halt
}
menu channel {
-
Fonts:{ dialog -m font font }
-
Connect
.connect{ server irc.buzzen.com }
.png.a22ae68f9e2a01349c010b55164b5084.png)