azerothcore / azerothcore/mod-war-effort

PrintOutMaterialCount seems no work

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7
Forks
12
PR merge metrics
No merged PRs in 30d

Description

When asking War Effort Commander Field Marshal Snowfall(entry 15701) for a material schedule,
he immediately ended the conversation.

I go to mod_aq_war_effort_scripts.cpp->std::string WarEffort::PrintOutMaterialCount(uint8 team),
add printf("%s", output.c_str()) at the end and rebuild it,
there is no log when asking material schedule.

I checked table acore_characters->wareffort,
the variable value will increase when I provide materials.
But when setting ModWarEffort.Id = 2,
table acore_characters->wareffort does not create case id=2 and no variable value to increase when I provide materials.

Please check!
Thank you very much.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the material-schedule request for Field Marshal Snowfall and inspect mod_aq_war_effort_scripts.cpp, especially WarEffort::PrintOutMaterialCount(uint8 team). Compare the acore_characters->wareffort row and value changes for the default case and ModWarEffort.Id = 2. Done means the schedule request produces the expected output and the relevant material state is handled for that ID.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.