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.



  • Posts

    • That's exactly how it’s designed — everything important is handled on the API server side, for example, processing requests to the game server. Each website has its own token/key for authentication; without it, there will be no interaction with the game server. Some data can be stored both on my side and on the server side to avoid making frequent requests to the server, which is logical.   Yes, there’s a lot of old, unused code that just needs to be cleaned up. It was used before, but after major rewrites it was left lying around. It doesn’t interfere with anything — it’s just there and doesn’t affect the system's operation.   Beaver meme kurwa is my favorite. Unfortunately, you don't know Russian — otherwise, you would’ve spotted even more Easter eggs. 😂
    • Discord : utchiha_market Telegram : https://t.me/utchiha_market Auto Buy Store : https://utchihamkt.mysellauth.com/ Join our server for more products : https://discord.gg/qtkJASMbKV https://campsite.bio/utchihaamkt  
    • Discord : utchiha_market Telegram : https://t.me/utchiha_market Auto Buy Store : https://utchihamkt.mysellauth.com/ Join our server for more products : https://discord.gg/qtkJASMbKV https://campsite.bio/utchihaamkt  
    • i saw somewhere that: $var = (int) $_POST['some_id'] ?? string::error_class('text'); it was when i gave up and deleted the sources let him, he does not even understand what cross site or mitm means   still waiting for any client of yours so i can play with them     DUDE IM GONNA CALL YOU BoberKurwa FROM NOW ON!! rename your account aswell! BoberKurwa!   Note: what happend to your chatgpt answers boberkurwa did your subscription of $12.5/$20 ended?   it is PSR12 standard
    • if i was you i would check first argentinian developer team to learn and contribute then start my own project privatly and then practice in free coding for my self, then you would be ready to learn standards and code out of nothing, and if you fail means you are in good path, if you win you are in for higher level, whatever you do be persistent and focused, thats what i did when i had time.
  • Topics

×
×
  • Create New...