Lankhmar_PRC8/_module/nss/give_bloodredgm2.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

33 lines
974 B
Plaintext

#include "x0_i0_partywide"
void main()
{
object oActor;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
CreateItemOnObject("bloodredgem", oPC);
// Update all players' journals.
AddJournalQuestEntry("Red God's Curse", 2, oPC, FALSE, TRUE);
// Have "Klev" perform a sequence of actions.
oActor = GetObjectByTag("Klev");
AssignCommand(oActor, ActionMoveToObject(GetNearestObjectByTag("WP_Oomosh")));
// Have "Oomosh" perform a sequence of actions.
oActor = GetObjectByTag("Oomosh");
AssignCommand(oActor, ActionMoveToObject(GetNearestObjectByTag("WP_Oomosh")));
// Destroy objects (not fully effective until this script ends).
DelayCommand(3.0, DestroyObject(GetObjectByTag("Klev")));
DelayCommand(3.0, DestroyObject(GetObjectByTag("Oomosh")));
DelayCommand(4.0, DestroyObject(GetObjectByTag("oolgkv")));
}