Jump to content

Recommended Posts

Posted

I was mean the public that one of your pets needed 10 commits to make an AIO finally not work ^_^ no seriously you had errors in the code about the database connection and the typos i am 100% sure because i fixed it. About the private I can't know since i never seen the code but i doubt you would look into it since it was 10k+ lines.

 

PS: about the guy who wants this code in H5 kamael classes are need to implement in every single part of the code and its working tested by me and its common logic.

*but don't use this specific code

[GR] dn xerw an aneferes emena gia to hi5 , egw dokimasa na parw ton code apo to hellas alla den ta ekane save. ta allaze kanonika sto game ta stats alla molis ekane restart o server ta stats ipirxan stin database alla den ipirxan sto game. meta apo poly psaximo epeidi den mporouses na kaneis create char se kanena apo kamael class kai petouse errors, to eftiaxa kai ayto den thimamai pws, nomizw eixa allaxei to 88 den thimamai kala, katafera na mporeis na ftiaxeis kamael class kanonika, dokimasa kai na perasw ta id twn kamael class stin database,eftiaxa kai kainouria button, kainouria bypass alla pali den doulepse den ekane edit sta kamael. episis eixa kai sto charstat.java kapoia provlimata kai kapoia error pou den mporousa na ta fixarw.. einai thema gnwsewn. 

Posted

Afcourse και εχεις γνωσεις, βασικα εχετε ολοι γνωσεις Elfrocrash, Xdem, Nightwolf, Boorinio, Tryskel, κριμα που χανετε την ωρα σας να κανετε τις κοτες σε κοτετσι

keep up fighting on a forum where main admin buy unfinished website templates and videos because he don't want pay money :)

Εχω μαθει τα μισα πραγματα που ξερετε αλλα και παλι δεν μπαινω να κανω υποδειξη γνωσεων ελεος.

Xdem δωσε πονο ρε αγαπη :P :P

p ekana ipodiksi(epidiksi mallon thes na peis) gnwsewn dikse m ligo , xwria oti les dwse pono sto megalitero hater tou forum....

Posted
 

Afcourse και εχεις γνωσεις, βασικα εχετε ολοι γνωσεις Elfrocrash, Xdem, Nightwolf, Boorinio, Tryskel, κριμα που χανετε την ωρα σας να κανετε τις κοτες σε κοτετσι

keep up fighting on a forum where main admin buy unfinished website templates and videos because he don't want pay money  :)

Εχω μαθει τα μισα πραγματα που ξερετε αλλα και παλι δεν μπαινω να κανω υποδειξη γνωσεων ελεος.

Xdem δωσε πονο ρε αγαπη  :P  :P

p ekana ipodiksi(epidiksi mallon thes na peis) gnwsewn dikse m ligo , xwria oti les dwse pono sto megalitero hater tou forum....

[GR] dn xerw an aneferes emena gia to hi5 , egw dokimasa na parw ton code apo to hellas alla den ta ekane save. ta allaze kanonika sto game ta stats alla molis ekane restart o server ta stats ipirxan stin database alla den ipirxan sto game. meta apo poly psaximo epeidi den mporouses na kaneis create char se kanena apo kamael class kai petouse errors, to eftiaxa kai ayto den thimamai pws, nomizw eixa allaxei to 88 den thimamai kala, katafera na mporeis na ftiaxeis kamael class kanonika, dokimasa kai na perasw ta id twn kamael class stin database,eftiaxa kai kainouria button, kainouria bypass alla pali den doulepse den ekane edit sta kamael. episis eixa kai sto charstat.java kapoia provlimata kai kapoia error pou den mporousa na ta fixarw.. einai thema gnwsewn. 

man kapou ekanes lathos sto adopt i otan to pernouses kt ksexases giati to balance p exoume ta fortwnei kanonika...

Posted (edited)

 

 

p ekana ipodiksi(epidiksi mallon thes na peis) gnwsewn dikse m ligo , xwria oti les dwse pono sto megalitero hater tou forum....

man kapou ekanes lathos sto adopt i otan to pernouses kt ksexases giati to balance p exoume ta fortwnei kanonika...

 

Ξερεις οτι σε θεωρω απο τους καλυτερους developer :) και δεν αναφερθηκα σε εσενα ακριβως ειπα γενικος κ η λεξη πιανει αυτους που πιανει. αμα εκανες σε πιανει 

Αφου ξερεις οτι Nightwolf - boorinio ειστε οι αγαπημενοι μου devs γιατι το λες αυτο?

