mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
Per comment, removing message and simplified.
This commit is contained in:
parent
05b3c89729
commit
0fcaf82038
@ -14099,17 +14099,8 @@ void Client::Handle_OP_TradeRequest(const EQApplicationPacket *app)
|
|||||||
#else
|
#else
|
||||||
else if (tradee && (tradee->IsNPC() || tradee->IsBot())) {
|
else if (tradee && (tradee->IsNPC() || tradee->IsBot())) {
|
||||||
#endif
|
#endif
|
||||||
// If the NPC is engaged, we cannot trade with it.
|
if (tradee->!IsEngaged()) {
|
||||||
// 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
|
|
||||||
trade->Start(msg->to_mob_id);
|
trade->Start(msg->to_mob_id);
|
||||||
|
|
||||||
EQApplicationPacket *outapp = new EQApplicationPacket(OP_TradeRequestAck, sizeof(TradeRequest_Struct));
|
EQApplicationPacket *outapp = new EQApplicationPacket(OP_TradeRequestAck, sizeof(TradeRequest_Struct));
|
||||||
TradeRequest_Struct *acc = (TradeRequest_Struct *) outapp->pBuffer;
|
TradeRequest_Struct *acc = (TradeRequest_Struct *) outapp->pBuffer;
|
||||||
acc->from_mob_id = msg->to_mob_id;
|
acc->from_mob_id = msg->to_mob_id;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user