About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Strongclaw
Newbie


Joined: 16 Feb 2003
Posts: 5

PostPosted: Sun Feb 16, 2003 4:10 am   

Script help
 
I need a script or something that will make a little spot on my bar some where that tells me how many kills I have had since the last time i reset it.

Can anyone help me with this?

Ex of when a (n)pc is killed:
You killed <insert name here>.

And if you can make it put the date and time I kill <insert name here> in a txt file that be great!

Thanks!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4735
Location: Pensacola, FL, USA

PostPosted: Sun Feb 16, 2003 6:02 am   
 
#ALIAS {killreset} {#VAR {killed} {0}}
#TRIGGER {You killed} {killed = (@killed + 1)}
#STATUS {You have made @killed kills!}

dunno bout the text file

Shalimar

AIM: shalimarwildcat
Reply with quote
Strongclaw
Newbie


Joined: 16 Feb 2003
Posts: 5

PostPosted: Sun Feb 16, 2003 4:24 pm   
 
that doesn't work it put this in the bar after i kill something

You have made (0 +1) kills!
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Sun Feb 16, 2003 5:57 pm   
 
try changing
killed = (@killed +1)
to
#add killed 1

--------

moon.icebound.net:9000
Reply with quote
Strongclaw
Newbie


Joined: 16 Feb 2003
Posts: 5

PostPosted: Sun Feb 16, 2003 6:15 pm   
 
nope still get the same thing.... Any other ideas?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Feb 16, 2003 7:14 pm   
 
After making the change Emit suggested, change the contents of the @killed variable to 0.

Kjata
Reply with quote
Strongclaw
Newbie


Joined: 16 Feb 2003
Posts: 5

PostPosted: Sun Feb 16, 2003 7:31 pm   
 
Nope still does the same thing
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Feb 16, 2003 9:08 pm   
 
What same thing? Display (0 + 1) kills?

If you made the change Emit suggested and changed the variable's value to 0, then this should not happen. Try posting the script you have currently.

Kjata
Reply with quote
Strongclaw
Newbie


Joined: 16 Feb 2003
Posts: 5

PostPosted: Sun Feb 16, 2003 9:53 pm   
 
I figured the problem.

Is there a way to make the text file like I said in the first post?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Feb 17, 2003 4:00 am   
 
Add to your experience tracker in the trigger

#TRIGGER {^You killed (*).} {#NOOP Whatever you had there before and add;#FILE 1 DeathLog.txt;#WRITE 1 {I killed %1 at %time()};#CLOSE 1}

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