Skip to content

Instantly share code, notes, and snippets.

@Shilo
Created March 8, 2017 20:13
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/a8f12e547afcfe2439942f5b68ffdfee to your computer and use it in GitHub Desktop.
Save Shilo/a8f12e547afcfe2439942f5b68ffdfee to your computer and use it in GitHub Desktop.
EOServ log NPCs to errors.log, inside method "void ENF::Read(const std::string& filename)" at approximately line 213.
static bool logHeader = false;
if (!logHeader) {
Console::Err("ID,Name,Type,Child,Parent,\
HP,EXP,Min Dmg,Max Dmg,Acc,Eva,Def,Vendor ID");
logHeader = true;
}
if (newdata.name != "eof") {
Console::Err("%i,%s,%i,%i,%i,\
%i,%i,%i,%i,%i,%i,%i,%i",
newdata.id, newdata.name.c_str(), newdata.type, newdata.child, newdata.boss,
newdata.hp, newdata.exp, newdata.mindam, newdata.maxdam, newdata.accuracy, newdata.evade, newdata.armor, newdata.vendor_id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment