Initial Commit

Initial Commit [v1.32PRC8]
This commit is contained in:
Jaysyn904
2025-04-03 13:38:45 -04:00
parent 1213977d8c
commit b464d8da05
6922 changed files with 6176025 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
#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);
}
}