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
Dark_Kamui_666
Newbie


Joined: 25 Mar 2003
Posts: 4
Location: USA

PostPosted: Tue Mar 25, 2003 7:10 pm   

Guru Scripting help needed.
 
Hey you Scripting GURU's. This is Kamui with a call out to see what the heck i am doing wrong. I am making a button script that will turn off and on my stuff set up for my ARENA matches on a MUD that I play. I have it all working pretty good. INARENA is just a alias that does what i want when I log in, and OUTARENA is the same. The Major problem it has is that I have is this.

#LO %TIME - This should, but all logic work to put a open log with the name of the Date/Time as it. Although it does not, it opens the log no problem but it does not save the file as: Monday March 24, 2003 8:35 am.txt
Any advice for this? Or how about getting it to auto shut off the log when I click the button again?

#IF (@FFA) {
FFA=0
inarena
#echo Arena Battling System Engaged, Logging Now.
#LO %time
} {
FFA=1
outarena
#echo Arena Battling System Disengaged.
}

The Jaydded Gamer,
The Dark RPG Prince-
Kamui
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Mar 25, 2003 8:26 pm   
 
So, what name does it give the log?

Kjata
Reply with quote
Dark_Kamui_666
Newbie


Joined: 25 Mar 2003
Posts: 4
Location: USA

PostPosted: Tue Mar 25, 2003 9:26 pm   
 
Doesn't, just opens a log without giving it a title. it shows:

Arena Battling System Engaged, Logging Now.
Log is on: Tuesday March 25, 2003 2:10:48 pm.txt

But it is not saved.

The Jaydded Gamer,
The Dark RPG Prince-
Kamui
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Mar 25, 2003 10:12 pm   
 
It doesn't like :'s
#LO %replace(%time,":","_")

Then to pause it
#LO

Ton Diening
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