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
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
I got everything set up, just don't know how to trigger an event. Could anyone explain me how to do that or point me in the right direction?
I basically got as far as adding a dropdown where I can select a common event, and whenever i craft an item, I can get the event id displayed in the server log, but don't know how to trigger the event for the player.
see video for what i mean: