Error in the console:
Error while compiling Quests: 'ItemCraftTask' does not contain a definition for 'owner' and no accessible extension method 'owner' accepting a first argument of type 'ItemCraftTask' could be found (are you missing a using directive or an assembly reference?) | Line: 410, Pos: 31
===============================================================================================
Replace with this new code.
Save and reload the plugin
Error while compiling Quests: 'ItemCraftTask' does not contain a definition for 'owner' and no accessible extension method 'owner' accepting a first argument of type 'ItemCraftTask' could be found (are you missing a using directive or an assembly reference?) | Line: 410, Pos: 31
===============================================================================================
Replace with this new code.
//Craft
void OnItemCraftFinished(ItemCraftTask task, Item item)
{
var player = item?.GetOwnerPlayer();
if (player != null)
{
if (hasQuests(player.userID) && isQuestItem(player.userID, item.info.shortname, QuestType.Craft))
{
ProcessProgress(player, QuestType.Craft, item.info.shortname, item.amount);
}
}
}Also replace line 988 with this code
int totalItems = 0;
totalItems += player.inventory.containerMain?.itemList?.Count ?? 0;
totalItems += player.inventory.containerBelt?.itemList?.Count ?? 0;
totalItems += player.inventory.containerWear?.itemList?.Count ?? 0;
if (totalItems >= 30) return false;Save and reload the plugin