After Oktober Update Mod not working
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
Thnks for Help
@ DRT M4nStop
Error while compiling Quests: AFTER Oktober Update !!! Help ! Please !
Oh i see it to late !
change :
in Line 984
if (player.inventory.AllItems().Count() >= 30)
to
if (player.inventory.containerMain.itemList.Count >= 30)
Thanks @ LAWNMOOR
Merged post
No Not Funktion
| 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
Merged post
I have fix it with :
Line 408
Find :
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);
}and replace it with thisvoid 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);
}Work for me !
I hope I was able to help
[DRT] M4nStop
Merged post
Sorry Search this
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);
}
And replace ;)
This fix isn't working for me. :(
Teslin
This fix isn't working for me. :(
I made the two updates listed above and changed
if (player.inventory.AllItems().Count() >= 30)
to
if (player.inventory.containerMain.itemList.Count >= 30)