Quest and script fixes for quest

This commit is contained in:
EpicValor
2023-10-12 22:59:45 -05:00
parent 043b9846f9
commit c3e1040894
43 changed files with 8051 additions and 1465 deletions

View File

@@ -9,19 +9,29 @@
void main()
{
int DoOnce = GetCampaignInt("warlord_head",GetTag(OBJECT_SELF),GetPCSpeaker());
object oPC = GetPCSpeaker();
object oParty = GetFirstFactionMember(oPC, TRUE);
string sName = GetName(oPC);
string sName2 = GetName(oParty);
int DoOnce = GetCampaignInt("warlord_head",sName, GetPCSpeaker());
if (DoOnce==1) return;
// Give the speaker some gold
GiveGoldToCreature(GetPCSpeaker(), 5000);
// Give the speaker some XP
RewardPartyXP(5000, GetPCSpeaker(),FALSE);
RewardPartyXP(5000, GetPCSpeaker(),TRUE);
// Give the speaker some gold
RewardPartyGP(5000, GetPCSpeaker());
object oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "warlordshead"); // Place item Tag here
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
SetCampaignInt("warlord_head",GetTag(OBJECT_SELF),1,GetPCSpeaker());
object oItemToTake;
oItemToTake = GetItemPossessedBy(oParty, "warlordshead"); // Place item Tag here
if (GetIsPC(oParty))
{
SetCampaignInt("warlord_head",sName2,1,oParty);
SetLocalInt(oParty, "warlord_head", 1);
DestroyObject(oItemToTake);
}
oParty = GetNextFactionMember(oPC, TRUE);
}