Initial upload
Initial upload
This commit is contained in:
30
_module/nss/pcscrycheckscrpt.nss
Normal file
30
_module/nss/pcscrycheckscrpt.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
object oItem;
|
||||
|
||||
//Put this script OnEnter
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetItemPossessedBy(oPC, "emotewand")== OBJECT_INVALID)
|
||||
{
|
||||
CreateItemOnObject("emotewand", oPC);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
oItem = GetFirstItemInInventory(oPC);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetTag(oItem)=="emotewand44") DestroyObject(oItem);
|
||||
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user