Help converting this from zmud to mudlet

Post Reply
noblestone
Posts: 154
Joined: Sun Jul 29, 2012 6:50 am

Help converting this from zmud to mudlet

Post by noblestone » Mon Dec 03, 2012 7:32 am

Below is the script a buddy gave to me so I have no clue on how to convert to mudlet.

#CLASS {statuswindow|xptrackerandtimer}
#ALIAS tracker {dothemaths;emote checks @version tally book.;say We have run @xpthisrun xp, killing @killsthisrun creatures in @hours hours, @mins minutes and @secs seconds, or thereabouts.;say Thats @levels levels, and averages of @averagexp xp/kill and @averagexpmin xp/min, @averagexphour xp/hour (projected)}
#ALIAS clearcount {emote starts a new page in @version tally book.;starttime;xplastrun5=@xplastrun4;killslastru n5=@killslastrun4;xplastrun4=@xplastrun3;killslast run4=@killslastrun3;xplastrun3=@xplastrun2;killsla strun3=@killslastrun2;xplastrun2=@xplastrun;killsl astrun2=@killslastrun;xplastrun=@xpthisrun;killsla strun=@killsthisrun;xpthisrun=0;killsthisrun=0}
#ALIAS cleartotal {emote rips a page from @version tally book.;emote starts a new page in @version tally book.;starttime;averagexp=0;averagexpmin=0;average xphour=0;killslastrun=0;killslastrun2=0;killslastr un3=0;killslastrun4=0;killslastrun5=0;killsthisrun =0;lastkillname=nobody;lastkillxp=0;levels=0;total levels=0;totalaveragexp=0;totalkills=0;totalxp=0;x plastrun=0;xplastrun2=0;xplastrun3=0;xplastrun4=0; xplastrun5=0;xpthisrun=0}
#ALIAS starttime {hours=0;mins=0;minsrem=0;secs=0;secsrem=0;startin gtime=0;stoppingtime=0;time=0;time2=0;startingtime =%ctime}
#ALIAS stoptime {stoppingtime=%ctime}
#ALIAS dothemaths {hours=0;mins=0;minsrem=0;secs=0;secsrem=0;stoptim e;#MATH time @stoppingtime-@startingtime;#MATH averagexp @xpthisrun/@killsthisrun;#MATH totalaveragexp @totalxp/@totalkills;#MATH averagexpsec @xpthisrun/@time;#MATH averagexpmin @averagexpsec*60;#MATH averagexphour @averagexpsec*3600;#MATH levels @xpthisrun/16650;#MATH totallevels @totalxp/16650;#IF (@time>3599) {#MATH hours @time/3600;#MATH minsrem @hours*3600;#MATH time2 @time-@minsrem;#IF (@time2>59) {#MATH mins @time2/60;#MATH secsrem @mins*60;#MATH secs @time2-@secsrem}};#IF (@time<3559) {#MATH mins @time/60;#MATH secsrem @mins*60;#MATH secs @time-@secsrem}}
#VAR xplastrun {0}
#VAR xpthisrun {0}
#VAR xplastrun4 {0}
#VAR xplastrun3 {0}
#VAR xplastrun2 {0}
#VAR xplastrun5 {0}
#VAR lastkillxp {0}
#VAR lastkillname {nobody}
#VAR killsthisrun {0}
#VAR killslastrun2 {0}
#VAR killslastrun3 {0}
#VAR killslastrun4 {0}
#VAR killslastrun {0}
#VAR killslastrun5 {0}
#VAR averagexp {}
#VAR version {a small blood stained}
#VAR totalkills {0}
#VAR totalxp {0}
#VAR totalaveragexp {}
#VAR hours {0}
#VAR mins {0}
#VAR minsrem {0}
#VAR secs {0}
#VAR secsrem {0}
#VAR startingtime {4}
#VAR stoppingtime {4}
#VAR time {0}
#VAR time2 {0}
#VAR averagexpmin {0}
#VAR levels {0}
#VAR totallevels {0}
#VAR averagexphour {0}
#VAR averagexpsec {}
#TRIGGER "uniquestatuswindow" {(%d)%d)m/(%d)%d)en/(%d)%d)h/(%*)tnl} {dothemaths;#STW { %cr %cr TIMER %cr %cr Elapsed time . : @hours H: @mins M: @secs S %cr %cr Xp/Hr projected: @averagexphour %cr Xp/Min . . . . : @averagexpmin %cr Xp/Sec . . . . : @averagexpsec %cr %cr XP TRACKER %cr %cr Xp this run. . : @xpthisrun %cr Kills this run : @killsthisrun %cr Last kill . . .: @lastkillname %cr Last kill xp . : @lastkillxp %cr Ave. Xp/Kill . : @averagexp %cr Ave. Xp/Min. . : @averagexpmin %cr Levels . . . . : @levels %cr %cr Xp last run. . : @xplastrun %cr Kills last run : @killslastrun %cr Xp 2 runs ago .: @xplastrun2 %cr Kills . . . . .: @killslastrun2 %cr Xp 3 runs ago .: @xplastrun3 %cr Kills . . . . .: @killslastrun3 %cr Xp 4 runs ago .: @xplastrun4 %cr Kills . . . . .: @killslastrun4 %cr Xp 5 runs ago .: @xplastrun5 %cr Kills . . . . .: @killslastrun5 %cr %cr Total Xp . . . : @totalxp %cr Total Kills . .: @totalkills %cr Total Average .: @totalaveragexp %cr Total Levels. .: @totallevels}}
#TRIGGER {You receive (%d) experience points} {#ADD xpthisrun %1;#ADD killsthisrun 1;#ADD totalxp %1;#ADD totalkills 1;lastkillxp=%1}
#TRIGGER {(%*) tells you 'tracker'} {tracker}
#TRIGGER {(%*) is dead!} {lastkillname=%1}
#BUTTON 13 {Clear Count} {clearcount} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {}
#BUTTON 14 {Clear Total} {cleartotal} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {}
#BUTTON 15 {Tracker} {tracker} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} "" {} {} {}
#BUTTON 16 {Status OFF} {#STWIN on} {Status ON} {#STWIN off} {} {1} {} {} {} {} {} {} {} {12} {10} {} {} "" {} {} {}
#CLASS 0

Thanks in advance

Kyoshi
Posts: 11
Joined: Sat Aug 11, 2012 5:38 pm

Re: Help converting this from zmud to mudlet

Post by Kyoshi » Mon Dec 03, 2012 7:05 pm

Obviously you haven't read through the documentation...
Look here, and here.
We (or just I) can't help you unless you first try and help yourself.

noblestone
Posts: 154
Joined: Sun Jul 29, 2012 6:50 am

Re: Help converting this from zmud to mudlet

Post by noblestone » Mon Dec 03, 2012 7:42 pm

Thanks for the links, and when I dive in and I understand most of them however, it doesn't explain converting, only migrating and not quite clear on what I am supposed to do on other scripts being converted into mudlet. Maybe if you direct me to right section of manual or explain in 2nd grade language which I would understand. Thanks

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests