2023-08-08 16:22:17 -04:00
|
|
|
//::///////////////////////////////////////////////
|
|
|
|
//:: FileName king_give_3
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
//:: Created By: Script Wizard
|
|
|
|
//:: Created On: 22/11/2003 16:07:04
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "nw_i0_tool"
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-10-12 22:59:45 -05:00
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
object oParty = GetFirstFactionMember(oPC, TRUE);
|
|
|
|
string sName = GetName(oPC);
|
|
|
|
string sName2 = GetName(oParty);
|
|
|
|
int DoOnce = GetCampaignInt("warlord_head",sName, GetPCSpeaker());
|
2023-10-13 21:50:23 -05:00
|
|
|
object oItemToTake;
|
|
|
|
oItemToTake = GetItemPossessedBy(oParty, "warlordshead"); // Place item Tag here
|
2023-10-12 22:59:45 -05:00
|
|
|
|
2023-10-13 21:50:23 -05:00
|
|
|
if (GetIsPC(oParty))
|
2023-10-12 22:59:45 -05:00
|
|
|
{
|
|
|
|
SetLocalInt(oParty, "warlord_head", 1);
|
|
|
|
DestroyObject(oItemToTake);
|
|
|
|
}
|
|
|
|
oParty = GetNextFactionMember(oPC, TRUE);
|
2023-10-13 21:50:23 -05:00
|
|
|
|
|
|
|
if (DoOnce==1) return;
|
|
|
|
|
|
|
|
// Give the speaker some XP
|
|
|
|
RewardPartyXP(5000, GetPCSpeaker(),TRUE);
|
|
|
|
// Give the speaker some gold
|
|
|
|
RewardPartyGP(5000, GetPCSpeaker());
|
|
|
|
SetCampaignInt("warlord_head",sName2,1,oParty);
|
|
|
|
oParty = GetNextFactionMember(oPC, TRUE);
|
2023-10-12 22:59:45 -05:00
|
|
|
}
|
2023-08-08 16:22:17 -04:00
|
|
|
|
|
|
|
|
|
|
|
|