Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
shalimar
GURU


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

PostPosted: Wed May 31, 2006 10:04 pm   

Discworld EXP Tracker
 
#CLASS {EXP Tracker}
#ALIAS showexp {
#math sessiontotal @xp+@sessionspent-@expstart
#math exppermin @sessiontotal/%ctime*60
}
#ALIAS teachme {
teach @skill to me
#temp "teach" {It would have cost (%d) xp to teach (%d)*to yourself.} {
#IF (%%2=1) {maxxp=%%1} {learn @skill from me}
score brief
}
}
#VAR exptracker {1612091|1611983|1610034|1609004|1609004|1609004|2107901|1608740|1045224|1044173|1044173|1044173|1040438|1021564|1016913|1001391|997668|981534|966211|950050|936056|936056|936056|936056|925284|918267|913965|909208|892773|876838|876242|847378|830693|830020|816384|811748|811748|801754|799473|799473|799473|799473|799473|799473|799473|799473|799473|799473|799473|799452|797757|797757|797757|797757|792844|785517|785253|785223|782319|775138|760895|760757|758089|310052|310052|304670|301644|301190|292355|291197|282417|282417|282417|282417|282417|282417|282417|271458|267290|259073|251545|247337|238379|224678|223486|215187|214800|211809|211809|198097|196346|196346|196346|196346|196346|196346|170230|168639|168639|160068|156456|144015|116633|94185|92185|84359|69501|65207|38192|33993|17679|17592|21|-150055|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0}
#VAR sessiontotal {1612091}
#VAR sessionstart {0}
#TRIGGER {Xp: (%d)} {
#IF (%eval( %1-@xp)>1000) {#VAR xpjump {%eval( %1-@xp)}}
xp = %1
#if @xp>@maxxp {@maxxp = @xp}
#IF (@expstart=0) {expstart = @xp}
}
#TRIGGER {Your current experience is (%d) and} {
xp = %1
#if @xp>@maxxp {@maxxp = @xp}
}
#TRIGGER {You start to teach yourself*for (%d) xp.} {#ADD sessionspent %1}
#ALARM {-1:00} {
showexp
#var exptracker {%push( @sessiontotal, @exptracker)}
}
#TRIGGER {Inventory regeneration complete.} {
sessionspent = 0
exptracker = 0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
expstart = 0
#TEMP "xpcatcher" {Xp: (%d)} {
#IF (%eval( %1-@xp)>1000) {#VAR xpjump {%eval( %1-@xp)}}
xp = %1
#if @xp>@maxxp {@maxxp = @xp}
#IF (@expstart=0) {expstart = @xp}
score brief
}
score brief
}
#TRIGGER {starts to teach you * for (%d) xp.} {#ADD sessionspent %1}
#BUTTON 14 {XP Earned: %cr 5 min: %format( "&1.0n", %eval( @sessiontotal-%item( @exptracker, 5))) %cr 10 min: %format( "&1.0n", %eval( @sessiontotal-%item( @exptracker, 10))) %cr 30 min: %format( "&1.0n", %eval( @sessiontotal-%item( @exptracker, 30))) %cr 60 min: %format( "&1.0n", %eval( @sessiontotal-%item( @exptracker, 60))) %cr Session: %format( "&1.0n", @sessiontotal) %cr %format( "&1.0n", %int( @exppermin))/min} {} {} {} {} {} {} {Size} {120} {90} {Pos} {23} {1} {} {} {Separ} {} "" {} {} {} {3}
#CLASS 0
_________________
Discord: Shalimar#3679
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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