|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: 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... |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: 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..
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Sun Feb 16, 2003 8:17 am |
oh i forgot the incrementor
#TRIGGER {You receive %d experience} {exp = @exp + %1}
Shalimar
AIM: shalimarwildcat |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: 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* |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: 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?.....
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Mon Feb 17, 2003 3:45 am |
#AL atdisconnect {#FILE 1 Exp.txt;#WRITE 1 {%time() @exp};#CLOSE 1}
Shalimar
AIM: shalimarwildcat |
|
|
|
|
|