begin ab01guNPCRidingFeetScript; local script for the cloth/armor objectshort OnPCAddif ( OnPCAdd == 1 ) player->StopSound "Item Clothes Up" ; change this with sound emitted by your gear when it is added to player inventory set OnPCAdd to -1 messagebox "You cannot take this." if ( scriptrunning ab01gutRemoveNPCRFScript ) return endif player->startscript ab01gutRemoveNPCRFScript ; starts script on playerendifend
begin ab01gutRemoveNPCRFScript; global script targeted on player to remove objectif ( MenuMode ) return ; wait for menu close before removingendifwhile ( GetItemCount ab01guNPCRidingFeet > 0 ) RemoveItem ab01guNPCRidingFeet 1 ; remove item(s) from playerendwhilestopscript ab01gutRemoveNPCRFScriptend