Commit Graph
56 Commits
Author SHA1 Message Date
Kam 52cdf91670 Initial Push for new Combat Policy Types [WIP] 2024-01-30 21:50:19 -05:00
Kam 16d02f93e1 Capital "I" for Instance 2023-06-05 19:35:06 -04: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
Kam 0b7bd2f009 Add Update Tracked Quest Frequency for ITEM QUESTs 2023-05-15 15:55:41 -04:00
Luis C.M 92097769d9 ScriptPlayerEventHandler:
-Temporary fix to updating tracked item quests.

Fixed more tracked quest issues.
2023-05-14 19:14:43 -05:00
Luis C.M e0360f9a6e Made tracked quest a private field, clearer intent in code for bug fixing. 2023-05-11 20:17:16 -05:00
Luis C.M fc9e85c35a Changed implementation of custom items' tick event to be more similar to 1.12's. 2023-03-29 21:23:09 -05:00
KAMKEEL bda76bafe6 Optimize Imports 2023-01-12 21:33:06 -05:00
Luis C.M 0414817673 Implemented event interfaces, made more events cancellable. 2022-11-24 14:36:09 -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
KAMKEEL b2e8178273 #60 Hopefully corrects fake player error 2022-10-03 22:48:18 -04:00
c0508383 12a3fffeab PlayerEvent:
-Added PlayerEvent.AttackEvent & PlayerEvent.AttackedEvent, preventing any knockback from happening from attacks.
2022-07-07 12:49:30 -05:00
Luis C.M c95c48a033 A server-side skin overlay data fix. 2022-06-15 05:04:17 -05:00
Luis C.M 3a604112ca A server-side skin overlay data fix. 2022-06-15 05:03:31 -05:00
Luis C.M 522b5b884a Scripted Skin Overlay render and packet sending fixes. 2022-06-15 03:48:32 -05:00
Luis C.M a18c05714c DEV overlay packet fixes 2022-06-15 01:38:51 -05:00
Luis C.M 57d95b9d42 Tracked quests are removed if they are no longer in a player's active quest data. 2022-06-12 05:52:07 -05:00
Luis C.M e4eb0e9cd8 Removed player completion checker. 2022-05-29 14:49:42 -05:00
Luis C.M e2df33fb5f Added quest objective and turnin data to the quest tracker. 2022-05-29 04:45:38 -05:00
Luis C.M 301e113be2 Added quest tracking, need to add objectives list and turn in info too. 2022-05-27 14:32:24 -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 82938fe5cd Fixed NBT issue with player overlays. 2022-05-24 00:11:34 -05:00
Luis C.M 6220a8ce14 -Overlays for players and NPCs are now grouped in an "overlay handler" object, similar to how you retrieve timers.
-Fixed client NPC overlay updates.
2022-05-23 20:41:32 -05:00
Luis C.M 8bc3190295 Implemented multiple overlay layers for CNPCs, replaces powered textures. 2022-05-17 04:34:46 -05:00
Luis C.M dbfbab7be2 Players can now have multiple skin overlays, just like GUI overlays. 2022-05-16 18:47:16 -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 11cc46b48f Fixed some scripted item events, and fixed positioning of scripted items. 2022-05-11 13:30:13 -05:00
Luis C.M 26f5f86dca Implemented Scripted Custom Items. 2022-05-11 01:10:31 -05:00
luisc d3145f4868 Added config for how often a player's quests are checked for completion. 2022-02-02 07:53:42 -06:00
luisc 1ebf747302 Optimized NBT access of player data when checking quest completion, player data variable is passed down to lower functions.
Player's quests are checked for completion every couple seconds now.
2022-02-02 07:18:33 -06:00
luisc f8a6fe3d75 Compatibility fix for mods that initialize player or worldobj fields as null. 2022-01-15 22:49:07 -06:00
luisc 953f6e0459 Fixed server-side lag caused by player events. THIS IS BIG. 2021-12-18 08:34:30 -06:00
luisc 1a78b2dad7 Timers are only updated if a timer exists for a player. 2021-12-17 17:30:50 -06:00
luisc d46d0aba7e Player events and Forge events run in their own separate buses without redundant registering. 2021-12-17 15:14:52 -06:00
luisc 03ee733620 Forge tick events only run if they are in the starting phase. 2021-12-17 14:26:52 -06:00
luisc 7d94e0e210 Removed forge chunk and terrain gen events. 2021-12-17 08:25:02 -06:00
luisc 23384d1d67 Fixed some server-side lag caused by player events. Player ticks now execute every 10 MC ticks. 2021-12-16 21:54:05 -06:00
luisc 6bdc68337c Revert "Made player script implementation closer to that of 1.12."
This reverts commit 3a9789b3fd.
2021-12-16 04:05:05 -06:00
luisc 3a9789b3fd Made player script implementation closer to that of 1.12. 2021-12-16 02:53:17 -06:00
luisc 547f5ab82d Container event spam when no container is open fixed. Fixed scripted player and forge events not launching after merging ScriptContainer and EventScriptContainer. 2021-12-03 18:17:52 -06:00
luisc 72869e6a78 Consolidated EventScriptContainer and ScriptContainer into a single ScriptContainer class. NPCs are now able to fly when ai.movementType == 1. 2021-12-01 15:31:05 -06:00
luisc b068c76fc8 Fixed some forge events not working from being registered on the wrong event bus. 2021-10-23 02:43:28 -05:00
luisc a29058d696 Fixed timers on the server-side. 2021-10-22 02:22:45 -05:00
luisc 4de969f6c9 Implemented scripted timers for players and NPCs. 2021-10-20 23:04:52 -05:00
luisc f88cbb8b51 Server-side compatibility changes 2021-10-19 02:49:46 -05:00
luisc bb1da8376d Implemented 1.12 event scripting API. 2021-10-18 22:01:15 -05:00