EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   telnet console 'who' command implementation for 5.3DR1 (https://www.eqemulator.org/forums/showthread.php?t=10894)

Tertiary 12-20-2003 04:25 AM

telnet console 'who' command implementation for 5.3DR1
 
After seeing mention that the telnet console 'who' command is currently broken:

http://www.everquestserver.com/forum...bb288bf220f9c1

I took a look at it and basically copied the ZSList::SendWhoAll function from 4.4 as a new function ZSList::ConsoleSendWhoAll and altered console.cpp to call this function.

I tested it briefly with the 5.3DR1 source using minilogin and it seems to work as advertised.

I don't know how to do 'diffs', but the change is very straightforward.

Details are here if anyone is interested:

http://www.rama.demon.co.uk/5.3consolewho.txt

Scorpious2k 12-20-2003 06:15 AM

Nice work Tertiary!

Trumpcard 12-21-2003 12:41 AM

merged in.

Thanks T !

Scorpious2k 12-21-2003 02:43 PM

We just brought up 5.3 with your fix in it and a slight modification:

suggested change

Code:

                        if (cle->GetGM()) {
                                if (cle->Admin() == 101 && cle->GetGM())
                                        strcpy(tmpgm, "* GM-Events *");
                                else if (cle->Admin() == -2)
                                        strcpy(tmpgm, "* BANNED *");
                                else if (cle->Admin() == -1)
                                        strcpy(tmpgm, "* SUSPENDED *");
                                else if (cle->Admin() == 80 && cle->GetGM())
                                        strcpy(tmpgm, "* Quest Troupe *");
                                else if (cle->Admin() >= 200 && cle->GetGM())
                                        strcpy(tmpgm, "* ServerOP *");
                                else if (cle->Admin() >= 150 && cle->GetGM())
                                        strcpy(tmpgm, "* Lead-GM *");
                                else if (cle->Admin() >= 100 && cle->GetGM())
                                        strcpy(tmpgm, "* GM *");
                                else
                                        tmpgm[0] = 0;
                        }
                        else
                                tmpgm[0] = 0;

to

Code:

                                if (cle->Admin() >=250)
                                        strcpy(tmpgm, "* GM-Impossible *");
                                else if (cle->Admin() >= 200)
                                        strcpy(tmpgm, "* GM-Mgmt *");
                                else if (cle->Admin() >= 180)
                                        strcpy(tmpgm, "* GM-Coder *");
                                else if (cle->Admin() >= 170)
                                        strcpy(tmpgm, "* GM-Areas *");
                                else if (cle->Admin() >= 160)
                                        strcpy(tmpgm, "* QuestMaster *");
                                else if (cle->Admin() >= 150)
                                        strcpy(tmpgm, "* GM-Lead Admin *");
                                else if (cle->Admin() >= 100)
                                        strcpy(tmpgm, "* GM-Admin *");
                                else if (cle->Admin() >= 95)
                                        strcpy(tmpgm, "* GM-Staff *");
                                else if (cle->Admin() >= 90)
                                        strcpy(tmpgm, "* EQ Support *");
                                else if (cle->Admin() >= 85)
                                        strcpy(tmpgm, "* GM-Tester *");
                                else if (cle->Admin() >= 81)
                                        strcpy(tmpgm, "* Senior Guide *");
                                else if (cle->Admin() >= 80)
                                        strcpy(tmpgm, "* QuestTroupe *");
                                else if (cle->Admin() >= 50)
                                        strcpy(tmpgm, "* Guide *");
                                else if (cle->Admin() >= 20)
                                        strcpy(tmpgm, "* Apprentice Guide *");
                                else if (cle->Admin() >= 10)
                                        strcpy(tmpgm, "* Steward *");
                                else
                                        tmpgm[0] = 0;

This supports the new status values.

Trumpcard 12-21-2003 04:08 PM

Because I worship you so Scorp, merged that in for you too...

Scorpious2k 12-21-2003 11:50 PM

Quote:

Originally Posted by Trumpcard
Because I worship you so Scorp, merged that in for you too...

Thanks.

*checking meter* hmmmmmm... was that an 8.7 on the sarcasm scale? :-)


All times are GMT -4. The time now is 02:49 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.