UW2_PRC8/_module/nss/takeruinandhellb.nss

56 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2023-09-25 20:24:01 -04:00
//Put this script OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
object oItem;
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="stoneofruin44") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="stoneofruin55") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="hellstone44") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="rodofmythdran44") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="smiterod44") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
}