Maybe this has been done, but in another area
of the boards it was requested. It loops through all the character items and
destroys anything marked as a plot item. Useful for keeping those pesky
super characters from having super plot items.
Just attach it to the "onEnter" of an area, or to the On Client Enter.
NWScript:
void main()
{
object oPC = GetEnteringObject();
object currentItemInInv;
object firstItemInInv;
firstItemInInv = GetNextItemInInventory(oPC);
currentItemInInv = firstItemInInv;
if(currentItemInInv != OBJECT_INVALID)
{
do{
if(GetPlotFlag(currentItemInInv) == TRUE)
{
SendMessageToPC(oPC,"Plot Object:");
SendMessageToPC(oPC,GetName(currentItemInInv));
SendMessageToPC(oPC,"has been removed because plot items have been known to " +
"be super/cheat weapons.");
DestroyObject(currentItemInInv);
}
currentItemInInv = GetNextItemInInventory(oPC);
}while(currentItemInInv != OBJECT_INVALID &&
currentItemInInv != firstItemInInv);
}
}
_________________
Forgotten Soul
“You stand on the shoulders of giants and claim you are tall.”
[ Edited By ForgottenSoul: Monday, 08 July 05:42PM (GMT) ]
|