import Ġrs . d us k . engine . action . ActionType Ċ import Ġrs . d us k . engine . client . variable . Boolean Variable Ċ import Ġrs . d us k . engine . client . variable . Variable Ċ import Ġrs . d us k . engine . client . variable . set Var Ċ import Ġrs . d us k . engine . client . variable . toggle Var Ċ import Ġrs . d us k . engine . entity . character . get OrNull Ċ import Ġrs . d us k . engine . entity . character . player . Player Ċ import Ġrs . d us k . engine . entity . character . player . chat . message Ċ import Ġrs . d us k . engine . entity . character . player . skill . Skill Ċ import Ġrs . d us k . engine . event . then Ċ import Ġrs . d us k . engine . event . where Ċ import Ġrs . d us k . world . community . assist . Ass istance . can Ass ist Ċ import Ġrs . d us k . world . community . assist . Ass istance . redirect Skill Experience Ċ import Ġrs . d us k . world . community . assist . Ass istance . stop Redirect ing Skill Exp Ċ import Ġrs . d us k . world . interact . entity . player . display . Interface Option Ċ Ċ /** Ċ Ġ* ĠAss istance Ġsystem Ġdisplay Ġinterface Ċ Ġ*/ Ċ Ċ Boolean Variable ( 4 0 9 0 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ run ec raft ing ") Ċ Boolean Variable ( 4 0 9 1 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ craft ing ") Ċ Boolean Variable ( 4 0 9 3 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ f let ch ing ") Ċ Boolean Variable ( 4 0 9 5 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ construction ") Ċ Boolean Variable ( 4 0 9 6 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ farm ing ") Ċ Boolean Variable ( 4 0 9 8 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ magic ") Ċ Boolean Variable ( 4 1 0 0 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ smith ing ") Ċ Boolean Variable ( 4 1 0 1 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ cook ing ") Ċ Boolean Variable ( 4 1 0 2 , ĠVariable . Type . VAR BIT , Ġtrue ). register (" assist _ toggle _ her blo re ") Ċ Ċ Interface Option Ġwhere Ġ{ Ġname Ġ== Ġ" assist _ xp " Ġ&& Ġoption Ġ== Ġ" Toggle ĠSkill ĠOn Ġ/ ĠOff " Ġ} Ġthen Ġ{ ĊĠĠĠ Ġval Ġskill Ġ= ĠSkill . valueOf ( component . capitalize ()) ĊĠĠĠ Ġval Ġass isted : ĠPlayer ? Ġ= Ġplayer . get OrNull (" ass isted ") ĊĠĠĠ Ġif Ġ( ass isted Ġ== Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġplayer . action . cancel ( ActionType . Ass isting ) ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ Ġblock Skill Experience ( player , Ġass isted , Ġskill ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġblock Skill Experience ( player : ĠPlayer , Ġass isted : ĠPlayer , Ġskill : ĠSkill ) Ġ{ ĊĠĠĠ Ġval Ġkey Ġ= Ġ" assist _ toggle _${ skill . name . toLowerCase () }" ĊĠĠĠ Ġif Ġ(! can Ass ist ( player , Ġass isted , Ġskill )) Ġ{ ĊĠĠĠĠĠĠĠ Ġplayer . set Var ( key , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġplayer . message (" You Ġcan Ġonly Ġassist Ġskills Ġwhich Ġare Ġhigher Ġthan Ġwhom Ġyou Ġare Ġhelping .") ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( player . toggle Var ( key )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġredirect Skill Experience ( ass isted , Ġskill ) ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġstop Redirect ing Skill Exp ( ass isted , Ġskill ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }