Ranger™ Posted April 22, 2010 Share Posted April 22, 2010 Πώς μπορώ να κάνω 1 Java Code παιδιά δηλαδή θέλω να πω τι γράφω πώς κάνω 1 οδηγό θελω Link to comment Share on other sites More sharing options...
0 Yakamoto Posted April 22, 2010 Share Posted April 22, 2010 Modification ti enoeis? Link to comment Share on other sites More sharing options...
0 Ranger™ Posted April 22, 2010 Author Share Posted April 22, 2010 paradeigma otan enas char exei 20 pvp na ginete noble paradeigma Link to comment Share on other sites More sharing options...
0 `NexiM™ Posted April 22, 2010 Share Posted April 22, 2010 dn katalava tpt vsk dn xerw kan an iparxei tetia arotish.. Link to comment Share on other sites More sharing options...
0 `NexiM™ Posted April 22, 2010 Share Posted April 22, 2010 paradeigma otan enas char exei 20 pvp na ginete noble paradeigma aa afto enoeis einai java code.. Link to comment Share on other sites More sharing options...
0 Ranger™ Posted April 22, 2010 Author Share Posted April 22, 2010 aa afto enoeis einai java code.. ox nai soz berdeftika Link to comment Share on other sites More sharing options...
0 Ranger™ Posted April 22, 2010 Author Share Posted April 22, 2010 ekana 1 code otan kapoios exei 20 pvp na ginete noblesse swsto? if (activeChar.getPvpKills() >= 20) { activeChar.sendMessage ("Congratz , you are now a server Noblesse "); activeChar.setNoblesse(true); } Link to comment Share on other sites More sharing options...
0 PonyR1der Posted April 22, 2010 Share Posted April 22, 2010 ekana 1 code otan kapoios exei 20 pvp na ginete noblesse swsto? nai nomizw ine swsto. ala prin to } den 8elei ena return;?dld na ine etc: if (activeChar.getPvpKills() >= 20) { activeChar.sendMessage ("Congratz , you are now a server Noblesse "); activeChar.setNoblesse(true); return; } vevea den ime sigouros Link to comment Share on other sites More sharing options...
0 kuba90 Posted April 23, 2010 Share Posted April 23, 2010 Όταν γράφεις κώδικα σε μιά γλώσσα προγραμματισμού συνήθως έχεις τρία "προβλήματα": 1)Πού θα εκτελεστεί ο κώδικάς μου ? 2)Πόσες φορές θα εκτελεστεί ο κώδικάς μου ? 3)Τί κάνει ο κώδικάς μου ? Αυτή είναι η βασική συλογιστική πορεία. Στην προκειμένη περίπτωση: 1)Την στιγμή που ο character κερδίζει ένα PVP. 2)Θέλω μία φορά μόνο, δεν θα κάνω τον character Noblesse κάθε φορά που κάνει ένα pvp. 3)Κάνει τον Character Noblesse. Αυτό το κομμάτι που έγραψες πρέπει να μπεί στην onKill συνάρτηση μέσα στο L2PcInstance ή καλύτερα στην increasePvPKills(). Τα λάθη που έχει: activeChar.getPvpKills >= 20 // Δηλαδή κάθε φορά που κάνεις pvp και είσαι πάνω από τα 20 pvp γίνεσαι noblesse. return; //Αυτό ίσως προκαλέσει προβλήματα αναλόγως που βάλεις τον κώδικά σου, διέγραψέ το. Άρα πρέπει αν γράψεις: //mono otan ta pvp einai 20, oxi perisotera oxi ligotera. Mono mia fora tha ginei noblesse. if(activeChar.getPvpKills() == 20) { activeChar.setNoblesse(true); activeChar.sendMessage("Congrats you are now a noblesse."); } Link to comment Share on other sites More sharing options...
0 doubledee Posted April 23, 2010 Share Posted April 23, 2010 twra gia na kaneis ena java code deiko sou xreiazete na 3ereis tin glwssa programmatismou java.. Link to comment Share on other sites More sharing options...
0 PwnedTheGod™ Posted April 23, 2010 Share Posted April 23, 2010 twra gia na kaneis ena java code deiko sou xreiazete na 3ereis tin glwssa programmatismou java.. Gt pote dn xriazotan??? :S EDIT:Lock afou do8ike apantisi Link to comment Share on other sites More sharing options...
0 Trx Posted April 23, 2010 Share Posted April 23, 2010 για να κάνεις δικό σου κώδικα java πρέπει να γνωρίζεις τη γλώσσα Link to comment Share on other sites More sharing options...
0 Ranger™ Posted April 23, 2010 Author Share Posted April 23, 2010 Request 4 Lock Link to comment Share on other sites More sharing options...
0 Vkouk Posted April 24, 2010 Share Posted April 24, 2010 Request 4 Lock ok Link to comment Share on other sites More sharing options...
Question
Ranger™
Πώς μπορώ να κάνω 1 Java Code παιδιά δηλαδή θέλω να πω τι γράφω πώς κάνω 1 οδηγό θελω
Link to comment
Share on other sites
13 answers to this question
Recommended Posts