Commit Graph
465 Commits
Author SHA1 Message Date
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 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 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
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
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
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
Luis C.M f0862e8a64 Fixed armor rendering twice when a player is using an overlay. 2022-05-29 19:51:03 -05:00
Luis C.M c0406958a3 The script controller now checks whether a language can have objects loaded into it on startup, catching an exception and skipping that language as available if so. 2022-05-29 16:01:05 -05:00
Luis C.M e4eb0e9cd8 Removed player completion checker. 2022-05-29 14:49:42 -05:00
Luis C.M f301f8fcbb The player quest tracker now supports dialog and location quests as well. 2022-05-29 05:33:13 -05:00
Luis C.M f9e92f3172 Added blend attribute to skin overlays. 2022-05-29 05:23:39 -05:00
Luis C.M 9928482c53 Fixed null error with the quest tracker. 2022-05-29 05:09:30 -05:00
Luis C.M e71ea4f495 Fixed the quest tracking overlay alignment. 2022-05-29 05:06:18 -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 0ed5887046 Alex armor now renders correctly for NPCs. 2022-05-29 03:06:57 -05:00
Luis C.M 2b15ba9197 Fixed x64 texture bug, breaking textures after switching the model type from x64 to x32
Fixed crash report handler issue with custom overlays.

Removed "textureGlowLocation" field, which is unused now.
2022-05-28 02:12:33 -05:00
Luis C.M 76802d1926 Pushed IDBCPlayer interface. 2022-05-27 15:55:15 -05:00
Luis C.M 8d4a7ea0b6 More merge fixes 2022-05-27 15:54:12 -05:00
Luis C.M ec5fc71413 Merge branch 'master' into dev
# Conflicts:
#	src/main/java/noppes/npcs/scripted/ScriptFaction.java
#	src/main/java/noppes/npcs/scripted/ScriptWorld.java
#	src/main/java/noppes/npcs/scripted/entity/ScriptNpc.java
#	src/main/java/noppes/npcs/scripted/entity/ScriptPlayer.java
#	src/main/java/noppes/npcs/scripted/interfaces/IEntity.java
#	src/main/java/noppes/npcs/scripted/interfaces/IWorld.java
#	src/main/java/noppes/npcs/scripted/interfaces/entity/ICustomNpc.java
#	src/main/java/noppes/npcs/scripted/interfaces/entity/IPlayer.java
2022-05-27 15:31:02 -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
1whohears f83487f67b removed setblock with the Minecraft block class as a parameter 2022-05-27 11:28:01 -05:00
1whohears 0d2011b2ba added some doc comments 2022-05-26 20:55:11 -05:00
1whohears 81033e5a9c renamed getFactionEnemies to getEnemyFactionIds
IFaction[] getFactionEnemies();
I think this should be implemented in PR #50 because IFaction is setup better there
2022-05-26 20:47:46 -05:00
1whohears a49dfff86a added world.rayCastBlock(IPos, IPos, int) 2022-05-26 20:44:44 -05:00