Amon_PRC8/_module/nss/turn_on_hearts.nss

29 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
object oPartyMember = GetFirstFactionMember(GetPCSpeaker(), TRUE);
while (GetIsObjectValid(oPartyMember) == TRUE)
{
GiveXPToCreature(oPartyMember, 2500);
object oItemToTake1;
oItemToTake1 = GetItemPossessedBy(oPartyMember, "TrinDocuments");
DestroyObject(oItemToTake1);
oPartyMember = GetNextFactionMember(GetPCSpeaker(), TRUE);
}
CreateItemOnObject("HeartsQuest", GetPCSpeaker(), 1);
SetLocalInt(GetModule(), "BlackSpawned", TRUE);
SetLocalInt(GetModule(), "WhiteSpawned", TRUE);
SetLocalInt(GetModule(), "RedSpawned", TRUE);
SetLocalInt(GetModule(), "GreenSpawned", TRUE);
SetLocalInt(GetModule(), "BlueSpawned", TRUE);
SetLocalInt(GetModule(), "PrismSpawned", TRUE);
SetLocalInt(GetModule(), "HeartsQuestOn", 1);
object oKryx = GetObjectByTag("HeartsKryx");
string sName = GetName(GetPCSpeaker());
DelayCommand(10.0, AssignCommand(oKryx, ActionSpeakString ("Solomak sends you to your death "+ sName +".. he will use you up till you are dead.", TALKVOLUME_SHOUT)));
}