This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Making Thing Lines up

Old posts that have not been replied to for several years.
Locked
s
spyda
Halfop
Posts: 64
Joined: Mon Aug 12, 2002 2:22 am
Location: Australia

Making Thing Lines up

Post by spyda »

Been Working with TCL for a while now.. getting the hang of it, Thanx to you guys!!.

Got a little problem with one script.
I am asking for it to list a value from the user file then puthelp it to a users with everyone that has the value in there account!

Code: Select all

proc asus_pub_acess(admins) {nick uhost hand vasus} {
 global botnick asus
 if {[validuser $hand] == "0"} {
  puthelp "NOTICE $nick :You are not in my user file."
  puthelp "NOTICE $nick :Usage: \002/msg $botnick regnick <pass> <email>\002"
  return 0
  } 
 if {[getuser $hand XTRA auth] == "0"} {
  puthelp "NOTICE $nick :You are not Identifed"
  puthelp "NOTICE $nick :Usage: \002/msg $botnick identify <login> <password>\002"
  return 0
  }
 if {[getuser $hand XTRA ADMIN] >= "25"} {
  foreach asus_set [userlist] {
   set asus_admin [getuser $asus_set XTRA admin]
   set asus_auth [getuser $asus_set XTRA auth]
   puthelp "NOTICE $nick :$asus(logo) Asustek Services 1.0.1 $asus(logo)"
   puthelp "NOTICE $nick :\002\037************************************\002\037"
   puthelp "NOTICE $nick :\002\002"
   puthelp "NOTICE $nick :Administrator List"
  if {$asus_auth == "1"} {
   set asus_on_off "\002Online\002"
   }
  if {$asus_auth == "0"} {
   set asus_on_off "Offline"
   }
  puthelp "NOTICE $nick :$asus_set $asus_admin $asus_on_off"
  }
 }
}
[3:55pm] -Asustek- [asus] Asustek Services 1.0.1 [asus]
[3:55pm] -Asustek- ************************************
[3:55pm] -Asustek-
[3:55pm] -Asustek- Administrator List
[3:55pm] -Asustek- Kissmine 500 Online
[3:55pm] -Asustek- Hammie 99 Online
[3:55pm] -Asustek- TheDeadMan 100 Online
If anyone can give me a hand with lining it all up... Or have any ideas with a start and i will look it up :)

Thanx for reading it all..
ThePope
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

OK - you said you had a problem, but you didn't say what.

You state somthing about lining up, but that is all.

If you are trying to line things up cosmeticaly, this is Irc related, and not script related. You should look for posts on the forum, within the last month, for information on color codes. There is information that will help provide lined up output.
Locked