Pychnight / TshockRpgToolKit

Master Controller for distrubtion of quests, custom npcs, custom items and skills, housing, leveling, npcshops, etc.
GNU General Public License v2.0
11 stars 1 forks source link

[Custom Npcs 2] Monsters turn invisible and Custom Names Reset. #19

Closed Pychnight closed 7 months ago

Pychnight commented 6 years ago

This is mostly the terraria client thinking it knows better then the server...

How to reproduce, Change a custom monsters life bytes to a high value above the normal range (example blue slime with a hp of 1000), and give it a custom name of AAAAA

When the player dies that is viewing the monster and respawns, the monster on that clients screen will reset / turn invisible

possible solutions

Other problem, Name Resetting

solution - there is actually a name update packet for npc's that we may be able to use to solve this in real time without hacks... by enfocing the update npc name every ai update.

Update NPC Name [56]
Server <-> Client (Sync)
Size     Description     Type     Notes
2     NPC ID     Int16     -
?     Name     String     Only if client is receiving packet