Toribash
lua code:
add_hook("console","y_date",
function(m)
echo(os.date("[%H:%M] ")..m)
return 1
end
)


This uses a basic anonymous func in the console hook.
What it does is concat the hours (%H) and minutes (%M) using the os.date function with the original message, and then it uses return 1 to stop internal processing.

I understand that the explanation might be a bit confusing, please tell me if you'd like a more clear explanation.

Here's some more lua date and time info.
multiple texture uploader! updated: multiple texture remover!
updated pretty colorlist!

<BobJoelZ> ok ive just rebooted my pc and ive tried to activate my reflex on yahoo internet explorer :/ no luck

<Aracoon> I do not enjoy having anal sex with multiple men
It's not too much confusing, I undertood the %H and %M command. Thank you.

This will work in MultiPlayer , right?
YOLO SWAG XD
It should work normally for every message.
multiple texture uploader! updated: multiple texture remover!
updated pretty colorlist!

<BobJoelZ> ok ive just rebooted my pc and ive tried to activate my reflex on yahoo internet explorer :/ no luck

<Aracoon> I do not enjoy having anal sex with multiple men
My friends don't see the [21:48] <toriality>
-----
Everytime i write something with acentuation (Like "é") its looks like "::"
Last edited by Toriality; Dec 14, 2012 at 12:58 AM. Reason: <24 hour edit/bump
YOLO SWAG XD
It's client-side only, you can't change your own chat msgs yet.
As for the é, I have no idea, it works fine with me.
multiple texture uploader! updated: multiple texture remover!
updated pretty colorlist!

<BobJoelZ> ok ive just rebooted my pc and ive tried to activate my reflex on yahoo internet explorer :/ no luck

<Aracoon> I do not enjoy having anal sex with multiple men
Is possible create a script for TB with C++ / C?
-----
2. How much time do you learmed LUA?
Last edited by Toriality; Dec 16, 2012 at 01:16 AM. Reason: <24 hour edit/bump
YOLO SWAG XD
You can only use lua for tb scripting.
multiple texture uploader! updated: multiple texture remover!
updated pretty colorlist!

<BobJoelZ> ok ive just rebooted my pc and ive tried to activate my reflex on yahoo internet explorer :/ no luck

<Aracoon> I do not enjoy having anal sex with multiple men
Some (stupid) rapid question about lua:

When do I have to type "end"?
How to make lua execute a TB command ( i.e: When pressing Q the Toribash start a new game)
could you explain me about "add_hook" command?
How to do something like this... after 10 seconds execute an command?

New script soon...
Last edited by Toriality; Dec 16, 2012 at 10:18 PM.
YOLO SWAG XD
SORRY for the double-posting , but I need some help.

PORTUGUESE VERSION

YOLO SWAG XD