Kill Quests in groups

  • JTP
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
1 year 4 months ago - 1 year 4 months ago #6502 by JTP
JTP created the topic: Kill Quests in groups
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: 1 year 4 months ago by JTP.

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

More
1 year 4 months ago - 1 year 4 months ago #6503 by WhiskyTest
WhiskyTest replied the 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!..
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: 1 year 4 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
  • JTP's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
1 year 4 months ago #6506 by JTP
JTP replied the topic: Kill Quests in groups
Seems to Work well. Thanks Whiskeytest.

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

More
4 months 1 week ago #7362 by Rumble
Rumble replied the topic: Kill Quests in groups
Added for next release, thanks WhiskyTest

Rumble
The Builder Academy
tbamud.com 9091

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

More
4 months 1 week ago #7364 by Sascha
Sascha replied the 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.

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...

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

Time to create page: 1.291 seconds