azerothcore / azerothcore-wotlk

Complete Open Source and Modular solution for MMO
http://www.azerothcore.org
GNU Affero General Public License v3.0
6.59k stars 2.64k forks source link

Feature: reload items and creatures from Database #6011

Open BillzFisher opened 3 years ago

BillzFisher commented 3 years ago

****

Describe your feature request or suggestion in detail

**** Ok, So i am looking for a feature where I can update Items and Creatures database without having to restart the world server. A example of this is where you might want to change a name of a npc or item stats without requiring a worldserver restart with every edit. ****Describe a possible solution to your Feature or Suggestion in detail** ** Well, there is a working version of this feature as a module released with the latest 3.3.5 Trinity Core. With this being said it does not work with Azeroth Core so maybe someone could look at this public module as a way to get started on implementing or fuelling this feature ****Additional context** ** https://www.ac-web.org/forums/showthread.php?233198-Better-Item-Reload-(Includes-full-Item-and-Creature-Template-reloads)/page3 Latest file for Trinity 3.3.5: https://pastebin.com/sCixSa2x The commands you will need to add into the database are: - .reload_better_reload - .reload_item_template - .reload_full_creature_template ** **
UltraNix commented 3 years ago

This is not possible - many fields from templates are queried by client only once and then cached until you decide to clear it out. So e.g. if you want to change mob's name or item stats, you will be forced to send query_packet to all players, which is nonseless.

FrancescoBorzi commented 3 years ago

@UltraNix the author of this issue claims that it works on TC 3.3.5

UltraNix commented 3 years ago

Works only for the player that uses the command.

BillzFisher commented 3 years ago

I mean that's the entire point it's a development script for developers? I have it working right now on a TC 3.3.5 server so I know it works you would only ever have it work for the person doing the development or multiple people doing development you'd never put it on a server and let anyone use it cause that'd be a nightmare for the dedicated server you are using.

TLDR: Not for players only for developers I have it working and it works perfectly for developers and doesn't affect players@UltraNix

Kaev commented 3 years ago

https://github.com/azerothcore/mod-better-item-reloading I ported the item reload functionality as a module a few years ago. I guess it still works, feel free to try. :)

EDIT: Maybe someone can add the creature reload aswell and rename the module afterwards