Skip to content

Instantly share code, notes, and snippets.

@Shilo
Created March 8, 2017 15:48
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/6b5879c27963566703e4baf27a510d8f to your computer and use it in GitHub Desktop.
Save Shilo/6b5879c27963566703e4baf27a510d8f to your computer and use it in GitHub Desktop.
EOServ log items to errors.log, inside method "void EIF::Read(const std::string& filename)" at approximately line 115.
static bool logHeader = false;
if (!logHeader) {
Console::Err("ID,Name,Type,Sub-Type,Rarity,Weight,\
HP,TP,Min Dmg,Max Dmg,Acc,Eva,Def,\
Str,Int,Wis,Agi,Con,Cha,\
Req Class,Req Level,Req Str,Req Int,Req Wis,Req Agi,Req Con,Res Cha,\
Res Light,Res Dark,Res Earth,Res Air,Res Water,Res Fire");
logHeader = true;
}
Console::Err("%i,%s,%i,%i,%i,%i,\
%i,%i,%i,%i,%i,%i,%i,\
%i,%i,%i,%i,%i,%i,\
%i,%i,%i,%i,%i,%i,%i,%i,\
%i,%i,%i,%i,%i,%i",
newdata.id, newdata.name.c_str(), newdata.type, newdata.subtype, newdata.special, newdata.weight,
newdata.hp, newdata.tp, newdata.mindam, newdata.maxdam, newdata.accuracy, newdata.evade, newdata.armor,
newdata.str, newdata.intl, newdata.wis, newdata.agi, newdata.con, newdata.cha,
newdata.classreq, newdata.levelreq, newdata.strreq, newdata.intreq, newdata.wisreq, newdata.agireq, newdata.conreq, newdata.chareq,
newdata.light, newdata.dark, newdata.earth, newdata.air, newdata.water, newdata.fire);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment