|
lvshak1 Newbie
Joined: 08 Oct 2003 Posts: 1 Location: USA
|
Posted: Wed Oct 08, 2003 6:35 pm
Experience logger. |
I need help with a kind of logger I'm working on.
It's basically going to work like this.
it's going to take a number(X) from my prompt and another number(Y) that the mud gives it from that and divide them X/Y then print the total Z.
The first number is from the prompt and appears like this
TNL 39001 <-----X
The second number is from text sent from the mud.
You receive 377 experience points.
where 377 is Y
Then I need it to print the total to the screen every time
that line appears.
If any one can help that would be great.
I have the general idea, using a variable and a couple triggers but I can't get the variable to work right. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Oct 08, 2003 7:59 pm |
#TR {TNL (%d)} {#VAR X %1;#SAY Z = %eval( @X/@Y)} {} {prompt}
#TR {You receive (%d) experience points) {#VAR Y %1;#SAY Z = %eval( @X/@Y)}
Edit: Added missing ) |
|
|
|
|
|