-
Posts
7,281 -
Credits
0 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Fanky
-
[Request Topic]Κάντε request ότι οδηγούς θέλετε.
Fanky replied to Fanky's topic in Server Development Discussion [Greek]
Οκ,μέχρι αύριο το μεσημέρι θα τον έχω post. -
τι να αναζητήσεις;
-
holy crap dude. your coding way in this code is rly crap :P
-
την αλήθεια λέω,τέλος πάντων κάνε οτι θες αλλά να έχεις στο νου σου αυτό που σου ειπα. 'αφού δεν νοιάζονται αυτοί που πρέπει μια,εσεις δεν πρέπει να νοιάζεσαι 100'
-
Να φτιάξεις; ψάξε το στο google,δεν πρέπει να υπάρχει εδώ κάτι καλό(εννοείς να φτιάξεις τα πάντα απο την αρχή έτσι; buttons/templates κλπ)..
-
come on,no more than 10euro for all. The first and third account are trash,bad elo. Only the 2nd may worth 8-10e. Even more when you dont have any skins(just 1?come on) with such price you can buy a decent account with 1300-1400 elo.(or 1200 elo and many skins(legendaries/limited and such)
-
Το να φτιάξεις είναι κομματάκι δύσκολο για έναν αρχάριο μιας και χρειάζονται πραγματικά αρκετές ικανότητες Photoshop ώστε να φτιάξεις. όμως αν ψάξεις στο φόρουμ,θα βρεις αρκετά sites(είτε rip είτε με .psd). ψάξε,δες τι σου αρέσει και κατέβασε το.
-
ναι και θίχτηκες εσύ τώρα για τον συγκεκριμένο τομέα. δικαιολογιες του κώλου είναι αυτές. κοίτα,μπορείς άμα θες να κοροϊδεύεις τον εαυτό σου ότι και καλά 'δεν έχω τι άλλο να κάνω για αυτό ας κάνω ένα emo topic για το sticky' και άλλες τέτοιες πίπες, αλλά αν πιστεύεις ότι ήμαστε το ίδιο χάπατα σαν και εσένα,είσαι λάθος.
-
τελικά μάλλον είσαι πιο μπετόβλακας απο όσο πίστευα. γιατί συνεχίζεις να ασχολήσε; δες το και απο την άλλη,αν δεν ασχολούνται αυτοί που πρέπει μια,εσυ δεν πρέπει να ασχολείσε 100.
-
req dev help eng l2j http://maxcheaters.com/forum/index.php?topic=249951.0
-
Pick the one that l2j got by default.
-
[problem] Problem on build workspace on Eclipse
Fanky replied to Rzeszut's question in Request Server Development Help [L2J]
-
[Request Topic]Κάντε request ότι οδηγούς θέλετε.
Fanky replied to Fanky's topic in Server Development Discussion [Greek]
τίποτα; δεν θέλετε τίποτα; ελάτε ρε μαλάκες,τόσα τοπικς γίνονται καθημερινά στα help sections,δεν θέλετε να μάθετε τίποτα παραπάνω; -
οτι να ναι. όταν κατεβάζεις ένα custom[item(accessories,weapons,armors,shield),κλπ] περιέχει δυο φακέλους. server side/client side client side: textures,weaponrpg κλπ server side: sql,xml κλπ εκείνος θέλει κάποιος να του φτιάξει το server side.
-
Paidia EPEIGON PLEASE
Fanky replied to falcone2's question in Request Server Development Help [Greek]
dafaq; -
Windows 7. btw its called OS(Operating System)
-
Τa sql/xml.
-
Code Help The Noobs[Noob System,another Way]
Fanky replied to Fanky's topic in Server Shares & Files [L2J]
whatever ;p -
Code Help The Noobs[Noob System,another Way]
Fanky replied to Fanky's topic in Server Shares & Files [L2J]
... -
Code Help The Noobs[Noob System,another Way]
Fanky replied to Fanky's topic in Server Shares & Files [L2J]
fixed dat typo. k,ty. -
Code Help The Noobs[Noob System,another Way]
Fanky replied to Fanky's topic in Server Shares & Files [L2J]
thanks,I will. -
Code Help The Noobs[Noob System,another Way]
Fanky replied to Fanky's topic in Server Shares & Files [L2J]
trololololo yes,lol. -
Project Excalibur [To Server Devs Only]
Fanky replied to dony's topic in Server Development Discussion [L2J]
by the way,why IL? it was rly stupid choise. -
Greetings! I coded this small but rly,rly useful code for a pvp server. No exaplanations need,read the configs & code and you'll understand. ### Eclipse Workspace Patch 1.0 #P L2_GameServer_It Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 5603) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -204,6 +204,23 @@ */ public final class L2PcInstance extends L2PlayableInstance { + + //noob system + + private boolean _noob; + private int noobdeaths = 0; + + public boolean isNoob() + { + return _noob; + } + public void setNoob(boolean isNoob) + { + _noob = isNoob; + } + + + private static final String RESTORE_SKILLS_FOR_CHAR = "SELECT skill_id,skill_level FROM character_skills WHERE char_obj_id=? AND class_index=?"; private static final String ADD_NEW_SKILL = "INSERT INTO character_skills (char_obj_id,skill_id,skill_level,skill_name,class_index) VALUES (?,?,?,?,?)"; private static final String UPDATE_CHARACTER_SKILL_LEVEL = "UPDATE character_skills SET skill_level=? WHERE skill_id=? AND char_obj_id=? AND class_index=?"; @@ -5150,7 +5167,15 @@ { return false; } + noobdeaths++; + if (noobdeaths == Config.HOW_MANY_DEATHS_FOR_NOOB) + { + sendMessage("You gain Noob status,you can press .noob for more informations"); + setNoob(true); + noobdeaths = 0; + } + if (killer != null) { L2PcInstance pk = null; Index: java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Noob.java =================================================================== --- java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Noob.java (revision 0) +++ java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Noob.java (revision 0) @@ -0,0 +1,60 @@ +/* + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see <http://www.gnu.org/licenses/>. + */ +package net.sf.l2j.gameserver.handler.voicedcommandhandlers; + +import net.sf.l2j.Config; +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.util.Rnd; + +/** + * @author fanky + * + */ +public class Noob implements IVoicedCommandHandler +{ + + + private static final String[] VOICED_COMMANDS = { "noob" }; + + @Override + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } + + @Override + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if(command.equalsIgnoreCase("noob")) + { + if (activeChar.isNoob()) + { + + int[][] items = { {Config.ITEM_ID_1, Config.ITEM_A-beep-T_1}, {Config.ITEM_ID_2, Config.ITEM_A-beep-T_2}, { Config.ITEM_ID_3, Config.ITEM_A-beep-T_3}, { Config.ITEM_ID_4, Config.ITEM_A-beep-T_4}, { Config.ITEM_ID_5, Config.ITEM_A-beep-T_5} }; + int[] ar = items[Rnd.get(5)]; + activeChar.addItem(command, ar[0], ar[1], activeChar, true); + activeChar.sendMessage("You've recieved a random gift from server in order to help you"); + activeChar.setNoob(false); + } + else + { + activeChar.sendMessage("You can't use this command because you are not noob!"); + return false; + } + } + + return false; + } + +} Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 5603) +++ java/net/sf/l2j/Config.java (working copy) @@ -882,6 +882,19 @@ public static boolean L2JMOD_WEDDING_SAMESEX; public static boolean L2JMOD_WEDDING_FORMALWEAR; public static int L2JMOD_WEDDING_DIVORCE_COSTS; + + // noob system + public static int HOW_MANY_DEATHS_FOR_NOOB; + public static int ITEM_ID_1; + public static int ITEM_ID_2; + public static int ITEM_ID_3; + public static int ITEM_ID_4; + public static int ITEM_ID_5; + public static int ITEM_A-beep-T_1; + public static int ITEM_A-beep-T_2; + public static int ITEM_A-beep-T_3; + public static int ITEM_A-beep-T_4; + public static int ITEM_A-beep-T_5; // Packet information /** Count the a-beep-t of packets per minute ? */ @@ -1859,7 +1872,20 @@ L2JMOD_WEDDING_SAMESEX = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False")); L2JMOD_WEDDING_FORMALWEAR = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True")); L2JMOD_WEDDING_DIVORCE_COSTS = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20")); - + + //noob system + HOW_MANY_DEATHS_FOR_NOOB = Integer.parseInt(L2JModSettings.getProperty("HowManyDeaths","12")); + ITEM_ID_1 = Integer.parseInt(L2JModSettings.getProperty("RandomItemId1","10")); + ITEM_ID_2 = Integer.parseInt(L2JModSettings.getProperty("RandomItemId2","11")); + ITEM_ID_3 = Integer.parseInt(L2JModSettings.getProperty("RandomItemId3","12")); + ITEM_ID_4 = Integer.parseInt(L2JModSettings.getProperty("RandomItemId4","13")); + ITEM_ID_5 = Integer.parseInt(L2JModSettings.getProperty("RandomItemId5","14")); + ITEM_A-beep-T_1 = Integer.parseInt(L2JModSettings.getProperty("RandomItemA-beep-t1","1")); + ITEM_A-beep-T_2 = Integer.parseInt(L2JModSettings.getProperty("RandomItemA-beep-t2","1")); + ITEM_A-beep-T_3 = Integer.parseInt(L2JModSettings.getProperty("RandomItemA-beep-t3","1")); + ITEM_A-beep-T_4 = Integer.parseInt(L2JModSettings.getProperty("RandomItemA-beep-t4","1")); + ITEM_A-beep-T_5 = Integer.parseInt(L2JModSettings.getProperty("RandomItemA-beep-t5","1")); + if (TVT_EVENT_PARTICIPATION_NPC_ID == 0) { TVT_EVENT_ENABLED = false; Index: java/config/l2jmods.properties =================================================================== --- java/config/l2jmods.properties (revision 5603) +++ java/config/l2jmods.properties (working copy) @@ -132,3 +132,27 @@ # ex.: 1;2;3;4;5;6 # no ";" at the start or end TvTEventDoorsCloseOpenOnStartEnd = + + + +#--------------------------------------------------------------- +# Noob system by fanky - +#--------------------------------------------------------------- +# In order to be noob a char has to die X times in a row +# When he 'achieved'(lol) to die X times in a row he 'll be able to press +# .noob,after that server will give him a gift(random item between five(5) items) and remove his noob status +# How many deaths in a row in order to be noob? +# by default 12 +HowManyDeaths = 12 +# IDs of random items which will be given as gift +RandomItemId1 = 10 +RandomItemId2 = 11 +RandomItemId3 = 12 +RandomItemId4 = 13 +RandomItemId5 = 14 +# A-beep-ts of random items which will be given as gift +RandomItemA-beep-t1 = 1 +RandomItemA-beep-t2 = 1 +RandomItemA-beep-t3 = 1 +RandomItemA-beep-t4 = 1 +RandomItemA-beep-t5 = 1 \ No newline at end of file kkthnxbb
-
[problem] Problem on build workspace on Eclipse
Fanky replied to Rzeszut's question in Request Server Development Help [L2J]
Hi. try to re-post this again in english dude,then we'll be able to help you.