αλλα γενικα σας συμπαθω ολους.. ακομη και τον xdem μπορει αν βριζει να κανει να ρανει θα εχει το λογο του..

ο καθενας εχει τα χαρακτηριστικα του. κ οχι δεν ειπα οτι κανεις υποδειξη αντιθετως

Επισης να προσθεσω οτι οσο και παραξενοι να ειναι οι αλλοι, σεβομαι παντα αυτον που εχει περισσοτερες γνωσεις απο μενα

στην προκειμενη περιπτωση εσεις οι 4-5 που αναφερα καθως και αλλοι που δεν θυμαμαι τωρα ειστε για καποιο λογο

καλυτεροι απο μενα σε κατι και σας σεβομαι, δεν θα κατσω ουτε να το παιξω δηθεν ουτε να γινω wannabe εχοντας ακομη και το 1/2 των γνωσεων σας.

Και οπως ξερεις ενας λογος που ασχοληθηκα με L2j (εμαθα πως γινεται η συνδεση, και τωρα μαθαινω τα πιο βασικα σε C++ η οποια ειναι ελευθερη γλωσσα και επιτρεπει και λαθη)

Οποτε δεν εχω λογο να σ πω τπτ κακο...

Σ'ευχαριστω

Edited by VideoCopilot
Posted

Peace please, this code is actually coded by me(the one shared but with differences, like the ones xdem posted) on aCis firstly, after copying Elfocrash's idea, because i loved it.

 

Who said it will kill performance? :D

Please..

 

But anyway, that's not a way you can rely on to solve the balance issues of your server, since it's simply a Stats Editor, like someone said, and most of the times balance problems come from damage calculation formulas.

Posted

Peace please, this code is actually coded by me(the one shared but with differences, like the ones xdem posted) on aCis firstly, after copying Elfocrash's idea, because i loved it.

 

Who said it will kill performance? :D

Please..

 

But anyway, that's not a way you can rely on to solve the balance issues of your server, since it's simply a Stats Editor, like someone said, and most of the times balance problems come from damage calculation formulas.

 

 

i already said that the base was yours, you actually didn't save the stats i made the sql part...

Posted

that's not about frozen or something else is just java!

you don't say mr obvious , it's the way frozen had it done in their balancer that's why i said frozen style... 

  • 2 weeks later...
  • 2 months later...
Posted

mporh kapios na me help na fiaxo enan kodika p na mporo na ri8mizo ta balance apo ta class kai se l2jfrozen kati paromia me afto alla na mporo na to peraso se frozen mesa na fiaxo px enan kodika p na mporo na pataw apo mesa px //balance kai na vgazh parathiro me ta class olla na ri8mizo ta class an mporh na me help kapios as postarh kato apo emena euxaristw polu kai sorry ane eimai ligo akiros sto post edw aplla psaxno na vro enan tropo na ri8mizo class egw 

Posted

mipos iparxh kai geia frozen kati paromio ?? an iparxh kai mporh na me help kapios as to kanei euxaristw epidis den xero kala agglika sorry p postaro me ellinika kiolas se afto edw 

Posted (edited)

In the first class, you can drop 11/12 methods if you add a second parameter on the method String. Just saying...

 

I saw that after 1 minute, so there's probably a lot of optimizations to do.

 

