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

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
Reply to this topic...

×   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

    • @Vedi don't give up bro. We are waiting for this project to come back stronger.  
    • Welcome to L2EpicFail Server developed by gamers for gamers!  OBT - 7th March 2024 at 18:00 GMT+0 GRAND OPENING - 14th March 2025 at 18:00 GMT+0 Website : https://l2epic.fail/ Discord : https://discord.gg/6hwhrkrHBG     Server Features and Rates Xp – 15x Sp – 9x Adena – 6x Drop – 2x Spoil - 2x Seal Stones drop -  3x   Epic Raid Boss drop - 1x Regular RBs - EXP 5x, SP 5x, drop 4x   Quest drop - 1x (some quests customized to 3x) Quest reward - 1x, Adena 3x, EXP 3x, SP 3x     Premium Account Xp +20% Sp +20% Adena +20% Drop +20% Spoil +20% Quest reward +20%   get by vote or donate World chat 20 times/day use ">" in chat. Buff Book outside of town. Applies to all accounts.     Special Features Classic interface ActiveAnticheat Vote System Missions Attendance check And more in information below     Noblesse There are 3 ways how to make noblesse 1 - Retail Quest with killing barakiel 2 - Modifed Quest, choose killing mobs for 100 items instead of barakiel 3 - Can be bought for Epic Coins     Raid Rank Killing regular Raids gives points according to the level of the RB to the clan of the player who killed the boss. At the end of every month, there will be rewards for top clans. For more info, follow our Discord.   monthly period killing RB = points to clan according to RB level rewards up to Valakas Necklace (not the first month) current statistics can be checked online     Epic Bosses & Respawns   Queen Ant 20 - 30 hours respawn window 1 hour always displayed in .epic auto PvP zone (max 43 level) HP boosted drop chance 40% guards, nurses lvl 40   Orfen 20 - 30 hours respawn window 1 hour always displayed in .epic auto PvP zone (max 56 level) HP boosted drop chance 40% earring gives +1 WIT, +1 INT   Core 20 - 30 hours respawn window 1 hour always displayed in .epic auto PvP zone (max 56 level) HP boosted drop chance 40% ring gives +1 STR, +1 DEX   Zaken 44 - 54 hours respawn window 1 hour always displayed in .epic auto PvP zone (max A grade) doors opened only 5 mins HP boosted   Baium Every Sunday 20:30 - 21:30 window 1 hour always displayed in .epic auto PvP zone (13 - 14th ToI level) regular HP   Frintezza Every Monday, Wednesday, Friday 20:00 - 21:00 window 1 hour always displayed in .epic auto PvP zone (all IT entrance) max 5 parties to entry max 500 range from NPC   Antharas Every two weeks on Saturday 21:00 - 22:00 window 1 hour always displayed in .epic auto PvP zone (bridge to heart)   Valakas Every two weeks on Saturday 21:00 - 22:00 window 1 hour always displayed in .epic auto PvP zone (Klein to heart)   every Epic RB drops Epic Medals equal to RB level x 10     Regular Bosses all regular RBs HP boosted M. def boosted a bit to give advantage to fighters all regular RBs respawn 24 - 30 hours every RB drops Epic Medals equal to RB level     Added Skills Mass Sweep - All Bounty Hunters 40+ Block Buff - All Characters, toggle Escape: 20 seconds - All Characters, no more SoEs   Skills autolearn. Losing skills after 16 levels of delevel. Max buffs 24 + 4 with books (no autolearn)     Augments NoGrade - 4% chance MidGrade - 5% chance HighGrade - 7% chance TopGrade - 6% chance   GM shop weapon/armor/jwl (max C grade) shots/spiritshots (max C grade) mana potions (500 MP, 5s)     NPC buffer all buffs, songs, dances including 3rd prof + resists 1 hour duration all chars Buff Book in inventory     Global Gatekeeper all towns including cata/necro ToI 3/5/7/10th     Olympiad Thursday to Saturday 18:00 - 23:50 UTC+0 period 7 days no class participants min 5 base class participants min 10 max enchant +6     Class Transfer 1st class 50k adena 2nd class 500k adena 3rd class 20kk adena + 700 Halisha marks (tradeable)     Noblesse Quest Quest retail like. Moonstone Shards, Demons Blood etc. quest drop boosted     Subclass Quest To get the quest, you have to be 75+ on your main character (start Reorin in Giran) Bring item from Cabrio chest Bring items from Hallate, Kernon and Golkonda chests Bring this back to Reorin Bring 984 B-grade crystals and top B weapon to Reorin Get low A-grade weapon as reward Done , you can take subclass (up to 5) from any Master in town     Clans all clan members get clan skills (no need for titles) max clan slots 65, max ppl in PvP zone 63 leave/dismiss penalty 0 hours max clans in ally 3     Others   max 3 windows per HWID (only one in PvP zone) protection after teleport for 20 seconds arrows and spellbooks drop turned off weight limit 10x, stackable enchants and LS champions blue (5x HP) min level for trade = 40, chat = 20 BoM/MoM spawned in towns Edited November 1, 2024 by NevesOma
    • Im searching to developer to help me 🙂 pm me 🙂
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchiha.sellpass.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
  • Topics

×
×
  • Create New...