MSG with reply [msg_reply]

User avatar
Pitriss
Member
 
Posts: 253
Joined: Mon Aug 05, 2013 17:09
GitHub: Pitriss
IRC: pitriss
In-game: pitriss

MSG with reply [msg_reply]

by Pitriss » Fri Sep 26, 2014 23:44

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
Attachments
msg_reply.zip
(862 Bytes) Downloaded 68 times
msg_reply.tar.gz
(734 Bytes) Downloaded 68 times
I reject your reality and substitute my own. (A. Savage, Mythbusters)
I'm not modding and/or playing minetest anymore. All my mods were released under WTFPL. You can fix/modify them yourself. Don't ask me for support. Thanks.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: MSG with reply [msg_reply]

by Krock » Sat Sep 27, 2014 06:36

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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Pitriss
Member
 
Posts: 253
Joined: Mon Aug 05, 2013 17:09
GitHub: Pitriss
IRC: pitriss
In-game: pitriss

Re: MSG with reply [msg_reply]

by Pitriss » Sat Sep 27, 2014 14:16

/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.
I reject your reality and substitute my own. (A. Savage, Mythbusters)
I'm not modding and/or playing minetest anymore. All my mods were released under WTFPL. You can fix/modify them yourself. Don't ask me for support. Thanks.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron