#include "rd_treasure" void GivePartyReward(object oPC); string GetRace(object oPC); void main() { location lMove; GivePartyReward(GetPCSpeaker()); ExecuteScript("qst_done",OBJECT_SELF); lMove = GetLocation(GetObjectByTag("en3_move")); DelayCommand(3.0f,AssignCommand(OBJECT_SELF,JumpToLocation(lMove))); } void GivePartyReward(object oPC) { int iRandom; int iXPBonus; iRandom = (Random(4)+2) * 5; object oPartyMember = GetFirstFactionMember(oPC, TRUE); while (GetIsObjectValid(oPartyMember) == TRUE) { iXPBonus = GetLocalInt(oPartyMember,"PCXPBonus"); SetLocalInt(oPartyMember,"PCXPBonus",iXPBonus + iRandom); SendMessageToPC(oPartyMember,"You have gained a herbal ability that allows you to learn faster."); oPartyMember = GetNextFactionMember(oPC, TRUE); } }