60 sDatabase.RunQuery(res,
"SELECT fromID,toID,standing FROM repFactions");
67 sDatabase.RunQuery(res,
"SELECT fromID, standing AS rank FROM repStandings WHERE toID = %u", charID);
74 sDatabase.RunQuery(res,
"SELECT fromID, toID, standing FROM repStandings WHERE toID = %u OR fromID = %u",
89 sDatabase.RunQuery(res,
"SELECT fromID, toID, standing FROM chrNPCStandings WHERE toID = %u", charID);
100 " itemName AS ownerName,"
103 " WHERE itemID < 0"))
105 _log(DATABASE__ERROR,
"Error in PrimeCharStandings query: %s", res.
error.
c_str());
132 " FROM repStandingChanges"
133 " WHERE toID = %u AND fromID = %u",
134 args.toID, args.fromID))
145 sDatabase.RunQuery(res,
"SELECT standing FROM repStandings WHERE fromID=%u AND toID=%u", fromID, toID);
160 sDatabase.RunQuery(err,
"INSERT INTO repStandings (fromID, toID, standing) VALUES (%u,%u,%f)", fromID, toID, standing);
167 "INSERT INTO repStandings (fromID, toID, standing)"
169 " ON DUPLICATE KEY UPDATE standing = standing + %f",
170 fromID, toID, standing, standing);
179 "INSERT INTO repStandingChanges (eventTypeID, eventDateTime, fromID, toID, modification, msg)"
180 " VALUES (%u, %f, %u, %u, %f, '%s' )",
static float GetStanding(uint32 fromID, uint32 toID)
PyRep * GetCharNPCStandings(uint32 charID)
#define _log(type, fmt,...)
float GetFloat(uint32 index) const
PyObjectEx * DBResultToCRowset(DBQueryResult &result)
static PyObjectEx * GetFactionStandings()
int32 GetCharacterID() const
int32 GetCorporationID() const
bool GetRow(DBResultRow &into)
static void UpdateStanding(uint32 fromID, uint32 toID, float standing)
static PyRep * GetMyStandings(uint32 charID)
const char * c_str() const
#define codelog(type, fmt,...)
PyObject * DBResultToRowset(DBQueryResult &result)
PyRep * GetStandingTransactions(Call_GetStandingTransactions &args)
PyRep * PrimeCharStandings(uint32 charID)
PyRep * GetCorpStandings(Client *pClient)
static void SetStanding(uint32 fromID, uint32 toID, float standing)
PyRep * GetCharStandings(Client *pClient)
PyRep * GetStandingCompositions(uint32 fromID, uint32 toID)
static void SaveStandingChanges(uint32 fromID, uint32 toID, uint16 eventType, float amount, std::string msg)