Skip to content

LoadItemTemplate works strangely, I think the problem is somewhere else in WorldSession.cpp #164

Description

@lunat1cqaz

Added a new command to cs_reload,cpp + granted permissions to RBAC.h

// Reload all_item_template
static bool HandleReloadItemTemplateCommand(ChatHandler* handler, const char* /args/)
{
TC_LOG_INFO("misc", "Re-Loading item_template Table!");
sObjectMgr->LoadItemTemplates();
handler->SendGlobalGMSysMessage("DB table item_template reloaded.");
return true;
}

When I run the .reload item_template command, the entire item_template DB table is reloaded.

Afterwards, the item becomes available in the world. I issue it to a player via GM mode (.add id), and a crash occurs. I see this in the console:

trinitycore/source/src/server/game/Server/WorldSession.cpp:210 in SendPacket ASSERTION FAILED:
packet->GetOpcode() != NULL_OPCODE

How can I fix this? I've been struggling with this for two days now, and I've tried everything I can think of. :( I'm not a great programmer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions