by Leizu » Wed Jun 30, 2004 9:38 am
This one shows info in 2 buttons, first one with xp I need to level, second one with xp/gold I've got since the last check. Adapt for your needs :)
[code:374y941w]
#KEY F9 {#t+ xp_tracker;score}
#BUTTON 1 {%format("%.n",@xplvl) (@xpprocent%)} {} {} {} {} {} {} {Size} {109} {16} {Pos} {1} {886} {4} {} {} {}
#BUTTON 2 {%format("%.n",@xprun) / %format("%.n",@coinsrun)} {} {} {} {} {} {} {Size} {109} {16} {Pos} {17} {886} {4} {} {} {}
#TRIGGER {^You have (%d) unused experience points.} {#math xprun %1-@xptotal;#var xptotal %1;#math xpprocent %1/(@tlevel/100);#math xplvl @tlevel-%1;#t- xp_tracker} {xp_tracker} 548
#TRIGGER {^You have (%d) gold coins.} {#math coinsrun %1-@coinstotal;#var coinstotal %1} {xp_tracker} 548
#VAR tlevel {2100000000}
[/code:374y941w]