I need scipt that shows my prots and how long those have been on. I tried to do it myself but no success =(
here is how someone has done it in zmud:
#echo ### StatusBar Triggers (Camping and Prots) ###
#var prots {} {}
#var protstimed {} {}
#alias check {#if (@prots<>"") {party report say Prots: @{prots}} {party report say Prots: NONE}}
#alias clear {#var prots {} {};#var campstatus {Available} {}}
#alias timer {#math %1 (%time(yyyy)-1970)*365*24*60*60);#math %1 @%1+(%time(m)*30*24*60*60);#math %1 @%1+(%time(d)*24*60*60);#math %1 @%1+(%time(h)*60*60);#math %1 @%1+(%time(n)*60);#math %1 @%1+%time(s)}
#alias formattime {timer currenttime;#math tmptime @currenttime-@%1;#math tmpmin @tmptime/60;#math tmpsek @tmptime-(@tmpmin*60)];#if (@tmpmin=0) {#var timed [@{tmpsek}s]} {#var timed [@{tmpmin}m@{tmpsek}s]}}
#echo ### Prot Triggers ###
#trigger {You suddenly feel magically heavier.} {timer hwtime;party report say Heavy Weight Active.;#if !%ismember(HW,@prots) {#var prots %additem(HW,@prots)}} {prot-t}
#trigger {You feel lighter, but it doesn't seem to affect your weight!} {formattime hwtime;party report say Heavy Weight Expires. ~[[@{timed}]~];#var prots %delitem(HW,@prots)} {prot-t}
shows in game something like:
xxx [party]: Prots: HW (1:31) Unstun (0:20)
here is how someone has done it in zmud:
#echo ### StatusBar Triggers (Camping and Prots) ###
#var prots {} {}
#var protstimed {} {}
#alias check {#if (@prots<>"") {party report say Prots: @{prots}} {party report say Prots: NONE}}
#alias clear {#var prots {} {};#var campstatus {Available} {}}
#alias timer {#math %1 (%time(yyyy)-1970)*365*24*60*60);#math %1 @%1+(%time(m)*30*24*60*60);#math %1 @%1+(%time(d)*24*60*60);#math %1 @%1+(%time(h)*60*60);#math %1 @%1+(%time(n)*60);#math %1 @%1+%time(s)}
#alias formattime {timer currenttime;#math tmptime @currenttime-@%1;#math tmpmin @tmptime/60;#math tmpsek @tmptime-(@tmpmin*60)];#if (@tmpmin=0) {#var timed [@{tmpsek}s]} {#var timed [@{tmpmin}m@{tmpsek}s]}}
#echo ### Prot Triggers ###
#trigger {You suddenly feel magically heavier.} {timer hwtime;party report say Heavy Weight Active.;#if !%ismember(HW,@prots) {#var prots %additem(HW,@prots)}} {prot-t}
#trigger {You feel lighter, but it doesn't seem to affect your weight!} {formattime hwtime;party report say Heavy Weight Expires. ~[[@{timed}]~];#var prots %delitem(HW,@prots)} {prot-t}
shows in game something like:
xxx [party]: Prots: HW (1:31) Unstun (0:20)