• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Trade/Give button press

Joined
Mar 16, 2013
RedCents
2,237¢
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?
 
Last edited:
Thank you drcrimzon. Looks like via C++ plugin maker it would be SendWndClick("GiveWnd", "GVW_Give_Button", "leftmouseup");

Any way through OP codes? Just curious.
 
Question - Trade/Give button press

Users who are viewing this thread

Back
Top
Cart