Commit Graph
76 Commits
Author SHA1 Message Date
Kam 690f2ca10d Hook Up Linked Item to existing Events 2025-02-17 16:02:56 -05:00
Kam 25d917c338 Merge branch 'packet' into animation-events-2 2025-02-14 15:22:59 -05:00
luisc d394174108 Made item events use IItemCustomizable interface. 2025-02-13 19:00:21 -06:00
luisc 00af353e65 Merge remote-tracking branch 'refs/remotes/origin/packet' into animation-events-2
# Conflicts:
#	src/api
#	src/main/java/noppes/npcs/CommonProxy.java
#	src/main/java/noppes/npcs/ServerEventsHandler.java
#	src/main/java/noppes/npcs/client/PacketHandlerClient.java
#	src/main/java/noppes/npcs/client/gui/global/GuiNPCManageAnimations.java
#	src/main/java/noppes/npcs/controllers/data/AnimationData.java
2025-02-11 16:53:36 -06:00
Kam 20a46e6007 Custom Effect [WIP] 2025-02-10 14:58:45 -05:00
Luis C.M. 990419a411 New event hooks and animation event class 2025-01-22 15:49:27 -06: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
Luis C.M. 05c2164baf Added an entity field to the
CNPC natural spawn event.
2024-08-05 19:35:59 -05:00
Kam 60dcef2e29 Null check for Swing Event 2024-03-29 01:35:07 -04:00
Kam ad3fdaec19 Fix Right Click Name 2024-03-28 03:15:19 -04:00
Kam 9cd57ac6cb getBlock always null 2024-03-22 18:07:00 -04:00
Kam 2fd7594720 Remove Fernflower References 2024-03-17 23:17:36 -04:00
Kam 82e54b5982 Optimize Imports 2024-03-17 23:15:11 -04:00
Kam 614c6ca474 Party Scripting / Better Party Objective Handling (Sync)
- IParty API
- PartyEvents and Registers
- Register Hooks to Player Scripts
2024-03-06 05:05:16 -05:00
Kam 7f2a375323 RightClick Event for Scripted Items 2024-02-21 00:31:17 -05:00
Kam e46b78ff71 Optimize Imports 2024-02-15 17:54:28 -05:00
Kam 1393de181d Melee Swing Event 2024-02-12 02:56:11 -05:00
Kam 97d3df9f38 Merge pull request #114 from Goodbird-git/scripted-commands
Implemented scripted commands
2024-01-22 21:56:34 -05:00
Goodbird e882cdacb2 Turned command id into a string 2024-01-22 23:05:12 +03:00
Goodbird 7f4fd1305e Added hook names to block events 2024-01-21 22:35:19 +03:00
Goodbird dbdf559cf6 Implemented scripted block event interfaces 2024-01-21 10:55:40 +03:00
Goodbird 1cdeb34953 Implemented the interface for ScriptedCommandEvent 2024-01-20 12:16:31 +03:00
Kam 24d12e25a9 Fix IProjectile Events
Thank you @somehussar
2023-12-31 16:10:38 -05:00
Luis C.M 80352741b9 Fixed custom gui slot behavior 2023-03-18 15:52:50 -05:00
Luis C.M e3405d22e9 Fixed null pointer exceptions from new custom gui slot commit. 2023-03-18 03:47:24 -05:00
Luis C.M 586c451f06 ICustomGui:
-Added IDs to custom GUI slots.
2023-03-18 03:04:46 -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 46d668f44c Added IProjectile and its events. 2023-03-16 02:51:40 -05:00
Luis C.M 78357165a2 Marked events that can be cancelled as cancellable if they didn't have the annotation. 2023-01-25 21:54:25 -06:00
KAMKEEL bda76bafe6 Optimize Imports 2023-01-12 21:33:06 -05:00
Luis C.M 681f62eeb6 Added getHookName() function 2022-11-24 16:46:20 -06:00
Luis C.M 0414817673 Implemented event interfaces, made more events cancellable. 2022-11-24 14:36:09 -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
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 6ae465c5d0 Revert "Added several more functions to pre-existing classes:"
This reverts commit e9a8f8cebc.
2022-11-06 00:10:04 -04:00
Luis C.M e9a8f8cebc Added several more functions to pre-existing classes:
-Spawner, Transport, Healer, Guard, Bard jobs received more functions.
-Added more functions to the transporter role.
-IRole: Added getNpc() function.
-IAnimal, IEntityLiving, and IEntityLivingBase received more functions from their MC counterparts.
-Nearly every function with that takes position/vector parameters now has an equivalent with IPos as a parameter instead.
2022-11-05 20:19:14 -05:00
Luis C.M 112e82a09d Made NPC projectile and death events cancellable. 2022-11-05 04:21:30 -05:00
Luis C.M 6782a5b9ba Made NPC dialog event cancellable 2022-11-05 04:19:03 -05:00
c0508383 12a3fffeab PlayerEvent:
-Added PlayerEvent.AttackEvent & PlayerEvent.AttackedEvent, preventing any knockback from happening from attacks.
2022-07-07 12:49:30 -05:00
c0508383 9bd644f84a PlayerEvent.MouseClickedEvent:
-Added isCtrlPressed, isAltPressed, isShiftPressed, isMetaPressed, and keysDown fields for button combinations.
2022-07-06 18:41:39 -05:00
Luis C.M 4094f3e851 Added 4 different spawning options, and spawning height max and mins to natural spawn entries. 2022-06-29 03:36:52 -05:00
Luis C.M b45cad77dd Added CustomGuiEvent.SlotClickEvent. 2022-06-18 12:52:23 -05: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 33bb0307e9 Separated data objects and data controller objects in the noppes.npcs.controllers package. 2022-05-24 01:07:50 -05:00
Luis C.M cf33b90b26 Used interfaces in implementations instead of the real classes for most scripted classes. 2022-05-11 22:08:31 -05:00
Luis C.M 6896cec417 Every function in API classes that calls the main API class now calls the loaded API wrapper, renamed to NpcAPI, instead of the abstract class, renamed to AbstractNpcAPI. 2022-05-11 17:12:48 -05:00
Luis C.M 6dea5a1cbc Interfaces have a file strucutre resembling the file structure of their implementing classes. 2022-05-11 16:43:14 -05:00