Commit Graph
507 Commits
Author SHA1 Message Date
Luis C.M dd207757ea IPlayer:
-Added disableMouseInput(long time, int... buttonIds) function.
2022-06-13 17:21:02 -05:00
Luis C.M dfec85484b Quests:
-Quests with complete text now complete the quest in data before showing the text GUI, instead of being completed when that GUI is closed.

Item Quests:
Some fixes to item quest completion when an item is picked up.
2022-06-13 04:08:36 -05:00
Luis C.M 1293fabca9 RenderCNPCPlayer changes in ClientEventHandler:
-Fixed cancelling an uncancellable armor render event.
-Only RenderPlayerEvent.Specials.Pre is cancelled, rather than trying to cancel both Pre & Post.

RenderCNPCPlayer:
-Now always returns -1 as a render pass.
2022-06-13 00:47:39 -05:00
Luis C.M 3c4b680bc1 Another fix to alternate NPC model textures not working the way they're supposed to. 2022-06-12 15:45:04 -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 8f5df6b661 Merge remote-tracking branch 'origin/master' 2022-06-12 05:40:51 -05:00
Luis C.M 389d8adf98 A quest is now properly untracked if a player completes it. 2022-06-12 05:40:38 -05:00
Luis C.M 31671b0281 Reverted DataDisplay and RenderNPCInterface changes. 2022-06-12 04:50:29 -05:00
Luis C.M 50cb0150aa Reverted GuiCreationScreen changes. 2022-06-12 04:42:33 -05:00
Luis C.M fd1ac6dce4 Merge KAMKEEL-dev into dev. 2022-06-12 04:23:05 -05:00
Luis C.M 13ddc19522 Merge branch 'master' into dev
# Conflicts:
#	src/main/java/noppes/npcs/client/model/ModelMPM.java
#	src/main/java/noppes/npcs/client/renderer/RenderNPCHumanMale.java
2022-06-12 03:40:50 -05:00
Luis C.M 8b77597e27 Overlays don't render over special DBC model parts like antennae & tails. 2022-06-12 03:38:20 -05:00
Luis C.M 9a76c9a68d The glow texture selection GUI now correctly starts the player out at the "customnpcs:textures/overlays/" directory. 2022-06-12 03:20:27 -05:00
Luis C.M f52721dc8f Small fix for NPC textures not appearing for different NpcGolem, NpcDragon, NpcSlime, & NpcPony types. 2022-06-12 02:52:11 -05:00
Luis C.M b70d0ba08f Fixed NPC textures being adjusted if an NPC has an entity model different from the default CNPC model. 2022-06-12 01:52:57 -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 587f63396f Dialog Image interface added. 2022-06-10 18:46:24 -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 486e37cd7f Implemented title positions for dialogs. 2022-06-10 04:47:28 -05:00
Luis C.M ff8fc68e88 Implemented dialog and text colors. 2022-06-10 01:38:01 -05:00
Luis C.M 4fe61a904f More dialog GUI data fixes and visual tweaks. 2022-06-09 18:07:51 -05:00
Luis C.M 76106b1ea6 Added dialog option to show line above options. 2022-06-09 03:51:27 -05:00
Luis C.M 84b7744023 Dialog GUI fixes. 2022-06-09 03:41:27 -05:00
Luis C.M b64ee1c93a Merge pull request #54 from 1whohears/dev
Some Extra Soul Stone Options
2022-06-09 02:35:22 -05:00
Luis C.M c99a4f8439 Server-side dialog data fixes. 2022-06-09 02:30:01 -05:00
Luis C.M 799d54a4dc Fixed a couple of client-side dialog data errors. 2022-06-09 02:16:25 -05:00
Luis C.M 60794592d1 Completely remade visual dialog options, added images and many other attributes to dialogs. 2022-06-09 02:03:14 -05:00
1whohears b7ef1da0d8 added npc.setMinPointsToSoulStone 2022-06-08 22:13:30 -05:00
Luis C.M deffb78167 Fixed render spam on overlays when checking for armor rendering. 2022-06-08 16:51:28 -05:00
Luis C.M f3177f6fd9 Fixed ImageDownloadAlt console spam. 2022-06-08 13:46:41 -05:00
1whohears 5740519ed2 ScriptRoleTrader.getSellOption returns the item being sold instead of the currency 2022-06-08 12:12:18 -05:00
1whohears 4a70dfb4ce soulStoneInit field bugfix 2022-06-08 00:32:58 -05:00
1whohears 825c42fc52 npc.isSoulStoneinit 2022-06-07 12:31:49 -05:00
1whohears 5edb08945e changed slot disabled label color 2022-06-06 14:39:10 -05:00
1whohears 17fa6328c9 fixed crash when hovering over a trader item slot
HashMap.put doesn't work the way I thought it did
2022-06-06 14:38:33 -05:00
Luis C.M 50471dbfac Added curly bracket pauses to instant dialog text. 2022-06-06 14:17:39 -05:00
Luis C.M b70b51fab1 Added curly bracket pauses to gradual dialog text. 2022-06-06 03:08:04 -05:00
Luis C.M 671899f215 Added curly bracket pauses to gradual dialog text. 2022-06-06 03:06:09 -05:00
Luis C.M e51d36e7a1 Dialog text renders on top of options again. 2022-06-05 23:28:33 -05:00
Luis C.M a1f4861d33 Added toggle for text sound 2022-06-03 17:16:58 -05:00
Luis C.M 3552b58e5c You can no longer scroll up until no dialog lines are visible. 2022-06-03 15:38:52 -05:00
Luis C.M c7b34dcf54 More scrolling and dialog alignment fixes. 2022-06-03 15:33:20 -05:00
Luis C.M 2c84a527bf Fixed dialog height 2022-06-03 14:02:48 -05:00
1whohears 8c687e7ef5 fixed DataTimers.writeToNBT 2022-06-02 21:32:19 -05:00
Luis C.M 213d69f146 Function added
NpcAPI:
-Added stopServer() function.
2022-05-31 18:54:11 -05:00
Luis C.M dccdb9636c More tweaks to dialogs, fixed option X spacing. 2022-05-30 23:56:31 -05:00
Luis C.M bb65e79102 Implemented dialog option spacing 2022-05-30 18:31:58 -05:00
Luis C.M e7ceaa6d2a Simplified logic on an if statement 2022-05-30 04:53:17 -05:00
Luis C.M 2370c5e1f4 Added scrolling to dialogs 2022-05-30 04:51:30 -05:00