Battledale_PRC8/_module/nss/jw_zen_give.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

29 lines
682 B
Plaintext

//::///////////////////////////////////////////////
//:: FileName jw_zen_give
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 22/12/2002 23:58:45
//:://////////////////////////////////////////////
void main()
{
object oPC=GetPCSpeaker();
int nHas=0;
object oMember=GetFirstFactionMember(oPC);
while (GetIsObjectValid(oMember))
{
if (GetIsObjectValid(GetItemPossessedBy(oMember,"jw_zen_magscroll")))
{
nHas=1;
}
oMember=GetNextFactionMember(oPC);
}
if (nHas==0)
// Give the speaker the items
{
CreateItemOnObject("jw_zen_magscroll", oPC, 1);
}
}