L2JMobius

Free Users => Shares/Contributions => Committed User Contributions => Topic started by: ReynalDev on January 01, 2020, 05:39:44 AM

Title: Save and delete Recipe
Post by: ReynalDev on January 01, 2020, 05:39:44 AM
Actually when a player log out, you execute 2 SQLs:
1. Delete all recipe data about certain player
2. Insert all the data.

I suggest change this and put the insert SQL instruction when a player register the new recipe, and, when a player delete a recipe execute delete SQL instruction. Normally a player wont delete recipes very often.

This is an example: https://sourceforge.net/p/l2jfrozen/code/1781
Title: Re: Save and delete Recipe
Post by: Mobius on January 01, 2020, 01:11:45 PM
Not an actual share, when you do not share a patch for l2jmobius.
Title: Re: Save and delete Recipe
Post by: ReynalDev on January 01, 2020, 01:14:31 PM
Not an actual share, when you do not share a patch for l2jmobius.

My bad then, anyways i dont have the last commit, but you got my point. So this topic could belong to The Tavern
Title: Re: Save and delete Recipe
Post by: Mobius on January 02, 2020, 05:17:00 AM
This topic should belong to archived contributions section, but I liked your idea and committed it.
Never the less, I would appreciate if you made a share to adapt it accordingly.