|
| 03 Jan 2014 07:27 AM |
Okay first of all, I would like to explain exactly what I mean by logs removal. Everybody has seen, heard, or even used kohls admin commands in action, and most of us know that people with owner admin, and probably permanent admin, can use ":logs" which shows every command that is used so far in the game session! I as a beginner scripter myself, know that since this comes from a script it should be possible to get rid of it with another script using the script command (":s") completely blanking out all logs.
Now I want to ask of the amazing scripting community out there on how to do this, I have the script, and I know how it produces the logs gui. I want to know how to get rid of it. In the script earlier on it has a table that it puts the commands in for storage. So I need a script that would remove everything from the table, (Yes I know how to do that) from another script. Is this possible? I suppose you could think of it as like an override script to the logs.
Last but not least I would like to make a couple comments;
1. I realize that the logs only keep the past couple, a result of no scroll like in the ":cmds" command
2. I understand how to do all of this except from another script, and third
3. Here are some questions to think about when asking this
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Do you understand my problem
2. Are you commenting positively
3. Will this work
4. Do you know how tables work
5. Do you understand how the logs work
6. Will this benefit me, and 7
7. Did you learn anything while doing this?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks! I highly appreciate this! |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2014 07:36 AM |
| Someone please attempt this! |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 03 Jan 2014 07:46 AM |
If the Logs are inside the global Enviroment this can be possible. But I don't think that the Logs table start with _G. If they do, then you can change those with the simple line. (Be aware that you need to do a Script at a Server level. The Client has a different enviroment.)
_G.TableName = {}
If that isn't the case, then you would need to make your own command to manually remove the logs. :removelogs for example. To do this, you just edit the script and add a new Command (Search the name for the Table that contains them and only allow the HR to do this command).
:removelogs -> Check HR Ranks -> Override Table with a Empty table.
Also, why would I learned something from this ? You are asking the question here.. |
|
|
| Report Abuse |
|
|
|
| 14 Feb 2014 09:56 AM |
| I completely forgot about this thread, so sorry for me taking so long, what did you mean by HR ranks?. Also, could I edit it to make the log inside the global environment? and if so how do I go about that? |
|
|
| Report Abuse |
|
|