Commit Graph

266 Commits

Author SHA1 Message Date
Panquesito7
bae0269ca4
Delete deprecated depends.txt
In MT/MTG 5.0.0+, this is no longer needed as in "mod.conf" you can (optional) depends, description and name.
2019-07-30 19:00:07 -05:00
ChaosWormz
202ce65389
Merge pull request #12 from Panquesito7/master
Complete 1 task from TODO list
2019-07-29 10:08:56 +03:00
Panquesito7
536846658d
Update es.po 2019-07-28 23:14:18 -05:00
Panquesito7
fb26daa5e0
Update template.pot 2019-07-28 23:13:12 -05:00
Panquesito7
56bdc0e30c
Improve "/tpn"
This commit warns the player when they denied a request.
It also tells players what "/tpn" does, the usage.

Tested with MT/MTG 5.0.1 and works fine (no errors/bugs found).
If there's any bug/error/typo, please tell me, so, I can fix it.
2019-07-28 23:11:54 -05:00
Panquesito7
b583c5c637
Add "return" to "tpn"...
...function.
2019-07-28 21:31:24 -05:00
Panquesito7
63a59811e2
Update es.po 2019-07-28 18:05:48 -05:00
Panquesito7
f0b936196d
Update template.pot 2019-07-28 18:05:04 -05:00
Panquesito7
ea41ff5654
Update init.lua 2019-07-28 18:03:32 -05:00
Panquesito7
07128f83c8
Add "enable_immediate_teleport" 2019-07-27 19:41:04 -05:00
Panquesito7
65cad92d7d
Add "enable_immediate_teleport"
With this function enabled, players with "tp_admin" privilege teleport immediately to the specified player.
Otherwise, it will send a request to the specified player.
2019-07-27 19:34:36 -05:00
Panquesito7
5e2d1cbaa8
Update es.po 2019-07-26 18:53:58 -05:00
Panquesito7
5ac43b0f2d
Update template.pot 2019-07-26 18:52:57 -05:00
Panquesito7
f09fde8995
Tell both players (sender...
...and receiver) that the request sent timed out.
Tested with MT/MTG 5.0.1 and works fine.

The functions "clear_tpr_list" and "clear_tphr_list" are not used due to a crash while sending the message to both players.
Sorry for any inconveniences. I'll (soon?) probably create a fix for this.
If anyone has a fix for this, it would be greatly appreciated. You may comment on my PR.
2019-07-26 18:51:52 -05:00
Panquesito7
8555e135a6
Remove duplicated code 2019-07-25 23:51:04 -05:00
Panquesito7
fb0ec6ca24
Add "find_free_position_near"...
...function to "tpp_teleport_player" function.
2019-07-25 21:19:18 -05:00
Panquesito7
28b84a69d2
Update init.lua 2019-07-25 19:50:28 -05:00
Panquesito7
cd51a52ff2
Update config.lua 2019-07-25 19:39:26 -05:00
Panquesito7
fa423ed2f7
Update init.lua 2019-07-25 19:38:31 -05:00
Panquesito7
df5213992c
Update mod.conf 2019-07-25 18:32:50 -05:00
Panquesito7
aba7f5bd4f
Update README.md 2019-07-25 18:32:13 -05:00
Panquesito7
2a2ba65182
Tidied & tweaked code 2019-07-25 17:50:03 -05:00
Panquesito7
fb4a5fe25a
Fix a critical bug
This commit fixes a crash.
2019-07-25 17:39:58 -05:00
Panquesito7
77f0160961
Update es.po 2019-07-25 17:07:47 -05:00
Panquesito7
9b4112ab44
Update init.lua 2019-07-25 17:06:13 -05:00
Panquesito7
6e8e997fab
Tidied code 2019-07-25 16:59:37 -05:00
Panquesito7
58ad535138
Update README.md 2019-07-25 16:11:28 -05:00
Panquesito7
d4aec22bde
Update es.po 2019-07-25 16:10:11 -05:00
Panquesito7
e2a1ccf104
Update template.pot 2019-07-25 16:09:01 -05:00
Panquesito7
45943d662a
Update init.lua 2019-07-25 16:07:39 -05:00
Panquesito7
bcd67b8038
Update init.lua 2019-07-25 15:59:21 -05:00
Panquesito7
2ebd3983e4
Oops!
This commit fixes a crash.
2019-07-25 15:57:54 -05:00
Panquesito7
6f407e1629
Tweaked code 2019-07-25 15:46:52 -05:00
Panquesito7
2551dd6f9a
Update init.lua 2019-07-25 14:57:22 -05:00
Panquesito7
1380297b12
Update config.lua 2019-07-25 14:54:26 -05:00
Panquesito7
4108156118
Update init.lua 2019-07-25 14:53:20 -05:00
Panquesito7
4b992b30e4
Update README.md 2019-07-25 14:44:57 -05:00
Panquesito7
4e050feaa7
Tidied code 2019-07-25 14:16:48 -05:00
Panquesito7
05797f2252
Move some TPR functions...
...to "config.lua".
2019-07-25 14:12:26 -05:00
Panquesito7
6054324e72
Tweaked code 2019-07-25 13:39:40 -05:00
Panquesito7
a0845d38ce
Add "coil0" to the list of contributors 2019-07-25 13:25:26 -05:00
ChaosWormz
1174be55a5
Merge pull request #11 from coil0/timeout_fix
Fix request timeout
2019-07-25 09:44:24 +03:00
coil
d7ef3bf706 Minimize unnecessary closures
A closure is previously created and allocated every time tpr_send
or tphr_send is called. Instead, we define the function once
and reuse it.
2019-07-25 02:20:50 -04:00
coil
5d56e134d2 Fix request timeout 2019-07-24 22:22:43 -04:00
ChaosWormz
75c3718b15
Merge pull request #9 from Panquesito7/master
Tweak "README.md"
2019-07-23 20:08:17 +03:00
Panquesito7
b300b0c43d
Tweak "README.md" 2019-07-21 23:29:17 -05:00
ChaosWormz
f9d2d10560
Merge pull request #8 from Panquesito7/master
Complete 4 tasks from TODO...
2019-07-21 09:35:16 +03:00
Panquesito7
255b19f545
Add "return" to "tpp" command
Forgot to add a missing function!
2019-07-21 00:32:39 -05:00
Panquesito7
aeec8ce57a
Update README.md 2019-07-21 00:24:29 -05:00
Panquesito7
809b301898
Complete another task from TODO list
- Add a [different] sound effect at the source coords when a TP takes place (so other players hear it when to teleport away):
This was finished in this commit (tested with MT/MTG 5.0.1 and works fine).

If there's any error/bug/typo, please tell me, so, I can fix it.
2019-07-19 17:06:06 -05:00