I'm trying to add requirements to crafts, which went successful.
I can check if crafts met the requirements in Intersect.Server\Entities\Player.cs with Conditions.MeetsConditionLists()
While the check happens, and the craft won't happen, I still get the crafting bar to start (as seen in the video below)
video:
Spoiler
As far as I understand, the crafting timer starts in Intersect.Client\Intersect.Client\Interface\Game\Crafting\CraftingWindow.cs in
void craft_Clicked(Base sender, ClickedEventArgs arguments)
{
//This shouldn't be client side :(
...
I can't get an idea on how to do do a condition check here, or another way to not trigger the craft timer, so any help or pointing me in a good direction would be appreciated
Question
wishy
I'm trying to add requirements to crafts, which went successful.
I can check if crafts met the requirements in Intersect.Server\Entities\Player.cs with Conditions.MeetsConditionLists()
While the check happens, and the craft won't happen, I still get the crafting bar to start (as seen in the video below)
video:
As far as I understand, the crafting timer starts in Intersect.Client\Intersect.Client\Interface\Game\Crafting\CraftingWindow.cs in
I can't get an idea on how to do do a condition check here, or another way to not trigger the craft timer, so any help or pointing me in a good direction would be appreciated
Link to comment
Share on other sites
5 answers to this question
Recommended Posts