Welcome to the Builder Academy

Question clanedit in who

More
16 May 2016 17:36 - 16 May 2016 17:39 #5890 by JTP
clanedit in who was created by JTP
Hey
Added Clans, but when i go in clanedit, then im not on the who list.

I then tried adding:

if (d->connected == CON_CLANEDIT)
send_to_char(ch, " (Clan Edit)");

to act.informative.c where the other CON_ was.

But im still not on the who list when im in clanedit.

What more do i need to do ?
Last edit: 16 May 2016 17:39 by JTP.

Please Log in or Create an account to join the conversation.

More
16 May 2016 18:32 #5891 by thomas
Replied by thomas on topic clanedit in who
how does this, and the following ten lines look in your code?

github.com/tbamud/tbamud/blob/master/src/structs.h#L337 :
Code:
#define CON_MSGEDIT 31 /**< OLC mode - message editor */ #define CON_GET_PROTOCOL 32 /**< Used at log-in while attempting to get protocols > */ /* OLC States range - used by IS_IN_OLC and IS_PLAYING */ #define FIRST_OLC_STATE CON_OEDIT /**< The first CON_ state that is an OLC */ #define LAST_OLC_STATE CON_MSGEDIT /**< The last CON_ state that is an OLC */

Please Log in or Create an account to join the conversation.

More
16 May 2016 18:35 - 16 May 2016 18:36 #5892 by JTP
Replied by JTP on topic clanedit in who
Code:
#define CON_GET_PROTOCOL 32 /**< Used at log-in while attempting to get protocols > */ #define CON_QRACE 33 /**< Choose character race */ #define CON_CLANEDIT 34 /* OLC States range - used by IS_IN_OLC and IS_PLAYING */ #define FIRST_OLC_STATE CON_OEDIT /**< The first CON_ state that is an OLC */ #define LAST_OLC_STATE CON_MSGEDIT /**< The last CON_ state that is an OLC */
Last edit: 16 May 2016 18:36 by JTP.

Please Log in or Create an account to join the conversation.

More
16 May 2016 18:37 - 16 May 2016 18:39 #5893 by JTP
Replied by JTP on topic clanedit in who
Aha, didnt notice the LAST_OLC_STATE until now :)
Last edit: 16 May 2016 18:39 by JTP.

Please Log in or Create an account to join the conversation.

More
16 May 2016 18:40 #5894 by thomas
Replied by thomas on topic clanedit in who
Just reorder the states, so the olc-range is unbroken. And adjust the numbers. :)

Please Log in or Create an account to join the conversation.

More
16 May 2016 23:20 #5899 by JTP
Replied by JTP on topic clanedit in who
When you say reorder
Code:
#define CON_GET_PROTOCOL 32 /**< Used at log-in while attempting to get protocols > */ #define CON_QRACE 33 /**< Choose character race */ #define CON_CLANEDIT 34 /* OLC States range - used by IS_IN_OLC and IS_PLAYING */ #define FIRST_OLC_STATE CON_OEDIT /**< The first CON_ state that is an OLC */ #define LAST_OLC_STATE CON_MSGEDIT /**< The last CON_ state that is an OLC */

Would you then put clanedit as 32, protocol as 33 and qrace at 34 ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.206 seconds