UW2_PRC8/_module/nss/clothestrigger.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

26 lines
580 B
Plaintext

//Created by Guile 2/20/07
//Put this script OnEnter
//This is to give new players clothes
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
if(GetItemPossessedBy(oPC, "nwbsilks44")==OBJECT_INVALID)
CreateItemOnObject("newbsilks44", oPC);
//Enter the ResRef (Not the Tag!)of the Item You Wish to give the PC here.
if(GetItemPossessedBy(oPC, "theundeworldbk")==OBJECT_INVALID)
CreateItemOnObject("theunderworldbk", oPC);
}