Nope.fishez wrote:This works excellently!
Are you aware of any way to extract the information in the links like the value, stat info, etc to a separate file?
Moderator: MacroQuest Developers
I don't think I'm going to add this feature, seems a bit unsafe to me to send commands in an EQ channel with 'search' and other obvious commands. It should be easy enough for you to pop some Master checks in at the top of Sub Event_chat though.ionsf wrote:I have a feature request.... I would like to have the trader sitting in a channel that me and some very close friends hangout in.
We all use macroquest. So its safe...
The feature I would like is for us to be able to enter the commands in our channel. Like ssearch robe. And the bot would report the results to the channel.
In any event i'm gonna see if I can write it myself..small learning curve
Code: Select all
if ((strstr(szMsg," tells the guild, '")) && (CHATEVENT(CHAT_GUILD))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," tells the guild, '")-szMsg));
strcpy(Arg2,strstr(szMsg," tells the guild, '")+19);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"guild",Arg1,Arg2,NULL);
} else if ((strstr(szMsg," tells the group, '")) && (CHATEVENT(CHAT_GROUP))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," tells the group, '")-szMsg));
strcpy(Arg2,strstr(szMsg," tells the group, '")+19);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"group",Arg1,Arg2,NULL);
} else if ((strstr(szMsg," tells you, '")) && (CHATEVENT(CHAT_TELL))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," tells you, '")-szMsg));
strcpy(Arg2,strstr(szMsg," tells you, '")+13);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"tell",Arg1,Arg2,NULL);
} else if ((strstr(szMsg," says out of character, '")) && (CHATEVENT(CHAT_OOC))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," says out of character, '")-szMsg));
strcpy(Arg2,strstr(szMsg," says out of character, '")+25);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"ooc",Arg1,Arg2,NULL);
} else if ((strstr(szMsg," shouts, '")) && (CHATEVENT(CHAT_SHOUT))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," shouts, '")-szMsg));
strcpy(Arg2,strstr(szMsg," shouts, '")+10);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"shout",Arg1,Arg2,NULL);
} else if ((strstr(szMsg," auctions, '")) && (CHATEVENT(CHAT_AUC))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," auctions, '")-szMsg));
strcpy(Arg2,strstr(szMsg," auctions, '")+12);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"auc",Arg1,Arg2,NULL);
} else if ((strstr(szMsg," says '")) && (CHATEVENT(CHAT_SAY))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," says '")-szMsg));
strcpy(Arg2,strstr(szMsg," says '")+7);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"say",Arg1,Arg2,NULL);
} else if ((strstr(szMsg," says, '")) && (CHATEVENT(CHAT_SAY))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," says, '")-szMsg));
strcpy(Arg2,strstr(szMsg," says, '")+8);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"say",Arg1,Arg2,NULL);
} else if ( (strstr(szMsg," tells ")) && (strstr(szMsg,":")) && (strstr(szMsg,", '")) && (CHATEVENT(CHAT_CHAT)) ) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," tells ")-szMsg));
strcpy(Arg3,strstr(szMsg," tells ")+7);
Arg3[strlen(Arg3)-1]=0;
strcpy(Arg2,strstr(Arg3,", '")+3);
Arg3[strstr(Arg3,":")-Arg3]=0;
AddEvent(EVENT_CHAT,Arg3,Arg1,Arg2,NULL);
ml2517 wrote:On second thought,
It really isn't my responsibility to save you from yourself. :) I can see the value in adding this functionality. Just be careful or you might end up getting yourself and the people using your "link bot" banned.
I'll try to get it done tomorrow.
Code: Select all
} else if ((strstr(szMsg," tells the group, in Elvish, '")) && (CHATEVENT(CHAT_GROUP))) {
strncpy(Arg1,szMsg,(DWORD)(strstr(szMsg," tells the group, in Elvish, '")-szMsg));
strcpy(Arg2,strstr(szMsg," tells the group, in Elvish, '")+30);
Arg2[strlen(Arg2)-1]=0;
AddEvent(EVENT_CHAT,"group",Arg1,Arg2,NULL);

the first 7 digits is the item, the middle is for augments, and the last 13 characters seems to be random.I suppose if one of the portions of the link code is only used for augments