chupaescadatri
Banned User
- Joined
- Jul 5, 2014
- Messages
- 338
- Reaction score
- 49
this is part of the source of my tfs
how do I send him the name that will be killed by "NAME".
to my mysql table?
how do I send him the name that will be killed by "NAME".
to my mysql table?
Code:
Item* corpse = Creature::getCorpse();
if(corpse && corpse->getContainer())
{
Creature* lastHitCreature_ = NULL;
Creature* mostDamageCreature = NULL;
char buffer[190];
if(getKillers(&lastHitCreature_, &mostDamageCreature) && lastHitCreature_)
sprintf(buffer, "You recognize %s. %s was killed by %s.", getNameDescription().c_str(), (getSex() == PLAYERSEX_FEMALE ? "She" : "He"), lastHitCreature_->getNameDescription().c_str());
else
sprintf(buffer, "You recognize %s.", getNameDescription().c_str());
corpse->setSpecialDescription(buffer);