Luis C.M
7d0b124422
Npc API:
...
-Added natural spawn controller support
2022-06-29 00:06:38 -05:00
Luis C.M
58932ffe55
Fixes to scripted item rendering.
...
IItemCustom:
-Removed unnecessary setters.
2022-06-28 04:39:50 -05:00
Luis C.M
0aa9303f61
IPlayer:
...
-Removed 4 sendMessage functions that can already be done with Minecraft formatted codes.
2022-06-28 01:23:42 -05:00
Luis C.M
37e12b81d0
IPlayer:
...
-Implemented removeItem, removeAllItems, and inventoryItemCount functions with "ignoreNBT" and "ignoreDamage" parameters.
2022-06-28 01:10:38 -05:00
Luis C.M
1ca5a306fc
IDBCPlayer:
...
-Items can be set in vanity or armor slots, based on a "vanity" boolean value in setItem().
ISkinOverlay:
-Renamed setScale to setTextureScale.
2022-06-19 15:18:13 -05:00
Luis C.M
b45cad77dd
Added CustomGuiEvent.SlotClickEvent.
2022-06-18 12:52:23 -05:00
Luis C.M
40a210ce8f
Added configurable limits to skin overlays and dialog images.
2022-06-14 23:27:15 -05:00
Luis C.M
180b798773
IItemCustom:
...
-Hid some internal script execution functions from the player.
2022-06-13 21:42:49 -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
c7085f7acb
IDBCPlayer:
...
-Added getItem(byte slot) to get IItemStack objects from DBC EP slots.
-Renamed setInventoryItem to setItem
2022-06-13 21:24:55 -05:00
Luis C.M
ab5775f8f3
IDBCPlayer:
...
-Added void setInventoryItem(byte slot, IItemStack itemStack) function to set and remove (set null) items from DBC extra inventory.
2022-06-13 21:01:58 -05:00
Luis C.M
dd207757ea
IPlayer:
...
-Added disableMouseInput(long time, int... buttonIds) function.
2022-06-13 17:21:02 -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
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
b64ee1c93a
Merge pull request #54 from 1whohears/dev
...
Some Extra Soul Stone Options
2022-06-09 02:35:22 -05:00
1whohears
b7ef1da0d8
added npc.setMinPointsToSoulStone
2022-06-08 22:13:30 -05:00
1whohears
5740519ed2
ScriptRoleTrader.getSellOption returns the item being sold instead of the currency
2022-06-08 12:12:18 -05:00
1whohears
825c42fc52
npc.isSoulStoneinit
2022-06-07 12:31:49 -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
213d69f146
Function added
...
NpcAPI:
-Added stopServer() function.
2022-05-31 18:54:11 -05:00
1whohears
a675033d62
String data can't be null
2022-05-29 14:42:28 -05:00
Luis C.M
f9e92f3172
Added blend attribute to skin overlays.
2022-05-29 05:23:39 -05:00
1whohears
fb0ff50994
added get set refuse soul stone
...
one may want an npc to not be able to be picked up by soul stone in any circumstance
2022-05-29 02:46:24 -05:00
Luis C.M
fd0a99b3ed
Revert "NPC Skin Changes"
2022-05-29 00:59:40 -05:00
1whohears
9fef65b194
get the name of the player who spawned this npc with soulstone
2022-05-28 23:40:01 -05:00
1whohears
b18d0965f2
script player.sendMessage uses String as color parameter
2022-05-28 22:53:57 -05:00
Luis C.M
0028328db4
More fixes to setting NPC model types.
2022-05-28 07:06:38 -05:00
Luis C.M
968b43a321
setModelType() only takes 0 for Steve, or 1 for Alex as values.
2022-05-28 06:31:52 -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
1whohears
3cf780d9a2
add get reset disable purchase num by slot number and IPlayer
...
needed to add get/setStringIntegerArrayMap to NBTTags so save the player purchases and disabled slots with a String int[] hashmap
2022-05-26 15:57:24 -05:00
1whohears
e7250158ac
Update ScriptFaction.java
2022-05-26 03:52:44 -05:00
1whohears
3d02ce3ce0
world.rayCastBlock uses double[] for parameters
2022-05-26 03:04:13 -05:00
1whohears
77ee403720
RoleFollowers will not despawn if they have an owner
...
RoleFollowers canDespawn field will be changed back to the value set by the player in the gui/api if they stop following a player
2022-05-26 03:00:49 -05:00
1whohears
6698e8619c
world.getNearestAir returns IPos and takes IPos as parameter
2022-05-26 02:10:25 -05:00
1whohears
bc85756476
player.getLookingAtBlock returns IBlock
2022-05-26 01:51:05 -05:00
Luis C.M
2895f7a76a
Removed overridden getDimension() function, and an unused HashMap for skin overlays from ScriptPlayer.
2022-05-26 01:46:38 -05:00
1whohears
84973a025a
moved projectilesKeepTerrain to DataStats
2022-05-26 01:45:10 -05:00
1whohears
422dd3fc90
added trader.slotdisabled to trader gui
...
I just copied what was done to display the trader.insufficient and added trader.slotdisabled to en_US.lang
2022-05-26 01:43:17 -05:00
1whohears
aba637be14
removed redundant faction functions
...
Luis C.M. will add API.getFactions() which returns the FactionController. All these functions use the faction controller anyway.
Also Luis PR already has entity.getDimension and world.spawnEntity
2022-05-25 23:56:36 -05:00