Skip to content

Instantly share code, notes, and snippets.

@Shilo
Last active March 8, 2017 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shilo/ba51345a3923ad92ca48e77c599010a8 to your computer and use it in GitHub Desktop.
Save Shilo/ba51345a3923ad92ca48e77c599010a8 to your computer and use it in GitHub Desktop.
EOServ log spells to errors.log, inside method "void ESF::Read(const std::string& filename)" at approximately line 311.
static bool logHeader = false;
if (!logHeader) {
Console::Err("ID,Name,Channel,\
Type,Target Restrict,Target,\
Cast Time,TP Cost,SP Cost,Heal,Min Dmg,Max Dmg,\
Accuracy");
logHeader = true;
}
if (newdata.name != "eof") {
Console::Err("%i,%s,%s,\
%i,%i,%i,\
%i,%i,%i,%i,%i,%i,\
%i",
newdata.id, newdata.name.c_str(), newdata.shout.c_str(),
newdata.type, newdata.target_restrict, newdata.target,
newdata.cast_time, newdata.tp, newdata.sp, newdata.hp, newdata.mindam, newdata.maxdam,
newdata.accuracy);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment