2023-08-08 16:22:17 -04:00
|
|
|
//::///////////////////////////////////////////////
|
|
|
|
//:: FileName king_give_1
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
//:: Created By: Script Wizard
|
|
|
|
//:: Created On: 22/11/2003 15:59:15
|
|
|
|
//:://////////////////////////////////////////////
|
2023-10-13 21:50:23 -05:00
|
|
|
#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);
|
2023-10-13 21:50:23 -05:00
|
|
|
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
|
|
|
}
|