44 Commits

Author SHA1 Message Date
stujones11
a58faa6f9e Next generation rewrite 2015-07-12 21:12:53 +01:00
stujones11
6b87897230 Remove duplicate entity checking 2014-08-16 16:59:49 +01:00
stujones11
c9be0fb868 Prevent crash if NPC name is nil 2014-08-16 16:53:23 +01:00
stujones11
50eeef5eec Merge pull request #1 from CiaranG/master
A few little fixes
2014-04-07 16:27:43 +01:00
Ciaran Gultnieks
b44926e824 Add a tell command 2014-03-26 18:21:13 +00:00
Ciaran Gultnieks
ff2da40fb4 Properly remove spawner when used or dug
Using minetest.dig_node causes various issues. An example is that when
area protection is in effect, it fails (even for your own area, because
minetest.dig_node doesn't allow a player to be specfied, it uses a null
one). So in the event of failure, a) after spawning, the spawner stays
there, and b) when you dig it, you get a copy in your inventory (because
the return value from dig_node was ignored) but it stays there so you
can dig infinite amounts of it.

Just using remove_node resolves all this.
2014-03-26 14:05:01 +00:00
Ciaran Gultnieks
d683387e92 Fix deco npc non-owner formspec
I don't know if this was always broken or if minetest has become more
strict, but the 'size' element is required.
2014-03-02 09:56:52 +00:00
Ciaran Gultnieks
8b7c67922e Don't reset deco flags when opening form
This stops the two checkboxes being reset to false every time the form
is opened. They were also being set to booleans, whereas the code uses
strings everywhere else. There is also code added to fix any invalid
boolean values found in saved data, converting them to strings.
2014-02-27 22:44:14 +00:00
Ciaran Gultnieks
df9c0923fe Add .gitignore for npcf.conf 2014-02-27 20:34:37 +00:00
stujones11
316a71f506 Fix formspec handling and trade npc bug 2013-12-06 20:09:44 +00:00
stujones11
b75306baed Fix npc_data directory creation on Windows 2013-10-22 20:11:25 +01:00
stujones11
702916430a Revert "Revert "Revert "Fix omission in previous commit"""
This reverts commit 6787bd7cce5923f7df527b9d99119196f09bccc0.
2013-10-22 20:05:52 +01:00
stujones11
6787bd7cce Revert "Revert "Fix omission in previous commit""
This reverts commit 58a8cec8b4269403cfe64fbbd8d4ed3f0a8e0866.
2013-10-22 20:04:01 +01:00
stujones11
58a8cec8b4 Revert "Fix omission in previous commit"
This reverts commit ea7cbcbf0a2affb2d3981af11bbd0a326562b426.
2013-10-22 20:00:57 +01:00
stujones11
ea7cbcbf0a Fix omission in previous commit 2013-10-20 20:43:49 +01:00
stujones11
33b86cdd17 Use platform specific path separator for os.execute 2013-10-20 20:23:38 +01:00
stujones11
5aacdc0b28 Fix load/save error logging 2013-10-20 16:48:42 +01:00
stujones11
7170a98418 Fix nil path error in Builder NPC 2013-10-20 15:43:17 +01:00
stujones11
ec336f5b8e Correction in npcf.conf.example 2013-10-08 22:04:13 +01:00
stujones11
0a05f8c08d Add facedir to NPC placement and update chatcommands 2013-10-08 20:17:06 +01:00
stujones11
f4dfba13b4 Add spawn function and improve chatcommand feedback 2013-10-08 19:13:17 +01:00
stujones11
f4428b9d1f Move chatcommands to a separate file 2013-10-07 19:34:36 +01:00
stujones11
2d15a56c77 Update README 2013-10-06 22:11:07 +01:00
stujones11
9d1d14b072 Restore custom NPC skin after reload 2013-10-06 19:42:00 +01:00
stujones11
2352e62ed3 Update README 2013-10-06 16:54:30 +01:00
stujones11
f0cb3e09f7 Improve NPC saving and loading commands 2013-10-06 16:50:20 +01:00
stujones11
1505f41fc2 Fix Deco NPC occasionally running on spot when stopped 2013-10-04 22:13:55 +01:00
stujones11
bf4b21469f Make Guard and Deco NPC surface in water 2013-10-04 21:02:51 +01:00
stujones11
3dd71dafd8 Move npc_data directory to worldpath 2013-10-04 20:52:36 +01:00
stujones11
2bdfa6296e Remove some redundant code 2013-09-30 21:29:00 +01:00
stujones11
0d1fad8866 Protect aginst use of /spawnentity 2013-09-29 20:37:11 +01:00
stujones11
413e8698ec Bugfix - bad argument to string find 2013-09-29 18:47:13 +01:00
stujones11
914213e148 Make 3d armor optional for Guard NPC 2013-09-29 17:34:40 +01:00
stujones11
454572299f Add npc_data directory and error logging bugfix 2013-09-29 16:56:20 +01:00
stujones11
5d0c7a2ef2 Update README 2013-09-29 15:31:50 +01:00
stujones11
7bb6b52d08 Update README 2013-09-29 15:27:40 +01:00
stujones11
7654244236 Update README 2013-09-29 15:25:41 +01:00
stujones11
f40284e222 Update README 2013-09-29 15:22:58 +01:00
stujones11
472aac9fdc Update README 2013-09-29 15:05:35 +01:00
stujones11
965f2f46d5 Update README 2013-09-28 20:09:32 +01:00
stujones11
866e4ca102 Update README 2013-09-28 20:00:49 +01:00
stujones11
da2e3d270a Update README 2013-09-28 18:01:00 +01:00
stujones11
95cccb8e03 Update README 2013-09-28 17:17:51 +01:00
stujones11
8871dd1285 Initial commit 2013-09-28 17:11:46 +01:00