You probably end with shitty performance overall while invoking method sendBalanceWindow(, where each stat is loaded on every call from the database, making huge mySQL queries. It should be Mapped. If you put the command on a macro, put your finger on it, you probably kill your server.

	public static int loadStat(String stat, int classId)
	{
		int i = 0;

		try (Connection con = L2DatabaseFactory.getInstance().getConnection())
		{
			PreparedStatement stm = con.prepareStatement("SELECT " +  stat + " FROM balance WHERE class_id=" + classId);
			ResultSet rset = stm.executeQuery();

			if (rset.next())
			{
				i = rset.getInt(stat);
			}

			stm.close();
		}
		catch (Exception e)
		{
			System.err.println("Error while loading balance stats from database.");
			e.printStackTrace();
		}
		return i;
	}
Edited by Tryskell
Posted (edited)

Like this? 

public static void LoadEm()
	{
		int z;

		for (z = 0; z < 31; z++)
		{
			Evasion[z] = loadStat("ev",88 + z);
			Speed[z] = loadStat("walk",z + 88);
			MAtk[z] = loadStat("matk",z + 88);
			PAtk[z] = loadStat("patk",z + 88);
			PDef[z] = loadStat("pdef",z + 88);
			MDef[z] = loadStat("mdef",z + 88);
			HP[z] = loadStat("hp",z + 88);
			CP[z] = loadStat("cp",z + 88);
			MP[z] = loadStat("mp",z + 88);
			MAtkSpd[z] = loadStat("matksp",z + 88);
			PAtkSpd[z] = loadStat("patksp",z + 88);
		}

	}
public static void sendBalanceWindow(int classId, L2PcInstance p)
	{
		NpcHtmlMessage htm = new NpcHtmlMessage(0);
		htm.setFile("./data/html/admin/balance/balance.htm");
		
		htm.replace("%classId%", classId + "");
		htm.replace("%Patk%", BalanceLoad.loadStat("patk",classId) + "");
		htm.replace("%Matk%", BalanceLoad.loadStat("matk",classId) + "");
		htm.replace("%Pdef%", BalanceLoad.loadStat("pdef",classId) + "");
		htm.replace("%Mdef%", BalanceLoad.loadStat("mdef",classId) + "");
		htm.replace("%Acc%", BalanceLoad.loadStat("acc",classId) + "");
		htm.replace("%Eva%", BalanceLoad.loadStat("ev",classId) + "");
		htm.replace("%AtkSp%", BalanceLoad.loadStat("patksp",classId) + "");
		htm.replace("%CastSp%", BalanceLoad.loadStat("matksp",classId) + "");
		htm.replace("%Cp%", BalanceLoad.loadStat("cp",classId) + "");
		htm.replace("%Hp%", BalanceLoad.loadStat("hp",classId) + "");
		htm.replace("%Mp%", BalanceLoad.loadStat("mp",classId) + "");
		htm.replace("%Speed%", BalanceLoad.loadStat("walk",classId) + "");
		
		p.sendPacket(htm);
	}
Edited by admirolas3

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

    • I was looking for  server with a low rates,eventually i found l2 elixir.I Joined beta and after so many years since 2008 i found  a friend that we played together, memories came back. i cant wait for the grand oppening!. dont miss it!
    • Seems legit, for sure deserves a try!
    • SOCNET VERIFICATION SERVICE — is a universal solution for those who value security, convenience, and quality. We turn the verification process into a convenient, fast, and highly confidential experience. Thanks to our service, any of your accounts receive identity confirmation, an increased level of trust from platforms and users, as well as protection from bans, fraud, and risks.   Promotion: Pay for your first verification and get a 10% discount on the second one! 💎 We help with verification on Fragment, crypto exchanges ByBit, Gate, Bitget, OKX, Binance, PayPal, KuCoin, and social networks LinkedIn, Facebook, Instagram, Twitter (X) and many other platforms! 💎 Verification for any service: crypto exchanges, trading platforms, hosting providers, casinos and other websites. Why choose us:   Premium quality — we use the most advanced verification methods. High processing speed — accelerated verification on leading platforms, online services and social networks. Full confidentiality — your personal information is protected. Increased trust and status — a verified account boosts influence and improves conversion. Individual approach — we work with bloggers, brands, businesses, and private clients. Simplifying complexity — we handle issues when dealing with foreign services. Important! Services related to illegal activities are strictly prohibited! 💳 Service pricing   ✅ Verification of individuals — from $30 (the exact cost depends on the required location and service/app/website). Learn more 👨‍💼 The cost of business verification for companies or legal entities is discussed individually with the service administration. Learn more If you want us to register your account on the required service and verify it — you will need to additionally pay 10% of the transaction amount. Available payment methods: cryptocurrency, credit cards, PayPal, and other payment methods in our online store and Telegram bot.   ⭐ Our Online Store ⭐ SOCNET.STORE ⭐ Telegram Store ⭐ SOCNET.SHOP ⭐ Our SMS Service ⭐ SOCNET.APP ⭐ Our Telegram Bot for buying Telegram Stars ⭐ SOCNET.CC ⭐ Our SMM Panel ⭐ SOCNET.PRO   ✅ News Resources ➡ Telegram Channel ➡ WhatsApp Channel ➡ Discord Server     ⭐ We invite you to COOPERATE and EARN with us ⭐ Would you like to sell your product or service in our stores and earn money? Become our partner or offer mutually beneficial collaboration? You can contact us via the CONTACTS listed in this topic. ✅ Contacts & Support ➡ Telegram Support ➡ WhatsApp Support ➡ Discord Support: socnet_support ➡ Email Support: solomonbog@socnet.store   Terms of Use and Refund Policy If you have any questions or issues, our fast support service is ready to respond to your requests! A refund for a completed service that does not fully meet the requirements or the declared quality is possible only if the product description includes a warranty and a valid warranty period. In other cases, a full refund for the service will not be provided! By purchasing such a service, you automatically agree to our refund rules for non-provided services! Refunds for countries selected by mistake are not provided after verification. To complete verification, you must provide full access to your account. We currently accept cryptocurrency, credit cards, PayPal, and other payment methods in our online store and Telegram bot! We value every client and provide replacements in case of invalid accounts via our contact channels! Attention: Your order will be delivered to your personal Google Drive/Mega.nz via a link (check the link, click “View content”) within 24 hours after the order confirmation! If you purchased more than 1 item at once, your entire order will be delivered via the first link! The remaining links will be empty! You will automatically receive an email notification after delivery! If you pay on our website via PayPal, you must pay an additional 20% commission (minimum $1). To avoid this commission, you can pay me directly via PayPal — instructions are available on the website! Refunds for items purchased by mistake or due to “I chose the wrong product and did not use it” are not accepted! You are fully responsible for your actions before and after purchase.
    • SOCNET VERIFICATION SERVICE — is a universal solution for those who value security, convenience, and quality. We turn the verification process into a convenient, fast, and highly confidential experience. Thanks to our service, any of your accounts receive identity confirmation, an increased level of trust from platforms and users, as well as protection from bans, fraud, and risks.   Promotion: Pay for your first verification and get a 10% discount on the second one! 💎 We help with verification on Fragment, crypto exchanges ByBit, Gate, Bitget, OKX, Binance, PayPal, KuCoin, and social networks LinkedIn, Facebook, Instagram, Twitter (X) and many other platforms! 💎 Verification for any service: crypto exchanges, trading platforms, hosting providers, casinos and other websites. Why choose us:   Premium quality — we use the most advanced verification methods. High processing speed — accelerated verification on leading platforms, online services and social networks. Full confidentiality — your personal information is protected. Increased trust and status — a verified account boosts influence and improves conversion. Individual approach — we work with bloggers, brands, businesses, and private clients. Simplifying complexity — we handle issues when dealing with foreign services. Important! Services related to illegal activities are strictly prohibited! 💳 Service pricing   ✅ Verification of individuals — from $30 (the exact cost depends on the required location and service/app/website). Learn more 👨‍💼 The cost of business verification for companies or legal entities is discussed individually with the service administration. Learn more If you want us to register your account on the required service and verify it — you will need to additionally pay 10% of the transaction amount. Available payment methods: cryptocurrency, credit cards, PayPal, and other payment methods in our online store and Telegram bot.   ⭐ Our Online Store ⭐ SOCNET.STORE ⭐ Telegram Store ⭐ SOCNET.SHOP ⭐ Our SMS Service ⭐ SOCNET.APP ⭐ Our Telegram Bot for buying Telegram Stars ⭐ SOCNET.CC ⭐ Our SMM Panel ⭐ SOCNET.PRO   ✅ News Resources ➡ Telegram Channel ➡ WhatsApp Channel ➡ Discord Server     ⭐ We invite you to COOPERATE and EARN with us ⭐ Would you like to sell your product or service in our stores and earn money? Become our partner or offer mutually beneficial collaboration? You can contact us via the CONTACTS listed in this topic. ✅ Contacts & Support ➡ Telegram Support ➡ WhatsApp Support ➡ Discord Support: socnet_support ➡ Email Support: solomonbog@socnet.store   Terms of Use and Refund Policy If you have any questions or issues, our fast support service is ready to respond to your requests! A refund for a completed service that does not fully meet the requirements or the declared quality is possible only if the product description includes a warranty and a valid warranty period. In other cases, a full refund for the service will not be provided! By purchasing such a service, you automatically agree to our refund rules for non-provided services! Refunds for countries selected by mistake are not provided after verification. To complete verification, you must provide full access to your account. We currently accept cryptocurrency, credit cards, PayPal, and other payment methods in our online store and Telegram bot! We value every client and provide replacements in case of invalid accounts via our contact channels! Attention: Your order will be delivered to your personal Google Drive/Mega.nz via a link (check the link, click “View content”) within 24 hours after the order confirmation! If you purchased more than 1 item at once, your entire order will be delivered via the first link! The remaining links will be empty! You will automatically receive an email notification after delivery! If you pay on our website via PayPal, you must pay an additional 20% commission (minimum $1). To avoid this commission, you can pay me directly via PayPal — instructions are available on the website! Refunds for items purchased by mistake or due to “I chose the wrong product and did not use it” are not accepted! You are fully responsible for your actions before and after purchase.
  • 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