Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » String Manipulation
Forum Rules | Mark all | Recent Posts

String Manipulation
< Newer Topic :: Older Topic > See messege for description :P

Pages:<< prev 1 next >>
Post is unread #1 Feb 1, 2003, 10:54 pm
Go to the top of the page
Go to the bottom of the page

Cray
Member
GroupMembers
Posts9
JoinedDec 20, 2002

Alright, lets just be blunt shall we? B)

I want the lines to change depending on what line number it is. Sure that doesn't seem to make much sense, so lets use an example:

Line One Will be blue.
Line Two will be purple.
Line Three will be blue again.
Line Four will be purple again.


Mainly its for my wizlist, which scrolls down. Such as:

[1007] Cray Taypeon@hotmail.com


So basically i'd be in blue, the person under would be in purple, and repeat.
Sorry for the detailness :P Just wanted to make sure I didn't get ye old "Can you explain further what you actually want done?" Or yadda yadda. Remember, just for the colours, i already have my wizlist autoformat how i want it, cept for the colour based on line number.. :angry:

Thanks in advance to Anyone who can help :lol:
       
Post is unread #2 Feb 2, 2003, 2:41 am
Go to the top of the page
Go to the bottom of the page

Cray
Member
GroupMembers
Posts9
JoinedDec 20, 2002

Well, After 2 hours of tinkering, Yay! Declared an int for count, increased the count everytime it went through the loop, and just gave it an:

 if ( count%2 == 1 )
 {
    line1 blue (Yeah yeah, you get what i mean though :P)
 }
 else
 {
    line2 purple( And again )
 }


I feel like a fool now :blink: Oh well, how easy was that ^_^
       
Pages:<< prev 1 next >>