- Posts: 937
- Thank you received: 17
Kill Quests in groups
- JTP
- Topic Author
- Offline
- Platinum Member
-
Less
More
6 years 8 months ago - 6 years 8 months ago #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.
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: 6 years 8 months ago by JTP.
Please Log in or Create an account to join the conversation.
- WhiskyTest
-
- Offline
- Platinum Member
-
Less
More
- Posts: 345
- Thank you received: 73
6 years 8 months ago - 6 years 8 months ago #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!..
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!..
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: 6 years 8 months ago 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.
- JTP
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 937
- Thank you received: 17
6 years 8 months ago #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.
- Rumble
-
- Offline
- Administrator
-
5 years 8 months ago #7362
by Rumble
Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.
Replied by Rumble on topic Kill Quests in groups
Added for next release, thanks WhiskyTest
Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.
Please Log in or Create an account to join the conversation.
- Sascha
-
- Offline
- Elite Member
-
5 years 8 months ago #7364
by Sascha
Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000
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.111 seconds