Jump to content

Question

Posted

Hello Guys,

 

so as i have been looking around the forum for l2jacis customs etc. i found this AIO made by Sweets i would like to ask if anybody could tell me how to import this on the server or if she/he has a video showing how to import an aio system on gameserver (java code) :P i know it is only c/p but i am not sure where exactly to c/p and i do not want to destroy the whole configuration :P

14 answers to this question

Recommended Posts

  • 0
Posted

Follow the index, its telling you the location, which file to edit. Revision 0 is a new file. Right click on project, team, apply patch. The one with red x (error), exclude from list and edit manually.

 

Its kinda old version, I updated it on aCis forum, I will update it here as well, soon.

  • 0
Posted (edited)

Follow the index, its telling you the location, which file to edit. Revision 0 is a new file. Right click on project, team, apply patch. The one with red x (error), exclude from list and edit manually.

 

Its kinda old version, I updated it on aCis forum, I will update it here as well, soon.

 

Hmm doing that just now i just got  lost can you tell me how exactly i find this :

player._classIndex = subClass.getClassIndex();
  }
  }
- if (player.getClassIndex() == 0 && activeClassId != player.getBaseClass())
- {
- // Subclass in use but doesn't exist in DB -
- // a possible restart-while-modifysubclass cheat has been attempted.
- // Switching to use base class
- player.setClassId(player.getBaseClass());
- _log.warning("Player " + player.getName() + " reverted to base class. Possibly has tried a relogin exploit while subclassing.");
- }
- else
- player._activeClass = activeClassId;
 
  player.setApprentice(rset.getInt("apprentice"));
  player.setSponsor(rset.getInt("sponsor"));
 
i have been looking all around l2PcInstance but i am unable to find the following class i tried searching with outline but i cannot find this command :P
 
Nevermid i found my way i just needed to do a little more research  now the real work begins :P C/P power :P
 
Stupid question whenever you have a - before a line does it mean i have to delete that line or just ignore it? :P
Edited by HyperActive
  • 0
Posted

Do not use old version, it's crappy. Check the topic again and apply latest version.

 

When you see - with empty line, there is always + with empty line at the end, it's simply a empty line (enter) :lol:

  • 0
Posted (edited)

Do not use old version, it's crappy. Check the topic again and apply latest version.

 

When you see - with empty line, there is always + with empty line at the end, it's simply a empty line (enter) :lol:

So

- statement.setInt(50, getObjectId());
+ statement.setInt(50, isAio() ? 1 : 0);
+ statement.setLong(51, getAioEndTime());
+ statement.setInt(52, getObjectId());
 
the line with the - i need to delete or just ignore? :P and will do that thx :P
Edited by HyperActive
  • 0
Posted

 

So

- statement.setInt(50, getObjectId());
+ statement.setInt(50, isAio() ? 1 : 0);
+ statement.setLong(51, getAioEndTime());
+ statement.setInt(52, getObjectId());
 
the line with the - i need to delete or just ignore? :P and will do that thx :P

 

getObjectId() must be always the last one no matter what.

  • 0
Posted (edited)

All lines with -+ must be deleted/added. You can ignore "empty" lines. Like the first and last one from this example

-
+ if (player.isAio())
+ {
+ player.sendPacket(SystemMessageId.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT);
+ return false;
+ }
+ 

--

 

Again, use latest version of the system..

Edited by SweeTs
  • 0
Posted

All lines with -+ must be deleted/added. You can ignore "empty" lines. Like the first and last one from this example

-
+ if (player.isAio())
+ {
+ player.sendPacket(SystemMessageId.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT);
+ return false;
+ }
+ 

--

 

Again, use latest version of the system..

Yeap i am using last client right now i got a little question 

so here : --- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 650)

+++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy)
@@ -17,6 +17,7 @@
 import java.sql.Connection;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
+import java.util.Calendar;
 import java.util.Map.Entry;
 import java.util.logging.Level;
the index says blablabla enterworld.java while i am there there are no lines with those imports could it be that it is located somewhere else? :O
  • 0
Posted (edited)

They are. Look on line number, suspicious right? 74 line after 17 :D You have to click on the + to show the full view, like a spoiler. Simple press Ctrl + Shift + O to irganize imports, it's faster than manually adding the import.

 

15ec4a6c895f4fedadff298e8126fc54.png

Edited by SweeTs
  • 0
Posted

They are. Look on line number, suspicious right? 74 line after 17 :D You have to click on the + to show the full view, like a spoiler. Simple press Ctrl + Shift + O to irganize imports, it's faster than manually adding the import.

 

15ec4a6c895f4fedadff298e8126fc54.png

 

Hey so unless i am blind i really cannot see any of those

import java.sql.Connection;

 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
import java.util.Calendar;
 import java.util.Map.Entry;
 import java.util.logging.Level;
here :http://imgur.com/Y0VlSE6  i added the calendar seems to be working but still where is the import java.sql.connection and etc 
On the other side i am getting errors because i cannot import net.sf.l2j.commons.concurrent.ThreadPool; on AioTaskManager or net.sf.l2j.gameserver.model.World; on the adminAio also on AdminAio there does not seem to be a command getSkills which is used in line 135 :P any idea why am i missing those classes?
  • 0
Posted

Ignore default imports. You are using old sources. Few methods have been edited, you have to find proper 'naming' based on your sources.

 

ThreadPool -> ThreadPoolManager, also with old style you also have to include .getInstance()

World -> L2World

  • 0
Posted (edited)

