31 lines
449 B
Plaintext
31 lines
449 B
Plaintext
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);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|