Hi since the last Rust update from 03.08.23 the quest mod does not run and gives the message : ( Error while compiling: Quests.cs(412,31): error CS1061: Type `ItemCraftTask' does not contain a definition for `owner' and no extension method `owner' of type `ItemCraftTask' could be found. Are you missing an assembly reference? )
how can you fix this or does the quest mod need an adjustment ?
Thanks for quick reply because this mod is very popular with us ;)
Greetings DRT M4nStop
Last Rust Update Quests not working
I Find it sry
Thanks for that ;)
Search for OnItemCraftFinished and replace it like this:
void OnItemCraftFinished(ItemCraftTask task, Item item, ItemCrafter itemCrafter)
{
var player = itemCrafter.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);
}seems to work here
Thank you!
M4nStop
I Find it sry
Thanks for that ;)Search for OnItemCraftFinished and replace it like this:
void OnItemCraftFinished(ItemCraftTask task, Item item, ItemCrafter itemCrafter) { var player = itemCrafter.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); }
hey I got a new problem with the quest I think some people have the same problem here is the arrow so how do I fix it,
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
void OnItemCraftFinished(ItemCraftTask task, Item item)
{
var player = task.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);
}