Jump to content

L2J Acis Custom Pack


Recommended Posts

Update 9

 

Update Includes

 

Password Manager

  - PasswordManagerInstance

  - xml/npc/{id}

  - html/mods/password/{id}

 

I Introduce you my PasswordManager designed and developed by me, nice and clean

 

and if somone says anything about the early return statement he should go and read this

=> https://softwareengineering.stackexchange.com/questions/18454/should-i-return-from-a-function-early-or-use-an-if-statement

 

 

BVDHzL.png

 

L2PasswordManagerInstance

@Override
	public void onBypassFeedback(L2PcInstance player, String command)
	{
		StringTokenizer st = new StringTokenizer(command, " ");
		String currentCommand = st.nextToken();
		
		if (currentCommand.startsWith("change_password"))
		{
			String currentPassword = null;
			String newPassword = null;
			String repeatNewPassword = null;
			String passwordCheck = "";
			
			if(st.hasMoreTokens())
				currentPassword= st.nextToken();
			if(st.hasMoreTokens())
				newPassword= st.nextToken();
			if(st.hasMoreTokens())
				repeatNewPassword= st.nextToken();
			
			if(currentPassword == null || newPassword == null || repeatNewPassword == null){
				player.sendMessage("Fill the current,new and repeat password");
				return;
			}
			if(!newPassword.equals(repeatNewPassword)){
				player.sendMessage("The new password doesn't match with the repeated password");
				return;
			}
			if(newPassword.length()<3 || newPassword.length()>30){
				player.sendMessage("Provide a password with length 3-30");
				return;
			}
			
			try (Connection con = L2DatabaseFactory.getInstance().getConnection())
			{
				MessageDigest md = MessageDigest.getInstance("SHA");
				byte[] raw = currentPassword.getBytes("UTF-8");
				byte[] hash = md.digest(raw);
				currentPassword = Base64.getEncoder().encodeToString(hash);
				
				PreparedStatement statement = con.prepareStatement("SELECT password FROM accounts WHERE login=?");
				statement.setString(1, player.getAccountName());
				ResultSet rset = statement.executeQuery();
				
				if (rset.next())
					passwordCheck = rset.getString("password");
				
				//statement close
				statement.close();
				
				if(!passwordCheck.equals(currentPassword)){
					player.sendMessage("The current password you provide is wrong");
					return;
				}
				
				raw = newPassword.getBytes("UTF-8");
				hash = md.digest(raw);
				newPassword = Base64.getEncoder().encodeToString(hash);
				
				statement = con.prepareStatement("UPDATE accounts SET password=? WHERE login=?");
				statement.setString(1, newPassword);
				statement.setString(2, player.getAccountName());
				statement.execute();
				statement.close();
				
				player.sendMessage("The passsword changed succesfully");
				
			}catch (Exception e)
			{
				_log.log(Level.WARNING, "Password changing is failed" + e.getMessage(), e);
			}
			
		}
		super.onBypassFeedback(player, command);
	}
	
	@Override
	public String getHtmlPath(int npcId, int val)
	{
		String filename = "";
		if (val == 0)
			filename = "" + npcId;
		else
			filename = npcId + "-" + val;
		
		return "data/html/mods/password/" + filename + ".htm";
	}
Edited by joker90
Link to comment
Share on other sites

ok I get it you genius but please stop spamming to my topic, go somewhere else to judge

We must accept opinions.. That's why the reply exist buddy. 

 

Good luck with your project..

Link to comment
Share on other sites

ok I get it you genius but please stop spamming to my topic, go somewhere else to judge

 

 I dont understand why you people know only to judge, this pack is made for the people who don't have the knowledge and the qualification to add some custom features to their server, a lot of people having trouble for example add the Top pvp/pk manager, what I did was to help them. I am doing it only for hobby and nothing more or less, I am going to add to this pack and the next pack(free revision) all the neccesary custom features that I believe is very important if you want to open a pvp server using L2J ACIS !! Wait and see...

 

More nabs will open servers..you provide some custom features but always there is l2j bugs there inside and its a lot
Link to comment
Share on other sites

I understand but I would like to help them as they helped me when I was 12 years old and this is the reason that now I am a skilled Software Engineer, because of the desire to learn coding and get involve in the back end.

 

