Findgroup

From Serenity : The Wiki
Jump to: navigation, search

FindGroup is a set of softcode commands designed to help people find others that are looking for RP. You can set or unset a flag that advertises you as 'Looking for group'. You can then get a list of all the other people who are looking for a group. If you're experienced with MUSHcode, you can modify the output to better suite your personal preferences.

Code

Before using these commands, you'll have to paste each of these lines into your client.

@set me=!NO_COMMAND

&LFG me=0

@set me/LFG=visual

&LFG`LFG me=$lfg: &LFG me=1;think You are now set to "Looking for group."

&LFG`NOLFG me=$nolfg: &LFG me=0;think You are no longer "looking for group."

&LFG`FINDGROUP me=$findgroup: think [ansi(r,repeat(=,74))]%rThe following people are looking for someone to RP with:%r%r[ansi(wh,align(30 30 11,Name:,Location:,Idle:))][iter(lwho(),if(get(##/LFG),%r[align(30 30 11,left(name(##),30),left(if(room(##),name(room(##)),Unfindable),30),left(timestring(idle(##)),11))]), ,)]%r[ansi(r,repeat(=,74))]

Usage

FindGroup gives you three new commands:

lfg This command sets your 'Looking for group' flag. Use it when you want to find someone to RP with.

nolfg This command unsets your 'Looking for group' flag. Use it when you're no longer looking for RP.

findgroup This command lists the names, locations, and idle times of all players who are looking for someone to RP with.