Hello there,
(08:39:07) | [CSharp] Started Oxide.Compiler v successfully (08:39:11) | 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
How can i resolve this issue so the Quests can work?
Cheers
Invalid code - not working
void OnItemCraftFinished(ItemCraftTask task, Item item, ItemCrafter crafter)
{
var player = crafter.owner;
if (player != null)
if (hasQuests(player.userID) && isQuestItem(player.userID, item.info.shortname, QuestType.Craft))
ProcessProgress(player, QuestType.Craft, item.info.shortname, item.amount);
}
it should look like this from lines 408 to 414. if not, make it look like this and you have yourself a working plugin again
^)////////////////////////////////////////////////////////////////////