This Is A Very Simple Snippet. Just Do /away reason or just a normal /away and to be back just do /back
;[Scripting Credits]
;Away Script From Wenxuan2
;Feel Free To Edit This Script!
;Got Questions? Come To irc.surrealchat.net and join #pokeworld
;For Those Advanced Scripters, im just a starter!
;Thank You For Using This, Have Fun!
;just set one of the variable, %nomsg or %msg or %amsg . do /set variable on/off
;to start this script do /away reason or just a plain /away and to be back do /back
Alias Away {
if (%away == on) { echo -a 4,1[5Note4]8Your Already Away! Do /Back To Be Back!4[5Note4] | Halt }
set %away on
set %away.time $ctime
if (%msg == on) && (%nomsg == on) { echo -a 4,1[5Note4]8Sorry, You Can Only Set Variable on please choose nomsg or msg or amsg.4[5Note4] | halt }
if (%amsg == on) && (%msg == on) { echo -a 4,1[5Note4]8Sorry, You Can Only Set Variable on please choose nomsg or msg or amsg.4[5Note4] | halt }
if (%amsg == on) && (%nomsg == on) { echo -a 4,1[5Note4]8Sorry, You Can Only Set Variable on please choose nomsg or msg or amsg.4[5Note4] | halt }
if (%amsg == on) && (%msg == on) && (%nomsg == on) { echo -a 4,1[5Note4]8Sorry, You Can Only Set Variable on please choose nomsg or msg or amsg.4[5Note4] | halt }
if (%amsg == $null) && (%msg == $null) && (%nomsg == $null) { echo -a 4,1[5Note4]8Please Note That You Dint Set any Variable, please put amsg or msg nomsg. its /set variable on/off 4,1[5Note4] | Halt }
if (%amsg == on) && ($1- == $null) { amsg 0,1 15 14 I Am Now Away.Im Away At $time 14 15 0 | halt }
if (%amsg == on) { amsg 0,1 15 14 I Am Now Away. The Reason Im Away Is: $1- .Im Away At $time 14 15 0 | set %away.reason $1- | Halt }
if (%msg == on) && ($1- == $null) { msg $active 0,1 15 14 I Am Now Away.Im Away At $time . 14 15 0 | halt }
if (%msg == on) { msg $active 0,1 15 14 I Am Now Away. The Reason Im Away Is: $1- .Im Away At $time 14 15 0 | set %away.reason $1- | Halt }
if (%nomsg == on) && ($1- == $null) { echo -a 0,1 15 14 You Are Now Away.Your Away At $time 14 15 0 | halt }
if (%nomsg == on) && ($1- == $null) { echo -a 0,1 15 14 You Are Now Away And The Reason Your Away Is: $1- .Your Away At $time 14 15 0 | set %away.reason $1- | halt }
}
Alias Back {
if (%away != on) { echo -a 4,1[5Note4]8Sorry, But Your Not Yet Away. Do /away or /away reason to be away4[5Note4] | Halt }
set %away off
if (%msg == on) && (%nomsg == on) { echo -a 4,1[5Note4]8Sorry, You Can Only Set Variable on please choose nomsg or msg or amsg.4[5Note4] | halt }
if (%amsg == on) && (%msg == on) { echo -a 4,1[5Note4]8Sorry, You Can Only Set Variable on please choose nomsg or msg or amsg.4[5Note4] | halt }
if (%amsg == on) && (%nomsg == on) { echo -a 4,1[5Note4]8Sorry, You Can Only Set Variable on please choose nomsg or msg or amsg.4[5Note4] | Halt }
if (%amsg == on) && (%msg == on) && (%nomsg == on) { echo -a 4,1[5Note4]8Sorry, You Can Only Set Variable on please choose nomsg or msg or amsg.4[5Note4] | halt }
if (%amsg == $null) && (%msg == $null) && (%nomsg == $null) { echo -a 4,1[5Note4]8Please Note That You Dint Set any Variable, please put amsg or msg nomsg. its /set variable on/off 4,1[5Note4] | Halt }
if (%amsg == on) && (%away.reason == $null) { amsg 0,1 15 14 I Am Now Back!I am Away For $duration($calc($ctime - %away.time)) 14 15 0 | Halt }
if (%amsg == on) { amsg 0,1 15 14 I Am Now Back! The Reason I Away Is: %away.reason .I am Away For $duration($calc($ctime - %away.time)) 14 15 0 | unset %away.reason | Halt }
if (%msg == on) && (%away.reason == $null) { amsg 0,1 15 14 I Am Now Back!I am Away For $duration($calc($ctime - %away.time)) 14 15 0 | Halt }
if (%msg == on) { amsg 0,1 15 14 I Am Now Back! The Reason I Away Is: %away.reason .I am Away For $duration($calc($ctime - %away.time)) 14 15 0 | unset %away.reason | Halt }
if (%nomsg == on) && (%away.reason == $null) { echo -a 0,1 15 14 You Are Now Back!You Are Away For $duration($calc($ctime - %away.time)) 14 15 0 | Halt }
if (%nomsg == on) { echo -a 0,1 15 14 You Are Now Back! The Reason Your Away Is: %away.reason .You Are Away For $duration($calc($ctime - %away.time))14 15 0 | unset %away.reason | Halt }
unset %away.reason
unset %away.time
}