I'm wondering if this is also a stock issue?
- zusuk
-
Topic Author
- Offline
- Elite Member
-
- LuminariMUD Developer
Less
More
6 months 4 weeks ago #10214
by zusuk
Website
www.luminariMUD.com
Main Game Port
luminariMUD.com:4100
I'm wondering if this is also a stock issue? was created by zusuk
We have this old bug report, that I'm now just looking at:
github.com/LuminariMUD/Luminari-Source/issues/14
Is this a stock issue as well? If so, what would y'all recommend for handling?
Thanks in advance!
github.com/LuminariMUD/Luminari-Source/issues/14
Is this a stock issue as well? If so, what would y'all recommend for handling?
Thanks in advance!
Website
www.luminariMUD.com
Main Game Port
luminariMUD.com:4100
Please Log in or Create an account to join the conversation.
- zusuk
-
Topic Author
- Offline
- Elite Member
-
- LuminariMUD Developer
6 months 3 weeks ago #10220
by zusuk
Website
www.luminariMUD.com
Main Game Port
luminariMUD.com:4100
Replied by zusuk on topic I'm wondering if this is also a stock issue?
Here is how I fixed it with us in case anybody else runs into this issue:
char buf[MAX_STRING_LENGTH] = {'\0'};
struct list_data *room_list = NULL;
snprintf(buf, sizeof(buf), "$n commands, '%s'.", message);
act(buf, FALSE, ch, 0, 0, TO_ROOM);
room_list = create_list();
for (vict = world[IN_ROOM(ch)].people; vict; vict = next_vict)
{
next_vict = vict->next_in_room;
if (pet_order_check(ch, vict)) /* this is a function to check whether its a valid pet */
{
add_to_list(vict, room_list);
}
}
if (room_list->iSize == 0)
{
free_list(room_list);
send_to_char(ch, "Nobody here is a loyal subject of yours!\r\n");
return;
}
while ((vict = (struct char_data *)simple_list(room_list)) != NULL)
{
if (pet_order_check(ch, vict))
{
found = TRUE;
command_interpreter(vict, message);
}
}
if (found)
{
USE_FULL_ROUND_ACTION(ch);
send_to_char(ch, "%s", CONFIG_OK);
}
else
{
/* it shouldn't be possible to get here, but regardless... */
send_to_char(ch, "Nobody here is a loyal subject of yours!\r\n");
}
if (room_list)
free_list(room_list);
Website
www.luminariMUD.com
Main Game Port
luminariMUD.com:4100
Please Log in or Create an account to join the conversation.
Time to create page: 0.080 seconds