Aantioch_Infernum/_module/nss/king_give_1.nss

28 lines
808 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
//::///////////////////////////////////////////////
//:: FileName king_give_1
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 22/11/2003 15:59:15
//:://////////////////////////////////////////////
#include "nw_i0_plot"
2023-08-08 16:22:17 -04:00
void main()
{
2023-10-12 22:59:45 -05:00
object oPC = GetPCSpeaker();
object oParty = GetFirstFactionMember(oPC, TRUE);
int iItem = GetNumItems(oPC, "sarumroyalseal");
if (iItem == 1)
SetLocalInt(oParty, "sarumseal", 1);
oParty = GetNextFactionMember(oPC, TRUE);
return;
2023-10-12 22:59:45 -05:00
if (GetIsPC(oParty))
{
2023-08-08 16:22:17 -04:00
// Give the speaker the items
2023-10-12 22:59:45 -05:00
CreateItemOnObject("sarumroyalseal", oParty, 1);
SetLocalInt(oParty, "sarumseal", 1);
}
oParty = GetNextFactionMember(oPC, TRUE);
2023-08-08 16:22:17 -04:00
}