Per comment, removing message and simplified.

This commit is contained in:
Trust 2019-11-13 23:46:36 +00:00
parent 05b3c89729
commit 0fcaf82038

View File

@ -14099,17 +14099,8 @@ void Client::Handle_OP_TradeRequest(const EQApplicationPacket *app)
#else
else if (tradee && (tradee->IsNPC() || tradee->IsBot())) {
#endif
// If the NPC is engaged, we cannot trade with it.
// Note that this work as intended, if the NPC is charmed
// you can still trade with it.
if (tradee->IsEngaged()) {
Message(0, "Your target cannot trade with you at this moment.");
}
// If it not engaged, it will automatically accept the trade.
else {
//npcs always accept
if (tradee->!IsEngaged()) {
trade->Start(msg->to_mob_id);
EQApplicationPacket *outapp = new EQApplicationPacket(OP_TradeRequestAck, sizeof(TradeRequest_Struct));
TradeRequest_Struct *acc = (TradeRequest_Struct *) outapp->pBuffer;
acc->from_mob_id = msg->to_mob_id;