I tried this...
#define OP_TradeAcceptClick 0x0065
#define OP_FinishTrade 0x6014
TradeAccept_Struct taStruct;
taStruct.from_mob_id = pChar->SpawnID;
//taStruct.unknown4 = 0;
SendEQMessage(OP_TradeAcceptClick, &taStruct, sizeof(taStruct));
SendEQMessage(OP_FinishTrade, 0, 0);
It looks like it presses the cancel button instead of "Give" for an NPC. Why is that? I just want to give an NPC an item automatically.
If it can't be done through OP codes, how can I do it through the UI? Is there some function that will press the button for me?
#define OP_TradeAcceptClick 0x0065
#define OP_FinishTrade 0x6014
TradeAccept_Struct taStruct;
taStruct.from_mob_id = pChar->SpawnID;
//taStruct.unknown4 = 0;
SendEQMessage(OP_TradeAcceptClick, &taStruct, sizeof(taStruct));
SendEQMessage(OP_FinishTrade, 0, 0);
It looks like it presses the cancel button instead of "Give" for an NPC. Why is that? I just want to give an NPC an item automatically.
If it can't be done through OP codes, how can I do it through the UI? Is there some function that will press the button for me?
Last edited: