Troubles with a logout menu in smaugwiz 2.02

 
Post new topic   Reply to topic    mudlab.org Forum Index -> Coding
View previous topic :: View next topic  
Author Message
Lazerous



Joined: 18 Aug 2009
Posts: 1

PostPosted: Tue Aug 18, 2009 8:11 pm    Post subject: Troubles with a logout menu in smaugwiz 2.02 Reply with quote

I am tryin to create a logout menu for my server. What I have done so far, I doubt will work.
It is still giving me bugs in the compilor, but beyond that I am unsure I am going about this
in the correct way. So I am posting what I have here and hope someone can lend a hand.
Also another worry is the 2nd option, "returning to the game", I doubt I got that right.

File: act_comm.cpp Line: 1170 The do_quit function is where I plugged this code into.

// Log Out Menu - Ryan Rae

CDescriptor *d;
ch = d->m_pCharacter;



d->WriteToBuffer("*** Welcome to: The Realm of Draenor ***\n\r\
\n\n\rLog Out Menu:\n\n\r\
0) Leave the Game\n\r\
1) Return to the Game\n\n\r\
2) Read the background story\n\r\
3) Read latest realm changes.\n\r\
4) Read the latest code changes.\n\n\r\
5) See the World Map.\n\r\
6) See a list of all the area's in the realm.\n\n\r\
Please select your choice: ", 0);
d->m_Connected = CON_MENU2;
return;
break;

case CON_MENU2:
switch ( argument [0] )
{
case '0':
d->WriteToBuffer( "Come back again.\n\r", 0 );
d->m_pCharacter->SetDesc (NULL);
RemoveCharacter (*d);
return;
break;

case '1':
return;
break;

case '2':
do_help( ch, "story" );
return;
break;

case '3':
do_help( ch, "motd" );
return;
break;

case '4':
do_help( ch, "code" );
return;
break;

case '5':
do_help( ch, "world" );
return;
break;

case '6':
do_help( ch, "prep" );
return;
break;

default:
d->WriteToBuffer("\nLog Out Menu:\n\n\r\
0) Leave the Game\n\r\
1) Return to the Game\n\n\r\
2) Read the background story\n\r\
3) Read latest realm changes.\n\r\
4) Read the latest code changes.\n\n\r\
5) See the World Map.\n\r\
6) See a list of all the area's in the realm.\n\n\r\
Please select your choice: ", 0);
return;

// End of New Log out Menu


Any help would be appreciated. I have no coder in my realm other then myself,
I can't seem to find one that is commited and does do any work.
The few I have had stuck around for 1 or 2 mods then that was it,
so if there are any out there that are not quitters and looking to help
out in that end that would be great. How ever, my main concern right
now, is this menu. You can reply to this, send me a message here, or you
can log into my realm and contact me there.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    mudlab.org Forum Index -> Coding All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
BBTech Template by © 2003-04 MDesign