L2JMobius

C6 Save and delete Recipe

ReynalDev · 4 · 5217

Offline ReynalDev

  • Knight
  • ***
    • Posts: 92
  • https://reynaldev.pythonanywhere.com/
    • ReynalDev
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


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16005
Not an actual share, when you do not share a patch for l2jmobius.


Offline ReynalDev

  • Knight
  • ***
    • Posts: 92
  • https://reynaldev.pythonanywhere.com/
    • ReynalDev
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


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16005
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.