Jump to content

Balancer For Acis


te0x

Recommended Posts

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. 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

 

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

Link to comment
Share on other sites

 

 

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...