Jump to content
  • 0

Olympiad save


Question

Posted

Anyone know how to set that automaticly save status to database every character is registering to oly. For example: first time you going to oly have 0 pts, when registering you automaticly giving 18pts and saving you to database and you can look in ranklist.

2 answers to this question

Recommended Posts

  • 0
Posted

modify L2OlympiadManagerInstance, so on registering you can check if is player first time, in which case, you will call any method (hopefullly a threadpooled runnable) to save it

  • 0
Posted

I dont think to add at there, I think I need to add like: saveNobleData();

After:

sm = new SystemMessage(SystemMessageId.YOU_HAVE_BEEN_REGISTERED_IN_A_WAITING_LIST_OF_CLASSIFIED_GAMES);

noble.sendPacket(sm);

 

Maybe in Olympiad.java?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...