Final categories added in the first post of this topic => Includes 

 

  1. NPCs
  2. Custom Properties
  3. Balance
  4. Events
  5. User Commands(no voice commands)
Link to comment
Share on other sites

Αν δούλευες για την Microsoft Hellas το ίδιο θα έλεγες ;) xxdem μνημόνια μέχρι να σβήσει ο ήλιος ιρλανδέ μάγκα

Edited by joker90
Link to comment
Share on other sites

Αν δούλευες για την Microsoft Hellas το ίδιο θα έλεγες ;)

 

pia microsoft hellas re mpaglamadako, ti kanete ekei to windows 11 ftiaxnete i kanete kana share to page sto facebook?

Link to comment
Share on other sites

.ΝΕΤ , ASP.NET MVC, WPF, Windows Forms, Entity Framework, Fluent Hibernate, LINQ, ADO.NET SQL Server, C++, C#,Visual Basic, ASP.NET Webforms etc.. και μισθό 1.456 ευρώ κάθε μήνα, τέτοιο μισθό δεν θα δείς ποτε φίλε.. κάτσε φτιάξε κανενα website η κανενα σερβερακο σε l2j με 100 ευρώ και μετα τράβα να πιείς φραπέ στην παραλία !! μνημονια μεχρι να σβήσει ο ήλιος φίλε μου 500 ευρω βασικός μισθός αξίζει σε εσας τα μαγκακια

Link to comment
Share on other sites

Φίλε είπες κουταμάρα συγνώμη για την έκφραση...για να σε προσλάβουν αυτές οι εταιρείες πρέπει να έχει υποβαθρό στα πάντα να μπορείς να ξεπηδάς απο το ένα στο αλλό μεσα σε λίγες ημέρες, δες αυτο το topic ποτε δημιουργήθηκε τοτε ξεκίνησα να βλέπω το acis για πρωτη φορα στην ζωη μου αυτό λέγεται rapid development και fast learning τα οποια χωρις αυτα μονο website φτιαχνεις μια ζωη ..

 

Αναφορικά με αυτα που έκανες editing Elfo. αν κατι σταματήσει να ειναι popular συνεχίζεις την επεκτασιμότητα και την συντηρησιμότητα του λογισμικου γιατι κάποιοι εξακολουθουν να το χρησιμοποιουν 

Edited by joker90
Link to comment
Share on other sites

Φίλε είπες κουταμάρα συγνώμη για την έκφραση...για να σε προσλάβουν αυτές οι εταιρείες πρέπει να έχει υποβαθρό στα πάντα να μπορείς να ξεπηδάς απο το ένα στο αλλό μεσα σε λίγες ημέρες, δες αυτο το topic ποτε δημιουργήθηκε τοτε ξεκίνησα να βλέπω το acis για πρωτη φορα στην ζωη μου αυτό λέγεται rapid development και fast learning τα οποια χωρις αυτα μονο website φτιαχνεις μια ζωη 

 

Δηλαδη εσυ εισαι και c++ guru με λιγα λογια

Link to comment
Share on other sites

ΔΗΛΑΔΗ Ο C++ ΜΙΚΡΟΣΟΦΤ ΧΕΛΑΣ ΓΚΟΥΡΟΥ ΚΑΝΕΙ SHARE GATEKEEPER BY VAGGOC ????????? ΠΟΥ ΖΩ ΤΟΣΟ ΚΑΙΡΟ ΜΟΥ ΑΝΟΙΞΕΣ ΤΑ ΜΑΤΙΑ ΕΥΧΑΡΙΣΤΩ +1 ΚΑΡΜΑ ΚΑΙ ΑΠΟ ΜΕΝΑ ΜΠΡΑΒΟ ΣΤΟ ΠΑΙΔΙ

Link to comment
Share on other sites

Φίλε είπες κουταμάρα συγνώμη για την έκφραση...για να σε προσλάβουν αυτές οι εταιρείες πρέπει να έχει υποβαθρό στα πάντα να μπορείς να ξεπηδάς απο το ένα στο αλλό μεσα σε λίγες ημέρες, δες αυτο το topic ποτε δημιουργήθηκε τοτε ξεκίνησα να βλέπω το acis για πρωτη φορα στην ζωη μου αυτό λέγεται rapid development και fast learning τα οποια χωρις αυτα μονο website φτιαχνεις μια ζωη 

Nai den theloune specialists, theloun project hoppers....

Episis an hkseres ti paizei sthn agora tha katalavaines oti ta web apps einai to 80% tou development me games kai low level na pianei to upoloipo 20%.

 

Opote nai, makari na ftiaxnw web apps mia zwh giati plhrwnei perisotero apo otidipote allo (eidika an einai se finance).

 

Episis an hkseres pws douleuei to git tha ekanes kana push giati to exeis outdated 5 meres https://github.com/kkafkas/L2J_aCis_custom

 

Den exw kanena provlhma me autous pou theloun na kanoun ena l2j project gia na kanoun to komati tous.

Exw provlhma me autous pou exoun authapates. Den einai kako na mhn douleueis thn kaluterh ths kaluterhs etairias.

Einai kako na les oti eisai kati pou den eisai kai na mhn mporeis na to upostirikseis.

Autes oi etairies den tha proslavanan pote kanenan pou den exei estw ena project sto github profile tou.

Kai opws ksanaeipa, h Microsoft den exei development theseis sthn ellada.

Link to comment
Share on other sites

Λοιπόν τελευταίο μήνυμα γιατί δεν θέλω να σπαμαρω το topic, φίλοι μου καλοί μου φίλοι και αναφέρομαι στα μαγκάκια τα ελληνάκια που τους αξίζει μνημόνια μέχρι να σβήσει ο ηλιος, δεν είναι ποια γώσσα προγραμματισμού γνωρίζεις η ποσά frameworks γνωρίζεις η Πόσες βιβλιοθήκες third party libraries γνωρίζεις είναι  καθαρά η αντίληψη και η νοημοσύνη που έχεις, το ποσό καλός είσαι στα data structures και γενικότερα στην αλγοριθμική επίσης ποσό γρήγορα μπορείς να μάθεις κάτι νέο και να ξεκινήσεις την ανάπτυξη λογισμικού με την χρήση ενός μονο καλού documentation μια γλω΄σσα προγραμματισμου μπορείς να την μάθεις μέσα σε 3 μέρες αυτό είναι το ποιο εύκολο γιαυτο μην κάνετε γελοίες ερωτήσεις . το acis το δουλεύω και το βλέπω πρώτη φορά στην ζωή μου εδώ και 7 μέρες και έχω αρχίσει να προσανατολίζομαι μεσα στο Project και πολυ καλα μάλιστα

Edited by joker90
Link to comment
Share on other sites

Nai den theloune specialists, theloun project hoppers....

Episis an hkseres ti paizei sthn agora tha katalavaines oti ta web apps einai to 80% tou development me games kai low level na pianei to upoloipo 20%.

 

Opote nai, makari na ftiaxnw web apps mia zwh giati plhrwnei perisotero apo otidipote allo (eidika an einai se finance).

 

Episis an hkseres pws douleuei to git tha ekanes kana push giati to exeis outdated 5 meres https://github.com/kkafkas/L2J_aCis_custom

 

Den exw kanena provlhma me autous pou theloun na kanoun ena l2j project gia na kanoun to komati tous.

Exw provlhma me autous pou exoun authapates. Den einai kako na mhn douleueis thn kaluterh ths kaluterhs etairias.

Einai kako na les oti eisai kati pou den eisai kai na mhn mporeis na to upostirikseis.

Autes oi etairies den tha proslavanan pote kanenan pou den exei estw ena project sto github profile tou.

Kai opws ksanaeipa, h Microsoft den exei development theseis sthn ellada.

 

ntaksi mi to gamas to 9ema mia malakia eipe kai kolises ekei esy, mporei na zei sto Seattle kai na mas koroidevei twra giafto leei gia mnimonia klp.

 

BTW: o logos pou tetia "project" / topics den eprepe na iparxoune einai:

  • paei o ka9e akiros kai kanei server me trash shares
  • oi ligoi l2players pou exoune minei vlepoun kati teties malakies kai nomizoun oti 9a ginoun admins tis xronias
  • kanenas server den 9a siko9ei panw se paromio project, ara einai waste of time
  • to sigkekrimeno project den einai tpt parapanw apo mia xomateri arxaiwn outdated shares, den exei kati to original
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • Create New...