Kam
449a10711e
Defaulting Language Behavior
2026-02-04 15:30:32 -05:00
Kam
a9b602713c
Large Cleanup to Code Imports and Formatting
2026-01-22 23:07:38 -05:00
Kam
0f1a6028f3
Event Janino Script
2026-01-22 20:53:48 -05:00
Kam
19b01e2099
Compress Script Hooks and Context System
2026-01-22 14:27:48 -05:00
bigguy345
50e9f1b3e5
HUGE IScriptHandlerPacket merge.
...
All ScriptHandlers that send packets now directly define their data through the ScriptHandler class itself, NOT through their own GuiScript extended class.
2026-01-22 20:05:07 +02:00
bigguy345
68bc02a5d4
Removed SingleScriptHandler
2026-01-18 03:01:55 +02:00
bigguy345
54d0fe2b1b
Very first implementation of JaninoNpcScript
2026-01-14 00:24:38 +02:00
bigguy345
cc0959dcfe
Added run(EnumScriptType, Event) and
...
run(String, Event) methods to IScriptUnit interface, with JaninoScript
delegating to callByHookType(). This provides a cleaner abstraction that
supports both ScriptContainer and JaninoScript without type checking.
Affected files:
- IScriptUnit: Added run() methods to interface
- JaninoScript: Implemented run() delegation methods
- DataScript, PlayerDataScript, GlobalNPCDataScript, ForgeDataScript
- EffectScript, LinkedItemScript, RecipeScript
- ScriptCustomItem, TileScripted: Refactored to use polymorphic calls
2026-01-14 00:16:58 +02:00
bigguy345
cd60a03544
Moved all INpcScriptHandler implementations to IScriptHandler as its redundant
2026-01-13 23:45:14 +02:00
bigguy345
c3e032dcf2
Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation
2026-01-13 18:25:28 +02:00
Kam
9c541999f3
Optimize Imports
2025-07-23 14:22:52 -04:00
Kam
2b6f63a3e3
Right Click Event for Players
2025-06-02 14:56:29 -04:00
Kam
180d257024
Proper Reformating
2025-03-13 17:14:45 -04:00
Kam
934cc3d7cd
Reapply "Revert Animation Events"
...
This reverts commit 4113bcc6e9 .
2024-08-22 16:47:45 -04:00
Kam
4113bcc6e9
Revert "Revert Animation Events"
...
This reverts commit 1ffddd3ce9 .
2024-08-22 16:47:07 -04:00
Kam
1ffddd3ce9
Revert Animation Events
2024-05-26 19:26:47 -04:00
Luis C.M
61781710f1
Implemented animation events and made some event classes abstract.
2024-03-24 17:03:58 -05:00
Luis C.M
a422f041d5
NPC's script containers are only saved to NBT if they have code.
2023-08-01 16:39:08 -05:00
Luis C.M
3b0879b0db
Made a new interface for CNPC+ script handlers and changed callScript functions to make them more 3rd party API-friendly
2023-07-13 13:56:32 -05:00
Luis C.M
dd7714350d
ScriptWorld:
...
-Added functions from patch
2023-06-02 17:17:00 -05:00
Luis C.M
895d20335f
DataScript:
...
-Now doesn't create a new instance of NpcAPI
2023-05-30 01:27:34 -05:00
Luis C.M
a0adf0d7bd
Fixed item toss event not being cancellable. Setting a script container's engine doesn't happen on every script call now, reducing lag.
2023-05-29 23:57:45 -05:00
Luis C.M
8a4c9f6f6b
DataScript:
...
-Fixed loading error on NPC scripts causing index oob exceptions when reading event scripts.
2023-05-10 22:57:58 -05:00
Luis C.M
2ef93dd35f
Fixed index out of bounds exception
2023-03-16 23:58:45 -05:00
Luis C.M
e58b494979
All global NPC scripts are now called before local NPC scripts
...
Fixed event NPC scripts not running after erroring, and not outputting to the console
2023-03-16 16:43:05 -05:00
Luis C.M
fe780d69ee
Added target lost event. Added all new NPC events to the old 1.7.10 script system.
2023-03-16 04:56:33 -05:00
Luis C.M
29935a1c6d
Implemented local NPC event scripts.
2023-03-16 04:27:19 -05:00
Luis C.M
0db96f9040
Fixed forge, player, & npc scripts not being able to be deleted or added.
2023-02-19 16:22:28 -06:00
Luis C.M
de6375c4cb
Fixed script console not appearing with the new global script tab saving method.
2023-02-19 15:20:51 -06:00
KAMKEEL
bda76bafe6
Optimize Imports
2023-01-12 21:33:06 -05:00
KAMKEEL
6e92f08851
Config Overhaul
2023-01-07 00:21:08 -05:00
Luis C.M
7a715ef308
NpcAPI:
...
Added functions for adding keywords to global script running
++ addGlobalObject(String,Object)
++ removeGlobalObject(String)
++ getEngineObjects()
2022-12-14 17:53:57 -06:00
Luis C.M
aa02e5dcc3
Fixed API interface errors, added casts for custom item script handlers in EventHooks, and added some event interfaces.
2022-11-23 23:59:01 -06:00
KAMKEEL
be9ae94163
Start API Branch
2022-11-15 15:25:53 -05:00
KAMKEEL
5ff3a3a1ba
Player Logging
2022-11-07 01:49:54 -05:00
Luis C.M
8d3cd3fd82
Revert "Merge remote-tracking branch 'origin/dev' into dev"
...
This reverts commit 66edbcea80 , reversing
changes made to 3fd962289c .
2022-11-06 01:25:28 -06:00
KAMKEEL
7692c1b628
More Readable Logs with CNPC Level
2022-11-05 21:30:06 -04:00
KAMKEEL
37da3f6069
NPC Script Logging Config V 1.0
...
Added V 1.0 (CNPC+ Script Logging)
> Logs Activities for when CNPC+ Scripts are called
(Writes to CustomNPCs-latest.log)
Configuration Options Available in Config
2022-11-03 02:47:55 -04:00
KAMKEEL
e6dbfaa4f5
ScriptingEnabled Fix
2022-11-02 13:38:20 -04:00
Luis C.M
9c29aabea8
Merged local and global NPC events, deleting old unused event classes.
2022-06-10 18:32:42 -05:00
Luis C.M
8f16e6b20f
Added IDialogImage, a scripted object which is used by IDialog. Used to add dialog images.
...
IDialog:
-Added several new functions for dialogs' new visual attributes, as well as a way to add, get, create, remove, and clear dialog images.
Global NPC events:
-Added fields and variables from the old ScriptEvent events, in preparation to replace the old events with NpcEvent instances on local NPC scripts.
-Fixed issue where some event hooks would run on remote worlds.
Global NPC killed event:
-Added droppedItems and expDropped fields.
IWorld and NpcAPI:
-Now always uses a non-remove WorldServer object to create ScriptWorld objects and add them to the world cache.
2022-06-10 17:25:58 -05:00
Luis C.M
c0406958a3
The script controller now checks whether a language can have objects loaded into it on startup, catching an exception and skipping that language as available if so.
2022-05-29 16:01:05 -05:00