|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Tue Mar 11, 2003 2:49 pm
XP Tracker II |
I ask about this earlier, but err, it doesn't work like it suppose to. So I'm asking if anyone can help me make up this trigger.
What I want to do, is keep track of all the XPs I have gotten during my mudding, and write that into a text file everytime I log off with the date and the total experience I earn during that session.
The trigger is as follow
You receive 5 experience, your share of 770.
..when a I'm in group, or
You receive 13 experience.
..when I'm by myself.
Not sure if I'm asking it the right way, but if anyone know what I mean, please help me out. =)
zMUD General Discussion: All the power you'll ever need. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Mar 11, 2003 3:58 pm |
#VAR totxp 0 0
#TRIGGER {You receive (%d) experience} {#ADD totxp %1}
#ALIAS atdisconnect {#FILE 1 xplog.txt;#WRITE 1 {%time("mm/dd/yy"): @totxp};#CLOSE 1}
Kjata |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Fri Mar 28, 2003 7:54 pm |
Oh, I got another question, I realize that this triggers still fire and write in the xplog even when the xp is 0. Is there a way to tell it to only write down when the xp is more than 0? Since sometime I get disconnected and in the trying to reconnect process, it write down like 20+ 0 xp in the xplog
zMUD General Discussion: All the power you'll ever need. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Mar 28, 2003 8:54 pm |
Modify the atdisconnect alias:
#ALIAS atdisconnect {#IF (@totxp > 0) {#FILE 1 xplog.txt;#WRITE 1 {%time("mm/dd/yy"): @totxp};#CLOSE 1}}
Kjata |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
|
|
|
|
|