Jump to content

[Question] Why is the command to reload item_template not supported on Mangos


Guest vvdarknessvv

Recommended Posts

Hey I know this is probably a completely newbie question, and it is also probably due to the fact that I am still learning C++. However maybe one of you can answer. Why is it possible on ArcEmu to reload the item Database in game with a command.

But it is not possible to due so on MaNGOS? Is there some type of conflict with the way MaNGOS is scripted, or has there just not been a code designed for it as of yet?

Thank you in advance for explaining this who ever does.

Link to comment
Share on other sites

Mangos does not support the reloading of stuff that is constantly being used (i.e. item_template, creature_template, etc.) only things which are loaded when needed.

However, it wouldn't make a difference anyway, if you made changes to the items and then reloaded them, the client would still think they were the same as before because of WDB caching.

Link to comment
Share on other sites

Main reason: hard and not safe implemntation reload. Safe way near to same as disconnection all players that i more simple do just reload server it self. This answered many times: what you will do it aftre reload some itams absent in item_template but equipped/owned by players, what do it item statistics changes? Creature equipment now also dependent from item_template data. What do with it? Scan all world for like creatures... And other questions... If some have idea how this implement in clean and safe way then maybe it will added.

Link to comment
Share on other sites

Alright that answers my question quite clearly. And I thought some one else might have asked this question in the past, but i couldn't find a current topic at this point that was discussing it, other then it being unstable. I just wanted to know.

Next question - If Creatures use the same table for there gear and such, and that is what cause some of the issues, why not just assign them a different Data base table, wouldn't that solve a bit of the problem? I also asked, not cause of changing stats on items, but implementing custom items if you add a new item, it often times would be simple just to reset and it wouldn't effect anything but adding the new item to the item_template area.

Again, I am a bit of a newbie to some of this, so if my suggestions are just blatantly not possible let me know,but i am just trying to puzzle it out.

Link to comment
Share on other sites

If Creatures use the same table for there gear and such, and that is what cause some of the issues, why not just assign them a different Data base table, wouldn't that solve a bit of the problem?
Maybe like 0.001% of it. The REAL problem is people having items, then when you reload, the template for those items may be gone. What now?
Link to comment
Share on other sites

If Creatures use the same table for there gear and such, and that is what cause some of the issues, why not just assign them a different Data base table, wouldn't that solve a bit of the problem?

This was used some time back, NPCs had only models and you needed to assign everything(like swing anim. etc.)...

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use