Code: Select all
ItemTypes iType = findItemType( iUsed );
if( !ItemIsUsable( tSock, ourChar, iUsed, iType ) )
return true;But move the above snippet below the JS-checking code, and we seemingly have no way of enforcing object-usage-delays (also handled in ItemIsUsable()) on items that have onUse-scripts attached, as there's no way of checking/setting object delay stuff through the JS engine - or is there?