Commit Graph

560 Commits

Author SHA1 Message Date
Sokomine
96a798ba5f allow to edit trade limits only when the NPC can be edited by that player 2022-09-10 22:03:59 +02:00
Sokomine
e7959477c9 allow to set trade limits only when the NPC can be edited by that player 2022-09-10 21:46:05 +02:00
Sokomine
8b9edead0e renamed fs_log.lua to fs_show_log.lua 2022-09-10 21:33:21 +02:00
Sokomine
c488f0f36e renamed trade_list.lua to fs_trade_list.lua 2022-09-10 20:14:32 +02:00
Sokomine
99c5d60dc2 show in trade list how much stock is available 2022-09-10 20:12:08 +02:00
Sokomine
da99bd3f95 corrected trade message when logging 2022-09-10 01:18:50 +02:00
Sokomine
dc80271803 got rid of further minetest.log and used own logging 2022-09-10 01:00:56 +02:00
Sokomine
f514acd3bc added prefix [MOD] yl_speak_up to debug.txt entries 2022-09-10 00:50:43 +02:00
Sokomine
940768de19 improved logging 2022-09-10 00:07:52 +02:00
Sokomine
6fe611a267 moved logging of mute/unmute to yl_speak_up.log_change 2022-09-09 23:39:12 +02:00
Sokomine
f714fd426b moved execution of lua code from fs_edit_general.lua to eval_and_execute_function.lua 2022-09-09 23:29:16 +02:00
Sokomine
97275128d0 added yl_speak_up.log_error_with_position 2022-09-09 23:20:59 +02:00
Sokomine
8aad949ee2 used yl_speak_up.log_change where appropriate 2022-09-09 22:56:52 +02:00
Sokomine
32a0613780 moved logging into fs_log.lua and logged in extra npc log files 2022-09-09 22:13:42 +02:00
Sokomine
4067fd8f59 made delete button work for buy via button 2022-09-09 20:23:54 +02:00
Sokomine
60ae2585ae fixed bug in find_next_id 2022-09-09 20:22:56 +02:00
Sokomine
7adabf312d show stock in trade_via_buy_button 2022-09-09 06:30:07 +02:00
Sokomine
d5fe15a7c7 added trade interface via buy button 2022-09-08 23:30:25 +02:00
Sokomine
0d88093a45 fixed bug (called function in wrong mod) 2022-09-08 23:19:58 +02:00
Sokomine
1eb272ecb2 respect trade limits 2022-09-06 22:26:45 +02:00
Sokomine
3ddec81b1c added error messages when editing trade limits 2022-09-05 20:38:19 +02:00
Sokomine
a0f2f5b340 show correct item in trade limit list when returning from editing an entry 2022-09-05 07:27:29 +02:00
Sokomine
15197a8861 added delete button for trade limit 2022-09-05 07:18:11 +02:00
Sokomine
fe3b4c80df sort trade limit list by item name 2022-09-05 07:08:55 +02:00
Sokomine
0b26af1287 added limit handling to trade formspec 2022-09-05 07:00:55 +02:00
Sokomine
e7d82c1d52 prepare dialog.trades before actually starting to talk 2022-09-04 06:17:20 +02:00
Sokomine
1a7184420a fixed typo 2022-09-04 06:16:08 +02:00
Sokomine
e842960830 added yl_speak_up.get_one_npc_property; added yl_speak_up.get_npc_properties_long_version for easier access to properties 2022-09-04 06:12:41 +02:00
Sokomine
b9e6a8a74c allow to enter item name of price item instead of an example item 2022-08-28 23:47:25 +02:00
Sokomine
9358a27b03 fixed bug in trading where the npc could sell when out of stock 2022-08-16 05:53:14 +02:00
Sokomine
9c95aa2074 implemented trading via buy button in yl_speak_up.do_trade_direct (plus showing how many times traded) 2022-08-16 05:42:44 +02:00
Sokomine
b313f6fd98 added a button for buying directly in a trade 2022-08-16 05:06:43 +02:00
Sokomine
b7d0f88790 properties starting with "server" can only be changed manually by players with the npc_master priv 2022-08-07 23:18:35 +02:00
Sokomine
5da08359cb added update regarding custom actions to README.md 2022-08-07 22:06:26 +02:00
Sokomine
48e5af991c added code_input_handler for actions of type "evaluate" 2022-08-07 21:13:20 +02:00
Sokomine
3cd6077efd moved another function inside exec_actions.lua 2022-08-07 20:58:24 +02:00
Sokomine
49c2c49d6d just moved a function inside exec_actions.lua 2022-08-07 20:55:57 +02:00
Sokomine
77c05631eb removed obsolete action "custom" (use the new "evaluate" instead) 2022-08-07 20:49:09 +02:00
Sokomine
4dfa9f2ed3 added new action type "evaluate" similar to preconditions and effects 2022-08-07 20:06:04 +02:00
Sokomine
c79999ebf4 implemented some example custom functions 2022-08-02 22:19:31 +02:00
Sokomine
5f98cecfaf bugfix - d_end exists as well and needs to be treated specially 2022-08-02 21:41:28 +02:00
Sokomine
2355669761 handled edge case in npc_talk_generic 2022-08-02 21:41:05 +02:00
Sokomine
87e3bc9176 added mobs_redo sheep and cow as example 2022-08-02 18:22:48 +02:00
Sokomine
3882c6263e removed precondition operator true_for_param and false_for_param because that can be better handled by precondition evaluate 2022-08-02 18:22:17 +02:00
Sokomine
1e828a1792 minor bugfixes 2022-07-28 03:38:31 +02:00
Sokomine
a5bb692533 removed obsolete effect "custom" (use evaluate instead) 2022-07-27 03:38:49 +02:00
Sokomine
7deca89a5d finished implementation of effect "evaluate" 2022-07-27 03:32:26 +02:00
Sokomine
dae9e308b4 finished implementation of precondition "evaluate" 2022-07-27 01:05:47 +02:00
Sokomine
073b9d4284 edit and store preconditions of type "evaluate" 2022-07-26 23:43:06 +02:00
Sokomine
f00a7752d8 show the full name of the function description for evaluate preconditions/effects 2022-07-25 19:39:18 +02:00