Ignore default imports. You are using old sources. Few methods have been edited, you have to find proper 'naming' based on your sources.

 

ThreadPool -> ThreadPoolManager, also with old style you also have to include .getInstance()

World -> L2World

So updating my sources should do the trick without me needing to change anything else? If so could you give me the link with the updated sources :P

 

By ignoring defaults you mean i should optimize the files to first react to .net  and not com,javax,java or org? 

 

I am seriously lost right now :P

Edited by HyperActive
  • 0
Posted

So updating my sources should do the trick without me needing to change anything else? If so could you give me the link with the updated sources :P

 

By ignoring defaults you mean i should optimize the files to first react to .net  and not com,javax,java or org? 

 

I am seriously lost right now :P

I can tell you how to addapt it.its easy

You have to go where the error is and ahow us here the errors with screen..

Next you will make the changes we will tell you

  • 0
Posted (edited)

Here are the errors  basicly the two new classes AdminAio and the Aiotaskmanager it seems that those classes have commands that cannot be read with my eclipse "are undefined"

as SweeTs said it is because i use old sources but i got no idea how to get the new ones or how am i supposed to change it in order to be compatible with my source...

 

If you could tell me what i am supposed to do in order to get the getSkills and the ThreadPoolManager or Threadpool then i am practicly done it is not hard i guess i do not have the right tools :/

Edited by HyperActive

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Use l2tower for free, or try adrenaline. @Alex K.
    • 🎁 Double the Impact, Half the Cost! from 25/10/2025 until 25/12/2025 Buy or Renew your Donation Panel now and save 50% because supporting others should reward you too. 💡 Use code BLACKFRIDAY at checkout! https://hopzone.eu/store/product/26-donate-panel-v5/   About Donate Panel v5 PAYMENT IN EASY 5 STEPS Login with your character name. Select the donation service (Paypal Stripe Payeer MercadoPago 🆕). Select the amount of payment. Pay. 😎 Automatically recieve the reward ingame (and yes) while he is online! 🤯 PAYMENT METHODS Paypal Stripe accepts credit cards, debit cards, ACH transfers, Apple Pay, Google Pay, Microsoft Pay, and various local payment methods from around the world. Payeer accepts BTC, LTC, ETH, DASH, BCH, USD, EUR, RUB wallets MercadoPago accepts ARS, BRL, CLP, MXN, COP, PEN, UYU. PROTECTION Full SSL website (can be forced by htaccess) XSS Protection just in case. Remove vulnerability headers in htaccess level Session Validation COOKIE, POST, GET global inputs are sanitized SQL Injection protection Query String protetion Prepared statements of PDO driver (no sql injection there) Google Invisible Captcha v3 (NEW) Last but not least security through obscurity SEO & PUBLIC MANAGEMENT SEO Friendly urls (in htaccess level) Google Analytics and GTAG Code ready. Terms of use ready to go Refund policy ready to go Contact All the TERMS text are showing config dynamic item images/text with server's name and more OPTIMIZATION AND SPEED Zip Content (faster load) Memory save (unloading global vars) Using CDN’s for bootstrap Scripts are loaded in footer Images are soft to max 10kb Small and smart organized code style FUNCTIONALITIES Multilanguage (4 languages so far) EN ES NL EL (Easy to add more) Payment methods Paypal, Stripe, Payeer and MercadoPago After payment or cancel the user is redirected back to “Thank you” page. TECHNOLOGIES Bootstrap 5x CSS PHP 5.6+ (for l2off) and PHP 7.4+ (for java) Extensions for php: MySQL (L2Java), pdo_dblib(L2OFF), pdo_sqlsrv(L2OFF), mssql_connect (L2OFF) and PDO Drivers that support MariaDB, MySQL, MsSQL. SYSTEMS Stripe and MercadoPago supports sandbox and live. Detailed and seperated Logs (ERROR, DEVELOPER, INFO, WARNING, PAYMENT) for website and Rest APIs. Detailed Log in database for Payments and services used. Google Analytics (You know when players are in the panel and if they pay) Google Captcha V3 Dynamic Icons to show according your Donate Item ID Multiple servers L2OFF or L2JAVA servers can be added together as server network     BE AWARE: Leaked versions of old v2 panels (year 2018 with bugs) are still out sold by scammers without support or knowledge of the files.
    • I work with Kenrix and he is a  next level coder. Hugely Recommended.
    • Follow our Telegram channel, because exciting events are coming very soon! Halloween, 11.11, and also a giveaway related to 3000 subscribers in our Telegram channel are ahead! What do you think we have prepared? Subscribe to our Telegram channel and stay updated on all the news: https://t.me/accsforyou_shop Active links to SOCNET stores: Digital goods store (Website): Go Telegram store bot: Go – convenient access to the store via Telegram messenger. Telegram Stars purchasing bot: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to introduce you to the current list of promotions and special offers for purchasing products and services of our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) in October! You can also use a promo code for the first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write it in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel — just open a ticket with the topic “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Follow our Telegram channel, because exciting events are coming very soon! Halloween, 11.11, and also a giveaway related to 3000 subscribers in our Telegram channel are ahead! What do you think we have prepared? Subscribe to our Telegram channel and stay updated on all the news: https://t.me/accsforyou_shop Active links to SOCNET stores: Digital goods store (Website): Go Telegram store bot: Go – convenient access to the store via Telegram messenger. Telegram Stars purchasing bot: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to introduce you to the current list of promotions and special offers for purchasing products and services of our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) in October! You can also use a promo code for the first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write it in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel — just open a ticket with the topic “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock