Jump to content

Question

Posted

Well I added this code of aio system in the review of the most recent l2jhellas, so far everything was ok. the system is working but when i restart the character the aio skills disappear and i have to give the command // add_aio <days> could someone give me a solution of what may be happening?

 

https://pastebin.com/8cQatb0t

7 answers to this question

Recommended Posts

  • 0
Posted

It looks like you have added everything correctly, but simply this functionality is missing for some reason.

I assume that message "Your AIO period ends at:" shows up correctly, so what you need to do is:

Replace:

 activeChar.sendPacket(new CreatureSay(0, Say2.ALLIANCE, "System", "Your AIO period ends at: " + dt));

with

{
	activeChar.sendPacket(new CreatureSay(0, Say2.ALLIANCE, "System", "Your AIO period ends at: " + dt));
	if (Config.ALLOW_AIO_NCOLOR)
		 activeChar.getAppearance().setNameColor(Config.AIO_NCOLOR);
	if (Config.ALLOW_AIO_TCOLOR)
		 activeChar.getAppearance().setTitleColor(Config.AIO_TCOLOR);
	 activeChar.rewardAioSkills();
}

 

It's not a nice way to do it, but it's a short change and it should work as you expect.

  • 0
Posted

Or there might be a check for illegal skills on restart or something. If you can't find something in enterworld check on sendskilllist packet

  • 0
Posted

zake is right, there is a check for illegal skills.

you can check premium system too ( //premium_menu). no need to make new getters for aio. and merge premium system with your aio skills. just saying my opnion.

  • 0
Posted
On 6/4/2020 at 8:31 AM, Zake said:

Or there might be a check for illegal skills on restart or something. If you can't find something in enterworld check on sendskilllist packet

Thank you, you are really right but I don't know how I can use the system as @AbsolutePower mentioned right above I don't handle much of java so the integration with the premium account I was able to understand only in the method of completion days, but the skills I can't understand what the method will help in the form of sendskills

  • 0
Posted
On 6/4/2020 at 4:10 PM, AbsolutePower said:

zake is right, there is a check for illegal skills.

you can check premium system too ( //premium_menu). no need to make new getters for aio. and merge premium system with your aio skills. just saying my opnion.

For the record, where is the illegal skills check in your pack? i made a quick check on sendskilllist and didn't see something

  • 0
Posted
2 hours ago, Zake said:

For the record, where is the illegal skills check in your pack? i made a quick check on sendskilllist and didn't see something

 

From what I studied of the pack I saw that the parts of enterworld was transferred to L2PcInstance if I'm not mistaken

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...