Author Topic: Quick help with quest reward  (Read 354 times)

Legacy_Imperator

  • Full Member
  • ***
  • Posts: 128
  • Karma: +0/-0
Quick help with quest reward
« on: October 12, 2015, 10:44:00 pm »


               

Just need help with this easy script ._. is there a way to make it so when a boss dies he awards each party member with an item? Instead of just the killer.



               
               

               
            

Legacy_MidsummerKnight

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Quick help with quest reward
« Reply #1 on: October 12, 2015, 11:58:23 pm »


               
object oPC = GetLastKiller();  

object oPartyMember = GetFirstFactionMember(oPC, TRUE);

while(oPartyMember != OBJECT_INVALID)

{

      // Put your code to give the item here

    oPartyMember = GetNextFactionMember(oPC, TRUE);

}


               
               

               
            

Legacy_Imperator

  • Full Member
  • ***
  • Posts: 128
  • Karma: +0/-0
Quick help with quest reward
« Reply #2 on: October 13, 2015, 12:02:34 am »


               

Thanks a bunch! :^)