Page 1 of 1

MSG with reply [msg_reply]

PostPosted: Fri Sep 26, 2014 23:44
by Pitriss
This mod slightly modify /msg command from builtin so when you receive PM then you can reply to last one with /reply <message>. I think this can be useful in some more heavy PM conversation with someone.

Licence: WTFPL

Edit: this mod is inspired by old mod called redsand

Edit 2: Both attachments contains the same code. I just preffer tar.gz

Re: MSG with reply [msg_reply]

PostPosted: Sat Sep 27, 2014 06:36
by Krock
The idea is nice but if you're chatting with multiple players, then it might send it to the wrong person.
Also, a shorter command like /rep or /a would be easier to say than /reply.

You've done a bit too much work, just fill the joinplayer and leaveplayer function with
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
lastspoke[player:get_player_name()] = nil

That's enough.

Re: MSG with reply [msg_reply]

PostPosted: Sat Sep 27, 2014 14:16
by Pitriss
/reply is still much shorter than /msg somenickname message.. and yes I'm aware of that problem with chatting with multiple ppl. I wanted to keep it simple.. but feel free to extend it..

My point was to bring back this nice feature back to life..:)

And about that fix with joinplayer.. I'm not sure about this:D i preffer to do maximum to prevent crashes due nil value errors.