Luis C.M
3d498814f9
Implemented custom commands.
2022-12-18 15:54:14 -06:00
Luis C.M
6f33b9df92
NpcAPI:
...
++ hasGlobalObject(String)
2022-12-16 19:36:39 -06: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
3945e7ffb8
NpcAPI:
...
Added createItemFromNBT(INbt) function.
2022-12-14 16:44:13 -06:00
KAMKEEL
be9ae94163
Start API Branch
2022-11-15 15:25:53 -05:00
Luis C.M
c8a8e866cb
IPos:
...
-Added crossProduct(IPos), divide(scalar), and to/FromLong functions.
NpcAPI:
-Added getAllInBox(from,to)
IBlock:
-Added setPosition functions
IBlock, IPos, IEntity, IWorld: -Added a readable toString() function
2022-11-06 15:08:58 -06:00
Luis C.M
0291fd44a5
Merge remote-tracking branch 'origin/louis' into dev
2022-11-06 01:27:45 -06:00
Luis C.M
5cb5770a20
Fixed NullPointerException crash from breaking blocks that have no tile entities.
2022-11-06 01:23:54 -06:00
Luis C.M
3fd962289c
NpcAPI:
...
-Added getPlayer() function
-Added getChunkLoadingNPCs function
-Added getCurrentPlayerCount, getMaxPlayers, and kickAllPlayers, isHardcore, getFile(path), and getServerOwner functions
2022-11-06 01:59:34 -05: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
c0508383
d1762654ba
ISound:
...
-Allows for the changing of several sound attributes, including volume, pitch, repeating, etc.
NpcAPI, IPlayer, IWorld:
-Added more sound functions, with sounds that can be stopped and started based on an ID.
2022-07-13 19:27:27 -05:00
Luis C.M
256ba5c599
Removed ScriptFaction in place of IFaction.
2022-07-01 23:26:47 -05:00
Luis C.M
496961ccc5
NpcAPI:
...
-Added getObjectSize() function for calculating object sizes.
RenderCNPCPlayer:
-Added gender & age/child compatibility for DBC rendering.
2022-07-01 17:02:40 -05:00
Luis C.M
7d0b124422
Npc API:
...
-Added natural spawn controller support
2022-06-29 00:06:38 -05:00
Luis C.M
5b3c6d9e3f
NpcAPI:
...
-stopServer() calls initiateShutdown() instead of stopServer(), stops crashes on stop.
2022-06-13 21:31:42 -05:00
Luis C.M
63a1525ee2
API Changes:
...
-Implemented interfaces for all jobs & roles.
ScriptPlayer:
-Added getData() function, which returns player data objects.
IPlayerData: New class that holds all player data for modification.
-Holds dialog, bank, quest, transport, faction, item giver, and mail data.
-Also holds companion data, with functions has/set/getCompanion, and a getCompanionID function to differentiate companions.
2022-06-12 01:26:23 -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
213d69f146
Function added
...
NpcAPI:
-Added stopServer() function.
2022-05-31 18:54:11 -05:00
Luis C.M
b6c62332ed
Fixed SkinOverlay objects not having their parent object initialized correctly.
2022-05-23 20:47:32 -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
b9266c3cc5
Added plenty more documentation for the javadoc.
2022-05-17 18:02:09 -05:00
Luis C.M
41401d0521
Removed redundant ScriptSkinOverlay, using SkinOverlayData in place of it, which now implements ISkinOverlay.
2022-05-17 04:46:06 -05:00
Luis C.M
6f9358c1ca
Glow can be disabled/enabled on skin overlays
2022-05-16 22:04:54 -05:00
Luis C.M
89ac9f5225
Fix for the global script GUI menu.
2022-05-16 00:42:40 -05:00
Luis C.M
115b66d0c6
NPC flight fixes and a minor change to the createIItemStack function.
2022-05-13 23:14:55 -05:00
Luis C.M
b20babbb35
Added implementations for ScriptItemArmor, ScriptItemBlock, and ScriptItemBook, which all extend ScriptItemStack.
2022-05-11 22:42:31 -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
Luis C.M
26f5f86dca
Implemented Scripted Custom Items.
2022-05-11 01:10:31 -05:00
Luis C.M
c3b9096295
Scripted particles can now spawn anywhere in the world, not just attached to an entity.
...
ScriptEntityParticle renamed to ScriptParticle, and EntityCustomFX renamed to CustomFX.
Re-enabled OpenGL blending for custom particles.
2022-05-06 03:38:24 -05:00
luisc
8a7f40189e
Fixed redundant function calls for saving player data in NoppesUtilServer when using isGUIOpen(). Added getServerTime() to NpcAPI.
2021-11-22 02:33:28 -06:00
luisc
77c2897109
Added getAllServerPlayers, createItem & createEntityParticle to NPC API. Added getDimensionID() to ScriptWorld.
2021-11-22 01:10:27 -06:00
luisc
d1c4adf371
ScriptEntity instances are now properly retrieved in event scripts
2021-10-21 22:14:12 -05:00
luisc
5515f5ef83
Fixed executeCommand() function for scripting API on the server-side.
2021-10-19 19:49:43 -05:00
luisc
72f2c3c60a
Implemented global Forge events. Reorganized NPC API files.
2021-10-18 06:33:39 -05:00
luisc
699182f4c0
Added ScriptBlock and ScriptNbt support to scripting API
2021-10-12 03:23:56 -05:00
luisc
6752f8baec
Implemented several more events for players, including a click event, key event, fall event, and the basic entity living hurt, killed, and kills events, among others.
2021-10-12 02:57:32 -05:00
luisc
1ee14920ff
Scripted player tick events are functional, GUI for player events is complete. Global player events run as they should now, just need to start implementing more of them.
2021-10-11 06:49:30 -05:00
luisc
95d2814651
Backported GUI features and necessary classes from 1.12.
2021-09-30 21:44:30 -05:00
luisc
8b6e84a8d4
Removed many unnecessary/redundant backported files. Focused only on classes that make events work.
2021-09-30 01:48:54 -05:00
luisc
5a1c4757cf
Went down huge rabbit hole to attempt adding scripted events for players. Chock full of errors, trying to backport classes from the 1.12 version.
2021-09-30 00:56:49 -05:00