Welcome to the Builder Academy

Question Kill Quests in groups

More
10 Jan 2017 20:22 - 10 Jan 2017 20:23 #6502 by JTP
Kill Quests in groups was created by JTP
Hi

Anyone have a fix so that characters in a group, both doing the same kill quest, also both gets "the kill"..

Atm only the character who does the killing blow gets the kill for the quest.
Last edit: 10 Jan 2017 20:23 by JTP.

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

More
10 Jan 2017 23:27 - 10 Jan 2017 23:28 #6503 by WhiskyTest
Replied by WhiskyTest on topic Kill Quests in groups
Yeah good addition!

Changes made in : void raw_kill() in fight.c

change the if (killer) part that calls autoquest_trigger_check to this:
(add the struct char_data *i; to the top to keep with the standard)

Personal preference but I've added a line to check if the mob and character are in the same room, or the same zone for the quest to complete successfully. Otherwise you'd have people off shopping for bread at the local bakery and their group-mates completing quests for them!..
Code:
struct char_data *i; if (killer) { if (killer->group) { while ((i = (struct char_data *) simple_list(killer->group->members)) != NULL) if(IN_ROOM(i) == IN_ROOM(ch) || (world[IN_ROOM(i)].zone == world[IN_ROOM(ch)].zone)) autoquest_trigger_check(i, ch, NULL, AQ_MOB_KILL); } else autoquest_trigger_check(killer, ch, NULL, AQ_MOB_KILL); }
Last edit: 10 Jan 2017 23:28 by WhiskyTest. Reason: add code tags
The following user(s) said Thank You: brmud

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

More
11 Jan 2017 20:53 #6506 by JTP
Replied by JTP on topic Kill Quests in groups
Seems to Work well. Thanks Whiskeytest.

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

More
14 Jan 2018 23:08 #7362 by Rumble
Replied by Rumble on topic Kill Quests in groups
Added for next release, thanks WhiskyTest

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

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

More
14 Jan 2018 23:18 #7364 by Sascha
Replied by Sascha on topic Kill Quests in groups
Outstanding! What a great suggestion, and thanks Whiskey for going after it! I'll imp this in about a week over at ATB.

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

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

Time to create page: 0.189 seconds