3BSlayer Log Scripted by Def669
on *:load:{
echo -t Thanks for using iPeer's (Def669's) Slayer logger, Enjoy!
echo -t /task <task> Starts a task
echo -t /pause Pauses a task
echo -t /resume Resumes a task
echo -t /drop <drop> Adds a drop to your logs
echo -t /taskfin Ends the current task timer
echo -t /usage Displays this information
echo -t /check Shows your your current expired time for your task
if (%task.drops == $null) set %task.drops 0
if (%task.log == $null) set %task.log 0
if (%task.fin == $null) set %task.fin 0
}
alias usage {
echo -t /task <task> Starts a task
echo -t /pause Pauses a task
echo -t /resume Resumes a task
echo -t /drop <drop> Adds a drop to your logs
echo -t /taskfin Ends the current task timer
echo -t /check Shows your your current expired time for your task
}
alias task {
if (!$1) { halt }
set %task.start $ctime
set %task.monster $1-
echo -t Your timer for your slayer task of %task.monster has been started at $asctime(hh:nn:ss TT) $+ .
write SlayerLog.txt Task Entry - Start: %task.monster
set %task.run Yes
inc %task.log
}
alias taskfin {
if (%task.run == Yes) {
write SlayerLog.txt Task Entry - Finished: %task.monster - Time Taken: $duration($calc($ctime - %task.start))
echo -t Well done on completing your task! Time Taken: $duration($calc($ctime - %task.start))
if (%task.paused == Yes) echo -t You paused your task for a total time of %task.pausetime during this task.
unset %task.start
unset %task.monster
unset %task.pause
unset %task.paused
unset %task.run
inc %task.fin
}
else {
echo -t You have no task running.
}
}
alias drop {
if (!$1) { halt }
if (%task.run == Yes) {
set %task.drop $1-
echo -t Well Done on this drop! You gained this drop $duration($calc($ctime - %task.start)) into your task!
write SlayerLog.txt Task Entry - Drop: %task.monster - Time into Task: $duration($calc($ctime - %task.start)) Drop: %task.drop
unset %task.drop
inc %task.drops
}
else {
echo -t You have no task running.
}
}
alias pause {
if (%task.run == Yes) {
set %task.pause $ctime
echo -t Your timer for your task has been paused, to un pause it, type /resume.
write SlayerLog.txt Task Entry - PAUSED
set %task.paused Yes
}
else {
echo -t You have no task running.
}
}
;Slayer Log Scripted by Def669
on *:load:{
echo -t Thanks for using iPeer's (Def669's) Slayer logger, Enjoy!
echo -t /task <task> Starts a task
echo -t /pause Pauses a task
echo -t /resume Resumes a task
echo -t /drop <drop> Adds a drop to your logs
echo -t /taskfin Ends the current task timer
echo -t /usage Displays this information
echo -t /check Shows your your current expired time for your task
if (%task.drops == $null) set %task.drops 0
if (%task.log == $null) set %task.log 0
if (%task.fin == $null) set %task.fin 0
}
alias usage {
echo -t /task <task> Starts a task
echo -t /pause Pauses a task
echo -t /resume Resumes a task
echo -t /drop <drop> Adds a drop to your logs
echo -t /taskfin Ends the current task timer
echo -t /check Shows your your current expired time for your task
}
alias task {
if (!$1) { halt }
set %task.start $ctime
set %task.monster $1-
echo -t Your timer for your slayer task of %task.monster has been started at $asctime(hh:nn:ss TT) $+ .
write SlayerLog.txt Task Entry - Start: %task.monster
set %task.run Yes
inc %task.log
}
alias taskfin {
if (%task.run == Yes) {
write SlayerLog.txt Task Entry - Finished: %task.monster - Time Taken: $duration($calc($ctime - %task.start))
echo -t Well done on completing your task! Time Taken: $duration($calc($ctime - %task.start))
if (%task.paused == Yes) echo -t You paused your task for a total time of %task.pausetime during this task.
unset %task.start
unset %task.monster
unset %task.pause
unset %task.paused
unset %task.run
inc %task.fin
}
else {
echo -t You have no task running.
}
}
alias drop {
if (!$1) { halt }
if (%task.run == Yes) {
set %task.drop $1-
echo -t Well Done on this drop! You gained this drop $duration($calc($ctime - %task.start)) into your task!
write SlayerLog.txt Task Entry - Drop: %task.monster - Time into Task: $duration($calc($ctime - %task.start)) Drop: %task.drop
unset %task.drop
inc %task.drops
}
else {
echo -t You have no task running.
}
}
alias pause {
if (%task.run == Yes) {
set %task.pause $ctime
echo -t Your timer for your task has been paused, to un pause it, type /resume.
write SlayerLog.txt Task Entry - PAUSED
set %task.paused Yes
}
else {
echo -t You have no task running.
}
}
alias resume {
if (%task.run == Yes) {
set %task.pausetime $duration($calc($ctime - %task.pause))
echo -t Task timer resumed, good luck!
write SlayerLog.txt Task Entry - RESUMED
unset %task.pause
}
else {
echo -t You have no task running.
}
}
alias check {
if (%task.run == Yes) {
echo -t You have been doing your current task of %task.monster for $duration($calc($ctime - %task.start))
if (%task.paused == Yes) echo -t You have paused your task for a total time of %task.pausetime $+ .
}
else {
echo -t You have no task running.
}
}
menu * {
.iPeer's Slayer Log: /slaylog
}
alias slaylog {
dialog -ma Slaylog Slaylog
/did -ra Slaylog 2 You have logged a total of %task.log tasks with this logger
/did -ra Slaylog 3 You have had %task.drops drops since you started logging.
/did -ra Slaylog 4 You have completed %task.fin tasks since you started logging.
}
dialog Slaylog {
title "Slayer Logger By iPeer (Def669)"
size -1 -1 155 91
option dbu
button "Close", 1, 92 76 47 12, cancel
edit "You have logged a total of XX tasks with this logger.", 2, 4 19 147 10, center disable
edit "You have had XX drops since you started logging.", 3, 4 32 147 10, center disable
edit "You have completed XX tasks since you started logging.", 4, 4 45 147 10, center disable
button "View Log", 5, 16 63 37 12
button "Start new task", 6, 54 63 37 12
button "End Current task", 7, 92 63 47 12
button "Add a drop", 8, 16 76 37 12
button "Clear Logs", 9, 54 76 37 12
button "Def669's Slayer task logger", 10, 37 4 81 12, disable flat
}
dialog Slaylogtask {
title "Slayer Logger By iPeer (Def669) - Add a task"
size -1 -1 150 38
option dbu
edit "", 1, 26 9 98 10
button "Ok", 2, 28 23 37 12, Ok
button "Cancel", 3, 84 23 37 12, cancel
}
dialog Slaylogdrop {
title "Slayer Logger By iPeer (Def669) - Add a drop"
size -1 -1 150 38
option dbu
edit "", 1, 26 9 98 10
button "Ok", 2, 28 23 37 12, Ok
button "Cancel", 3, 84 23 37 12, cancel
}
on *:dialog:Slaylog:sclick:8:{
dialog -mo Slaylogdrop Slaylogdrop
}
on *:dialog:Slaylogdrop:sclick:2:{
/drop $did(1)
}
on *:dialog:Slaylog:sclick:6:{
dialog -mo Slaylogtask Slaylogtask
}
on *:dialog:Slaylogtask:sclick:2:{
/task $did(1)
}
on *:dialog:Slaylog:sclick:9:{
remove SlayerLog.txt
echo -t Your logs have been cleared.
}
on *:dialog:Slaylog:sclick:7:{
/taskfin
}
on *:dialog:Slaylog:sclick:5:{
/run SlayerLog.txt
}