Changeing GuildMotd via Chat Channel

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

mponthepc
a lesser mummy
a lesser mummy
Posts: 37
Joined: Sun Mar 06, 2005 1:01 pm

Changeing GuildMotd via Chat Channel

Post by mponthepc » Tue Mar 08, 2005 4:45 pm

I'm trying to leave a bot up with an officer tag. that is logged into a chat channel. The bots macro will watch the channel and take anything said in it and put it up in the MOTD. I have it working atm with tells but that as you can imagine is just not desireable. I'm still a little new to this can someone help me tweak my code to get this running?

Code: Select all

#chat tell 
sub main 
:talkloop 
/doevents 
/goto :talkloop 
/return 
Sub Event_Chat(ChatType,Sender,ChatText) 
/guildmotd ${Sender}: ${ChatText} 
/return

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Mar 08, 2005 5:32 pm

Just use a custom event. Something like this..

Code: Select all

#event Motd "#1# tells channelname, '#2#'
Sub Event_Motd(Line,Sender,Text)
    /guildmotd ${Sender}: ${Text}
/return

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Re: Changeing GuildMotd via Chat Channel

Post by Goofmester1 » Wed Mar 09, 2005 1:22 am

Code: Select all

#chat chat
sub main 
/declare ChatChannel string outer None
/varset ChatChannel ${Param0}
:talkloop 
/doevents 
/goto :talkloop 
/return 
Sub Event_Chat(ChatType,Sender,ChatText) 
/if (${ChatType.Equal[${ChatChannel}]}) /guildmotd ${Sender}: ${ChatText} 
/return
Start this with /macro nameormacro channelname and it should work as you want. (This does not auto join you to the channel.)

mponthepc
a lesser mummy
a lesser mummy
Posts: 37
Joined: Sun Mar 06, 2005 1:01 pm

Thanks

Post by mponthepc » Mon Mar 14, 2005 7:49 am

Thanks for the help. This will be part of a bigger project to help alleviate the administrative cluster of SoE refusal to granularize the guild leaders ability to distribute rights to members. For this part raid leaders will be able to change the motd without being officers.

Update: I finished adding the features I wanted and posted it in the Macro Depot. Thanks again!

http://www.macroquest2.com/phpBB2/viewtopic.php?t=10913

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Changeing GuildMotd via Chat Channel

Post by xyilla » Tue Apr 29, 2025 2:34 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Changeing GuildMotd via Chat Channel

Post by xyilla » Tue Apr 29, 2025 2:35 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Changeing GuildMotd via Chat Channel

Post by xyilla » Tue Apr 29, 2025 2:36 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Changeing GuildMotd via Chat Channel

Post by xyilla » Tue Apr 29, 2025 2:37 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Changeing GuildMotd via Chat Channel

Post by xyilla » Tue Apr 29, 2025 2:38 pm


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Changeing GuildMotd via Chat Channel

Post by xyilla » Tue Apr 29, 2025 2:39 pm