/client/proc/Debug2() set category = "Debug" set name = "Debug-Game" if(!src.authenticated || !src.holder) src << "Only administrators may use this command." return if(src.holder.rank == "Coder") Debug2 = !Debug2 world << "Debugging [Debug2 ? "On" : "Off"]" log_admin("[key_name(src)] toggled debugging to [Debug2]") else if(src.holder.rank == "Host") Debug2 = !Debug2 world << "Debugging [Debug2 ? "On" : "Off"]" log_admin("[key_name(src)] toggled debugging to [Debug2]") else alert("Coders only baby") return /client/proc/callproc() set category = "Debug" set name = "Advanced ProcCall" if(!src.authenticated || !src.holder) src << "Only administrators may use this command." return var/target = null var/arguments = null var/returnval = null //var/class = null switch(alert("Proc owned by obj?",,"Yes","No")) if("Yes") target = input("Enter target:","Target",null) as obj|mob|area|turf in world if("No") target = null var/procname = input("Procpath","path:", null) if (target) arguments = input("Arguments","Arguments:", null) usr << "\blue Calling '[procname]' with arguments '[arguments]' on '[target]'" returnval = call(target,procname)(arguments) else arguments = input("Arguments","Arguments:", null) usr << "\blue Calling '[procname]' with arguments '[arguments]'" returnval = call(procname)(arguments) usr << "\blue Proc returned: [returnval ? returnval : "null"]" /* var/argnum = input("Number of arguments:","Number",null) as num var/i for(i=0, i