Commit Graph
397 Commits
Author SHA1 Message Date
Goodbird 6da6480dd5 Added an interface for scripted block script handler 2024-01-21 10:56:28 +03:00
Goodbird dbdf559cf6 Implemented scripted block event interfaces 2024-01-21 10:55:40 +03:00
Kam f3e162dafe Merge pull request #111 from Goodbird-git/screen-size
Implemented the ability to get the screen size from server
2024-01-18 15:06:44 -05:00
Goodbird c3b134b5ae Implemented the ability to get the screen size from server 2024-01-05 16:31:57 +03:00
Kam 24d12e25a9 Fix IProjectile Events
Thank you @somehussar
2023-12-31 16:10:38 -05:00
Luis C.M eed9dbb92e Added line support for ICustomNpc 2023-12-03 20:48:37 -06:00
luisc 8fe2bb89ea Merge remote-tracking branch 'origin/dev' into dev 2023-11-30 15:31:46 -06:00
luisc 156a976cdd Implemented get/setDialog functions for ICustomNpc. 2023-11-30 15:29:35 -06:00
Kam debd00c1c2 updateEntity 2023-11-22 17:12:30 -05:00
Kam 04be20101c Fix getStoredDataKeys() 2023-11-07 01:38:24 -05:00
Kam f6e8370ba3 Animation GUI Move to similar style menu. [Sub Gui not implemented yet] 2023-11-01 21:39:08 -04:00
Luis C.M f33260cf2d ScriptEntity:
-Fixed setDimension() not properly teleporting entities, sometimes causing duplicates.
2023-07-27 22:53:37 -05:00
Luis C.M 20b2cdae0a Merge remote-tracking branch 'origin/dev' into dev 2023-07-27 11:53:38 -05:00
Luis C.M e759310bcf ScriptDBCPlayer:
-Fixed add function for bonus attributes breaking after a bonus attribute has been removed
2023-07-27 11:53:31 -05:00
Kam c78ea34592 Remove Redundancies 2023-07-26 18:23:48 -04:00
Kam b932793814 Get HP 2023-07-26 18:22:18 -04:00
Kam da313f6d0a Compatibility Helper DBC 2023-07-19 11:17:11 -04: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 b592bb5d5e IPos objects now use double values in calculations for distance, addition, cross product, etc. 2023-07-07 17:51:51 -05:00
Kam 491e377a3e CAPITAL I cause it looks cool 2023-06-05 22:12:48 -04:00
Kam 54b46129a9 Capital "I" for Instance 2023-06-05 19:35:27 -04:00
Kam 3dc99dcf2c REMVOEOMOWAMo Arggg LOUIS! 2023-06-05 13:06:25 -04:00
Kam cf37e5c355 Just in case NULL Check 2023-06-04 22:03:58 -04:00
Luis C.M a2c6f07185 ICustomGui:
-Added clear() function for clearing all components
2023-06-04 18:11:36 -05:00
Luis C.M ad9c1b418d Added scriptPlayerCache (no null pointers this time) 2023-06-04 11:02:59 -05:00
Kam 59e1950c70 Remove PlayerScript Cache 2023-06-03 23:07:48 -04:00
Luis C.M 065b5eba16 NpcAPI:
-Cached scripted player objects so their tempdata is persisted after death.
2023-06-03 16:55:03 -05:00
Luis C.M b21e79b5bb IEntityLivingBase:
-Added functions to change maxHurtResistanceTime
2023-06-03 15:46:29 -05:00
Luis C.M 3a6255d98f NpcAPI:
-New function to create IPos objects from a long
IPos:
-fromLong() now mutates the calling IPos object
2023-06-03 14:32:43 -05:00
Luis C.M 29fb8d1dcf ScriptItemStack, ScriptEntity, ScriptBlock, & ScriptBlockPos:
-Implemented equals() functions for comparing objects of these types
2023-06-03 00:34:07 -05:00
Luis C.M 826a90bd6d IItemStack:
-New itemHash() function for comparing new instances of script item stacks for the same item.
2023-06-03 00:02:37 -05:00
Luis C.M 6e4083a9cc Increased cache time for item stacks 2023-06-02 23:58:04 -05:00
Luis C.M 0c8a44ead3 Added scriptItemCache to clearCache function 2023-06-02 23:30:23 -05:00
Luis C.M ac98053bf4 Merge branch 'patch' into dev 2023-06-02 17:26:59 -05:00
Luis C.M dd7714350d ScriptWorld:
-Added functions from patch
2023-06-02 17:17:00 -05:00
Luis C.M ed6e09a617 Merge branch 'patch' into dev 2023-06-01 22:02:44 -05:00
Luis C.M b17a425dd8 ScriptLivingBase & ScriptWorld:
-Added additional IEntity[] ignoreEntities parameter to ignore those entities when creating lists.
-For ScriptLivingBase, the entity using getLookingAtEntities is ignored.
2023-06-01 22:02:27 -05:00
Luis C.M 0692c4362f ScriptWorld:
-Made offset parameter for rayCastEntities() have a use again
2023-06-01 21:29:29 -05:00
Luis C.M 414818ab8d ScriptWorld:
-Made rayCastEntities() use a function similar to rayCastPos() to create its entity list.
2023-06-01 21:24:59 -05:00
Luis C.M b191ede19c Merge branch 'patch' into dev
# Conflicts:
#	src/main/java/noppes/npcs/client/fx/CustomFX.java
2023-06-01 18:15:54 -05:00
Luis C.M 6febeeea02 ScriptCustomItem:
-Fixed custom item visually disappearing after editing a script.
2023-06-01 18:12:15 -05:00
Luis C.M f5ac14b93e Merge branch 'patch' into dev
# Conflicts:
#	src/main/java/noppes/npcs/client/gui/custom/components/CustomGuiButton.java
#	src/main/java/noppes/npcs/client/gui/custom/components/CustomGuiTexturedRect.java
#	src/main/java/noppes/npcs/client/renderer/customitem/CustomItemRenderer.java
2023-06-01 16:35:04 -05:00
Luis C.M 01339e7baf ScriptLivingBase:
-Reverted previous change, not worth the inaccuracies it would cause on servers
2023-06-01 00:49:33 -05:00
Luis C.M 62ee42a23d ScriptLivingBase:
-Slightly improved getLookingAtPos() results
2023-06-01 00:36:40 -05:00
Luis C.M a8a0528275 ScriptWorld:
-Increased the accuracy of rayCastPos().
2023-05-31 23:59:11 -05:00
Luis C.M 7000b525f3 Fixed entity custom item rendering, and rendering of textures for custom GUI buttons and rectangles. 2023-05-31 18:55:06 -05:00
Luis C.M 118d79f3ad Added synchronization blocks to functions retrieving objects from CacheHashMaps and made the API use one for caching item stacks as well. 2023-05-31 00:35:57 -05:00
Luis C.M ab8e966f71 NpcAPI:
-Made item cache key removal a synchronized code block
2023-05-30 01:46:29 -05:00
Luis C.M 45a139ea68 NpcAPI:
-Further fix to concurrent modification exception
2023-05-30 01:37:08 -05:00
Luis C.M 65f3f8fc74 NpcAPI:
-Fixed concurrent modification exception
2023-05-30 01:33:18 -05:00