Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Atreides_096
Wanderer


Joined: 21 Jan 2005
Posts: 99
Location: Solvang, CA

PostPosted: Tue Feb 28, 2006 3:31 am   

Status Windows
 
I just set up a status window a few days ago, and I fell completely in love with it. However, it's been lagging my zmud down to nearly frozen. So my question is three-fold...

1) Is the status window practical in any way, or will it lag me no matter what?

2) Will the status window be better in cmud?

3) Assuming the answer to 1 is Yes, and 2 is No, I'm going to paste the code for my status window below. You'll notice that the only IF statements in there revolve around colorizing and spacing. I am wondering though if perhaps these if statements are the cause of the lag? And if so, if there is actually any way to avoid them and keep the look of the window? (%concatting variables perhaps? or maybe using just 1 single DB for the STW so it doesn't check all vars? Can it be told to check only 1 DB?).. anyway, the code is below. I strongly suspect that it just can't be made to work, but if someone can point out the errors of my ways, I will be forever grateful ;) Only had the STW for 3 days, But it had already become about my favorite feature in zmud...

Code:
%ansi( blue) -------------------------------
%if( %int( %db( @HourReport2, BonusExpThisHour))>0, "", "   ")%ansi( white) Level %ansi( hi, green)%if( %len( @clevel)=1, "  "@clevel, %if( %len( @clevel)=2, " "@clevel, @clevel)) %ansi( 8)|%ansi( white) Hour: %ansi( hi, green)%format( "&1.0n", %db( @HourReport, Exp))%ansi( grey)%if( %int( %db( @HourReport2, BonusExpThisHour))>0, %ansi( hi, cyan)/%ansi( 8)%format( "&1.0n", %int( %db( @HourReport2, BonusExpThisHour))))%if( %class( GroupInfo|DoubleTracker|TrackOn), %cr%ansi( white)"       "This Double: %ansi( hi, green)%format( "&1.0n", @dblxp))
%ansi( blue) -------------------------------
%ansi( high, %if( @campaign="Yes", red, %if( @campaign="No", cyan, green)))%if( @campaign="Yes", "    "You may take a campaign, %if( @campaign="No", "   "You must level to campaign, "     "You are on a campaign.))
%ansi( blue) -------------------------------
%ansi( high, white)"       "Spellup Mode " "%ansi( high, cyan)%if( %class( :Checkup), Full, Short)
%ansi( blue) -------------------------------
%ansi( white) %proper( @chpot):@DisplaySpacing(@chpot) %ansi( %if( @hpotc>10, 11, 12))@hpotc"  "%if( %len( @hpotc)=1, "  ", %if( %len( @hpotc)=2, " ", ""))%ansi( 8)"("%ansi( grey)@htcheck%%ansi( 8)")"
%ansi( white) %proper( @cmpot):@DisplaySpacing(@cmpot) %ansi( %if( @mpotc>10, 11, 12))@mpotc"  "%if( %len( @mpotc)=1, "  ", %if( %len( @mpotc)=2, " ", ""))%ansi( 8)"("%ansi( grey)@mtcheck%%ansi( 8)")"
%ansi( blue) -------------------------------
%ansi( high, %if( %db( @Called_Wars_DB, GoodWar)="Yes", red, white)) %db( @Called_Wars_DB, WarStatus): %ansi( high, green)%if( %db( @Called_Wars_DB, WarType)="Genocide", Geno, %db( @Called_Wars_DB, WarType))%ansi( high, white) for %ansi( high, cyan)%db( @Called_Wars_DB, WarBottomLevel)-%db( @Called_Wars_DB, WarTopLevel)%if( %db( @Called_Wars_DB, TerminationTime)!=%null, %ansi( high, red) %db( @Called_Wars_DB, TerminationTime)m)%if( %eval( %ctime-%db( @Called_Wars_DB, SecondRemaining))<60, %ansi( high, yellow) %eval( 60-%eval( %ctime-%db( @Called_Wars_DB, SecondRemaining)))s, %if( %db( @Called_Wars_DB, PreperationTime)>1, %ansi( grey) %db( @Called_Wars_DB, PreperationTime)m)) %if( %int( %db( @Called_Wars_DB, Entrants))>0, %ansi( high, green)E-%db( @Called_Wars_DB, Entrants))
%ansi( blue) -------------------------------
%ansi( high, white) AutoQuaffer %ansi( high, %if( %class( Autoquaff), green, cyan))%if( %class( Autoquaff), On" ", Off)%ansi( grey)| %ansi( high, white)Target %ansi( high, green)%if( %len( @target)>5, %left( @target, 5), @target)
%ansi( blue) -------------------------------
%ansi( white) Autolooting %ansi( hi, %if( @autoloot=="off", cyan, green))%if( @autoloot=="off", Off, "On ")%ansi( grey)| %ansi( white)Subbed %ansi( hi, %if( @subbed="None", red, gold))@subbed
%ansi( blue) -------------------------------


Last edited by Atreides_096 on Tue Feb 28, 2006 3:54 pm; edited 2 times in total
Reply with quote
ZealousAnonymous
Wanderer


Joined: 06 Jan 2006
Posts: 70

PostPosted: Tue Feb 28, 2006 5:47 am   
 
I know I had mxp in my status window for awhile but had to scrap it due to slowdown. :(
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Feb 28, 2006 1:37 pm   
 
MXP slows down the status window?...*mutter* that might explain what happens to me as well...*sigh*
_________________
http://www.Aardwolf.com
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net