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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Sun Feb 16, 2003 7:49 am   

Tracking your xp...
 
Could anyone help me in making a trigger that keep tracks of the xp you got since you log on? The trigger is...


You receive 3530934 experience

And err, hmm, a better question is where would I go to check on the amount of xp I got during my log in...
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Sun Feb 16, 2003 7:59 am   
 
oh, and also, is it possible to say, log it to a textfile everytime I log off the mud? Say, amount of xp and the date I got them all..
Reply with quote
shalimar
GURU


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

PostPosted: Sun Feb 16, 2003 8:14 am   
 
#ALIAS {atconnect} {#VAR {exp} {0}}
#STATUS {EXP @exp}

you could set an alias to atdisconnect to save the current value value of @exp and %time(c) to a database

Shalimar

AIM: shalimarwildcat
Reply with quote
shalimar
GURU


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

PostPosted: Sun Feb 16, 2003 8:17 am   
 
oh i forgot the incrementor
#TRIGGER {You receive %d experience} {exp = @exp + %1}

Shalimar

AIM: shalimarwildcat
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Sun Feb 16, 2003 9:43 am   
 
quote:

you could set an alias to atdisconnect to save the current value value of @exp and %time(c) to a database

Shalimar

AIM: shalimarwildcat



heh, err, how do I do that? *blusH*
Reply with quote
shalimar
GURU


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

PostPosted: Sun Feb 16, 2003 10:36 am   
 
im afraid i havent even looked into databases yet, perhaps someone else can field that part

Shalimar

AIM: shalimarwildcat
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sun Feb 16, 2003 7:57 pm   
 
#TRIGGER {You receive (%d) experience} {#FILE 1 deathlog.txt;#WRITE 1 {%time() %1};#CLOSE 1}

If you want to track what you killed for it, maybe you can pull
from the line above it?


Something similar to:
#TRIGGER {You hear the deathcry of (*).$You receive (%d) experience} {#FILE 1 deathlog.txt;#WRITE 1 {%time() %1 for %2 xp};#CLOSE 1}

Ton Diening
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Mon Feb 17, 2003 12:21 am   
 
Hey Ton, is there a way for your trigger to write down the value of @exp to the deathlog when I log out? Instead of everytime I kill something? So that err, I can easily keep track of how much xp I got during that run?.....
Reply with quote
shalimar
GURU


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

PostPosted: Mon Feb 17, 2003 3:45 am   
 
#AL atdisconnect {#FILE 1 Exp.txt;#WRITE 1 {%time() @exp};#CLOSE 1}

Shalimar

AIM: shalimarwildcat
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