-
Posts
3,875 -
Joined
-
Last visited
-
Days Won
28 -
Feedback
100%
Content Type
Articles
Profiles
Forums
Store
Everything posted by 'Baggos'
-
Code [Share]Get Class Items With Commands.
'Baggos' replied to 'Baggos''s topic in Server Shares & Files [L2J]
/* * 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 com.l2jfrozen.gameserver.handler; import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.network.serverpackets.ItemList; public class ClassItems implements IVoicedCommandHandler { private static String[] _voicedCommands = { "daggeritems", "bowitems", "tankitems", "mageitems" }; /** * @see com.l2jfrozen.gameserver.handler.IVoicedCommandHandler(java.lang.String, * com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */ @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("Sorry,you are in the Olympiad now."); return false; } else if(activeChar.isInDuel()) { activeChar.sendMessage("Sorry,you are in a duel!"); return false; } else if(activeChar.atEvent) { activeChar.sendMessage("Sorry,you are on event now."); return false; } else if(!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_GK && activeChar.getKarma() > 0) { activeChar.sendMessage("Sorry,PK player can't use this."); return false; } else if(activeChar.isDead()) { activeChar.sendMessage("Sorry,Dead player can't take items."); return false; } else if(activeChar.isFakeDeath()) { activeChar.sendMessage("Sorry,on fake death mode can't use this."); return false; } if(command.equalsIgnoreCase("daggeritems")) { if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.FIGHTER_ITEMS_PRICE) { activeChar.getInventory().reduceAdena("Adena", Config.FIGHTER_ITEMS_PRICE, activeChar, null); activeChar.getInventory().addItem("Angel Slayer", 6367, 1, activeChar, activeChar); activeChar.getInventory().addItem("Dragonic Light", 6379, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Dragonic Boots", 6380, 1, activeChar, activeChar); activeChar.getInventory().addItem("Dragonic Gloves", 6381, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Dragonic Helmet", 6382, 1, activeChar, activeChar); activeChar.getInventory().addItem("TEO Necklace", 920, 1, activeChar, activeChar ); activeChar.getInventory().addItem("TEO Earring", 858, 2, activeChar, activeChar); activeChar.getInventory().addItem("TEO Ring", 889, 2, activeChar, activeChar ); activeChar.sendMessage("Now You Have Dagger Items On Your Invetory. Take a Look!."); } if(command.equalsIgnoreCase("bowitems")) { if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.FIGHTER_ITEMS_PRICE) { activeChar.getInventory().reduceAdena("Adena", Config.FIGHTER_ITEMS_PRICE, activeChar, null); activeChar.getInventory().addItem("Draconic Bow", 7577, 1, activeChar, activeChar); activeChar.getInventory().addItem("Draconic Light", 6379, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Draconic Boots", 6380, 1, activeChar, activeChar); activeChar.getInventory().addItem("Draconic Gloves", 6381, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Draconic Helmet", 6382, 1, activeChar, activeChar); activeChar.getInventory().addItem("TEO Necklace", 920, 1, activeChar, activeChar ); activeChar.getInventory().addItem("TEO Earring", 858, 2, activeChar, activeChar); activeChar.getInventory().addItem("TEO Ring", 889, 2, activeChar, activeChar ); activeChar.sendMessage("Now You Have Bow Items On Your Invetory. Take a Look!."); } if(command.equalsIgnoreCase("tankitems")) { if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.FIGHTER_ITEMS_PRICE) { activeChar.getInventory().reduceAdena("Adena", Config.FIGHTER_ITEMS_PRICE, activeChar, null); activeChar.getInventory().addItem("Forgotten Blade", 6582, 1, activeChar, activeChar); activeChar.getInventory().addItem("Imperial Armor", 6373, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Imperial ArmorP2", 6374, 1, activeChar, activeChar); activeChar.getInventory().addItem("Imperial Gloves", 6375, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Imperial Boots", 6376, 1, activeChar, activeChar); activeChar.getInventory().addItem("Imperial Helmet", 6378, 1, activeChar, activeChar ); activeChar.getInventory().addItem("TEO Necklace", 920, 1, activeChar, activeChar); activeChar.getInventory().addItem("TEO Earring", 858, 2, activeChar, activeChar); activeChar.getInventory().addItem("TEO Ring", 889, 2, activeChar, activeChar ); activeChar.sendMessage("Now You Have Tank Items On Your Invetory. Take a Look!."); } else if(command.equalsIgnoreCase("mageitems")) { if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.MAGE_ITEMS_PRICE) { activeChar.getInventory().destroyItemByItemId("Adena", 57, Config.MAGE_ITEMS_PRICE, activeChar, null); activeChar.getInventory().addItem("Arcana Mace Acumen", 6608, 1, activeChar, activeChar); activeChar.getInventory().addItem("DC Robe", 2407, 1, activeChar, activeChar ); activeChar.getInventory().addItem("DC Gloves", 5767, 1, activeChar, activeChar); activeChar.getInventory().addItem("DC Boots", 5779, 1, activeChar, activeChar ); activeChar.getInventory().addItem("DC Helmet", 512, 1, activeChar, activeChar); activeChar.getInventory().addItem("TEO Necklace", 920, 1, activeChar, activeChar ); activeChar.getInventory().addItem("TEO Earring", 858, 2, activeChar, activeChar); activeChar.getInventory().addItem("TEO Ring", 889, 2, activeChar, activeChar ); activeChar.sendMessage("Now You Have Mage Items On Your Invetory. Take a Look!"); /** * @see com.l2jfrozen.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() */ @Override public String[] getVoicedCommandList() { return _voicedCommands; } } It's work and if all this is in end of code. -
Code [Share]Get Class Items With Commands.
'Baggos' replied to 'Baggos''s topic in Server Shares & Files [L2J]
But is work my friend. Maybe you say this.. /* * 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 com.l2jfrozen.gameserver.handler; import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.network.serverpackets.ItemList; public class ClassItems implements IVoicedCommandHandler { private static String[] _voicedCommands = { "daggeritems", "bowitems", "tankitems", "mageitems" }; /** * @see com.l2jfrozen.gameserver.handler.IVoicedCommandHandler(java.lang.String, * com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance, java.lang.String) */ @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if(command.equalsIgnoreCase("daggeritems")) { if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.FIGHTER_ITEMS_PRICE) { activeChar.getInventory().reduceAdena("Adena", Config.FIGHTER_ITEMS_PRICE, activeChar, null); activeChar.getInventory().addItem("Angel Slayer", 6367, 1, activeChar, activeChar); activeChar.getInventory().addItem("Dragonic Light", 6379, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Dragonic Boots", 6380, 1, activeChar, activeChar); activeChar.getInventory().addItem("Dragonic Gloves", 6381, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Dragonic Helmet", 6382, 1, activeChar, activeChar); activeChar.getInventory().addItem("TEO Necklace", 920, 1, activeChar, activeChar ); activeChar.getInventory().addItem("TEO Earring", 858, 2, activeChar, activeChar); activeChar.getInventory().addItem("TEO Ring", 889, 2, activeChar, activeChar ); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(new ItemList(activeChar, true)); activeChar.sendMessage("Now You Have Dagger Items On Your Invetory. Take a Look!."); } if(command.equalsIgnoreCase("bowitems")) { if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.FIGHTER_ITEMS_PRICE) { activeChar.getInventory().reduceAdena("Adena", Config.FIGHTER_ITEMS_PRICE, activeChar, null); activeChar.getInventory().addItem("Draconic Bow", 7577, 1, activeChar, activeChar); activeChar.getInventory().addItem("Draconic Light", 6379, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Draconic Boots", 6380, 1, activeChar, activeChar); activeChar.getInventory().addItem("Draconic Gloves", 6381, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Draconic Helmet", 6382, 1, activeChar, activeChar); activeChar.getInventory().addItem("TEO Necklace", 920, 1, activeChar, activeChar ); activeChar.getInventory().addItem("TEO Earring", 858, 2, activeChar, activeChar); activeChar.getInventory().addItem("TEO Ring", 889, 2, activeChar, activeChar ); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(new ItemList(activeChar, true)); activeChar.sendMessage("Now You Have Bow Items On Your Invetory. Take a Look!."); } if(command.equalsIgnoreCase("tankitems")) { if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.FIGHTER_ITEMS_PRICE) { activeChar.getInventory().reduceAdena("Adena", Config.FIGHTER_ITEMS_PRICE, activeChar, null); activeChar.getInventory().addItem("Forgotten Blade", 6582, 1, activeChar, activeChar); activeChar.getInventory().addItem("Imperial Armor", 6373, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Imperial ArmorP2", 6374, 1, activeChar, activeChar); activeChar.getInventory().addItem("Imperial Gloves", 6375, 1, activeChar, activeChar ); activeChar.getInventory().addItem("Imperial Boots", 6376, 1, activeChar, activeChar); activeChar.getInventory().addItem("Imperial Helmet", 6378, 1, activeChar, activeChar ); activeChar.getInventory().addItem("TEO Necklace", 920, 1, activeChar, activeChar); activeChar.getInventory().addItem("TEO Earring", 858, 2, activeChar, activeChar); activeChar.getInventory().addItem("TEO Ring", 889, 2, activeChar, activeChar ); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(new ItemList(activeChar, true)); activeChar.sendMessage("Now You Have Tank Items On Your Invetory. Take a Look!."); } if(command.equalsIgnoreCase("mageitems")) { if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.MAGE_ITEMS_PRICE) { activeChar.getInventory().destroyItemByItemId("Adena", 57, Config.MAGE_ITEMS_PRICE, activeChar, null); activeChar.getInventory().addItem("Arcana Mace Acumen", 6608, 1, activeChar, activeChar); activeChar.getInventory().addItem("DC Robe", 2407, 1, activeChar, activeChar ); activeChar.getInventory().addItem("DC Gloves", 5767, 1, activeChar, activeChar); activeChar.getInventory().addItem("DC Boots", 5779, 1, activeChar, activeChar ); activeChar.getInventory().addItem("DC Helmet", 512, 1, activeChar, activeChar); activeChar.getInventory().addItem("TEO Necklace", 920, 1, activeChar, activeChar ); activeChar.getInventory().addItem("TEO Earring", 858, 2, activeChar, activeChar); activeChar.getInventory().addItem("TEO Ring", 889, 2, activeChar, activeChar ); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(new ItemList(activeChar, true)); activeChar.sendMessage("Now You Have Mage Items On Your Invetory. Take a Look!"); activeChar.sendMessage("You do not have enough Adena"); } if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("Sorry,you are in the Olympiad now."); return false; } if(activeChar.isInDuel()) { activeChar.sendMessage("Sorry,you are in a duel!"); return false; } if(activeChar.atEvent) { activeChar.sendMessage("Sorry,you are on event now."); return false; } if(!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_GK && activeChar.getKarma() > 0) { activeChar.sendMessage("Sorry,PK player can't use this."); return false; } if(activeChar.isDead()) { activeChar.sendMessage("Sorry,Dead player can't take items."); return false; } if(activeChar.isFakeDeath()) { activeChar.sendMessage("Sorry,on fake death mode can't use this."); return false; } /** * @see com.l2jfrozen.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() */ @Override public String[] getVoicedCommandList() { return _voicedCommands; } } -
Code [Share]Get Class Items With Commands.
'Baggos' replied to 'Baggos''s topic in Server Shares & Files [L2J]
And 100000 time to be shared the credits is MINE from the past. (2012). 2st, this code worked on Original L2Network project perfect. Work to me before share. and 3st, what is reput? reput is for kids. i share for help no for "reput". I come back here on maxcheaters and i want to remmember all that i know. This code give items with commands. If you start a new player, you need to go in main town/Gm Shop and will buy this items. why you consider useless this topic? in one second you have all items you want for start your farm. mage or fighter or tank or bow, and jewels. If is not work to you give me your error here... Sorry for my english... -
Hello members of Maxcheaters! In this code, an player can to take items with command. On config you can change the price. Tested and work! Credits me. For other Project: Get Class Items With Commands. Commands: .dagger / .bow / .tank / .mage / .tyrant / .gladi For aCis Project: Get Class Items With Commands. Commands: /dagger /bow /tank /mage /tyrant /gladi Config.java public static int STARTING_ADENA; public static int STARTING_ADENA; public static int STARTING_AA; //Class Itmes On new Players\\ + public static boolean CLASS_ITEMS_ENABLE; + public static int COMMANDS_ITEMS_PRICE; STARTING_ADENA = Integer.parseInt(otherSettings.getProperty("StartingAdena", "100")); STARTING_AA = Integer.parseInt(otherSettings.getProperty("StartingAncientAdena", "0")); + CLASS_ITEMS_ENABLE = Boolean.parseBoolean(otherSettings.getProperty("ClassItemsCmd", "false")); + COMMANDS_ITEMS_PRICE = Integer.parseInt(otherSettings.getProperty("FighterItemsPirce", "50000000")); Config.properties #Amount of adena/AA that a new character is given StartingAdena = 0 StartingAncientAdena = 0 + +#------------------------------------------------------------------ +# Class Items. +# .dagger / .bow / .tank / .duelist / .tyrant .mage +#------------------------------------------------------------------ +ClassItemsCmd = false +# +CommandsItemsPirce = 50000000 + handler/VoicedCommandHandler.java [for other project] import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Wedding; +import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.ClassItem; private VoicedCommandHandler() { _datatable = new FastMap<>(); + + if(Config.CLASS_ITEMS_ENABLE) + { + registerVoicedCommandHandler(new ClassItems()); + } handler/VoicedCommandHandler.java [for aCis project] import net.sf.l2j.gameserver.handler.usercommandhandlers.Escape; +import net.sf.l2j.gameserver.handler.usercommandhandlers.ClassItems; registerUserCommandHandler(new ChannelListUpdate()); + if(Config.CLASS_ITEMS_ENABLE) + { + registerUserCommandHandler(new ClassItems()); + } http://pastebin.com/6tBdUDE3 for other project http://pastebin.com/qezRiTQr for acis project Also, for acis project, you have to edit the client file, commandname-e.dat - and add 6 new rows, for example: 115 114 dagger 116 115 bow 117 116 tank 118 117 mage 119 118 tyrant 120 119 gladi
-
Το θέμα είναι να υπάρχει στα Ελληνικά καθαρογραμμένα. Δεκάδες τέτοια θέματα υπάρχουν, αλλά τι να τα κάνεις όταν μπερδεύουν το Compile με το πως να ανοίξεις έναν Server στο ίδιο θέμα. Πολλές λέξεις που μπερδεύουν κάποιον που δε ξέρει. Όταν ο άλλος ξέρει να ανοίξει Server, τότε θα κοιτάξει για το πως να περάσει κώδικα ή πως να κάνει Compile. Κανείς δεν άρχισε από το 0 και έκανε τα πάντα από 1 οδηγό και μόνο.
-
Give here the code from the FlagZone and SQL files.
-
Εδώ θα δείξω πως περνάμε έναν κώδικα Java στο Project μας. Να ξέρετε, πως το δύσκολο δεν είναι το πως να περνάμε έναν κώδικα, αλλά το πως θα τον επερξεργαστούμε στην πορεία. Δεν θα είναι όλοι κομμένοι και ραμμένοι στα μέτρα μας! Θα χρειαστεί κάποτε να αντικαταστήσουμε ένα λάθος με το σωστό! Θα δείξω με έναν μεγάλο κάπως κώδικα πως τον περνάμε, γιατί δε θα ήταν οδηγός αν σας έδειχνα με 3 σειρές κώδικα!!! Αρχίζουμε...(Πάτα το "Show" για να δεις τον οδηγό). Δεν είναι κάτι το πολύ δύσκολο να γίνουν τα παρακάτω. Σιγά σιγά καθώς περνάει ο καιρός, θα αρχίσετε να καταλαβαίνεται έναν κώδικα από μόνοι σας! Καλή συνέχεια...
-
Καλησπέρα στα μέλη του Maxcheaters! Στην προσπάθεια να κάνω Compile για να θυμηθώ το όλο θέμα, και αφού το έκανα, μετά πρόσεξα πως υπάρχουν οδηγοί δύσκολοι και με πολλά βήματα! Έτσι σκέφτηκα να ξανά ρίξω έναν οδηγό σαν Update στους παλιούς που είχα και έχουν σβηστεί φώτος. Είναι κρίμα κάτι τόσο σημαντικό, να μένει στα πίσω πίσω ποστς, επειδή δεν είναι καλά τροποποιημένα! (Του papaditsa ναι μεν είναι αναλυτικό, αλλά θέλει πολλά κλικ για να βρεις τα βήματα, αφού τις εικόνες τις έχει να τις κάνεις copy/paste για να τις δεις). Θα προσπαθήσω να δείξω με λιγότερα βήματα, και περισσότερο αναλυτικά έτσι ώστε να καταλάβουν και οι πέτρες! Αρχίζουμε..(Πάτα το "Show" για να δεις τον οδηγό). Στο πως περνάμε έναν κώδικα, θα δείξω με δεύτερο ποστ από κάτω, για να μην κουράζουν όλα σε ένα.
-
Μακάρι να πληρώνανε μόνο 300 ευρώ το χρόνο φίλε. Οι φίλοι που έχω, και όσους ξέρω, δίνουν πολλά περισσότερα για τα χαρτιά, ασφάλεια κτλπ κτλπ κτλπ. (αναφέρομαι σε άτομα εκτός ευρώπης. Π.χ Αλβανοί φίλοι που έχω).
-
Psaxno Enan Empiro Developer Gia Doulia !
'Baggos' replied to CaLeSty's topic in Server Development Discussion [Greek]
χαχαχαχαχαχα... Ναι βρε. Τις εποχές που δεν ήσουν εδώ στο φόρουμ, το σκουπίδι βοηθούσε πάντα δωρεάν χωρίς να ζητήσει κάτι. Και κάποιους τους βοήθησε τόσο που βγάλανε και λεφτά από αυτό. Αλλά έτσι αποκτούσα εμπειρία... Τώρα το να μιλάς εσύ ειδικά για μένα, είναι πολύ κρίμα χωρίς να ξέρεις τι ξέρω από αυτά που εσύ ακόμη προσπαθείς να καταλάβεις καλά καλά.... Η διαφορά με πολλούς εδώ μέσα, είναι ότι το πως ανοίγεις απλά έναν server, τον έμαθα από ένα notepad το 2008. Χωρίς βίντεο και βλακειούλες. Μετά εδώ μέσα βρήκα πλήρες βοήθεια, όπου έμαθα ΠΑΡΑ ΠΟΛΛΑ ακόμη και σε java codes και άνοιγα και εγώ αλλά και σε άλλους Server που έμπαινε το 2012 στους top 5+ στο hopzone. Δεν το λέω σαν επίτευγμα, όμως θέλω να σου δείξω ότι είναι λάθος εσύ να σχολιάζεις "σκουπίδι" εμένα. L2Attack, L2 Network, L2 Nephelim, 350+ άτομα καθημερινά. Ψάξε και θα βρεις τα ονόματα από τους server που λέω. Άσχετα αν τους έκλεινα, επειδή ποτέ δεν ήθελα να κρατήσω Server και έτσι δεν έβαζα Donate και Anti-DDos attack. Τους άνοιγα για να διαφημιστώ και να βγάλω λεφτά από αλλού όπως έβγαλα. Δε το ξέρω το παιδί xdem, δε τον θυμάμαι. Ίσως να μίλησα απότομα, αλλά δε πετάμε το "βλάκα" επειδή κάποιος δε μας γνωρίζει ή δε γνωρίζει την δουλειά που κάνουμε!!! Δεν έκρινα εξαρχής, είπα δε τον ξέρω. -
LF Starting Bar Tutorial Book
'Baggos' replied to Dante44®'s question in Request Server Development Help [Greek]
Πολύ κομπλέ τότε αδερφέ. Καλή συνέχεια ρει... -
Help Buffer Time
'Baggos' replied to Kafros_Gr's question in Request Server Development Help [Greek]
Τώρα αν τα πράγματα είναι αλλιώς, στείλε την Buffer εδώ να την δούμε. (Την Buffer με τα 15 λεπτά buffs, και την άλλη με την κανονική ώρα που θες). -
Help Buffer Time
'Baggos' replied to Kafros_Gr's question in Request Server Development Help [Greek]
Γιατί προφανώς κάποιες Buffer που βρίσκεις, έχει δικό τους Time στα Buffs. Να περνάς την εξωτερική εμφάνιση και τα html μιας Buffer, τίποτα άλλο αφού τα άλλα δουλεύουν όπως τα θες! Και νομίζω πως το frozen έχιε config να βάλεις ότι buff θες στην ώρα που θες. Έτσι δε θα πειράζεται τίποτα κάθε φορά που το αλλάζεις. Τον φάκελο skills που βρίσκεις από Buffers που κατεβάζεις, μη το περνάς αφού η ώρα είναι οκ από την προηγούμενη! -
LF Starting Bar Tutorial Book
'Baggos' replied to Dante44®'s question in Request Server Development Help [Greek]
Τίποτα φίλε. Τελικά όντως δεν χρειάστεικε αλλαγή στο initialEquipment.xml? Γιατί μου φαίνεται παράξενο να ήρθε ένα ίτεμ χωρίς να το δώσουμε στο invetory.. (ή το άλλαξες στα τυχόν config που έχεις για starting items)? -
LF Starting Bar Tutorial Book
'Baggos' replied to Dante44®'s question in Request Server Development Help [Greek]
Ίσως να δουλεύει όπως το κάνεις, αλλά στα παρακάτω το αλλάζεις για να μπει το ιτεμ στον παίχτη που σου είπα πιο πάνω αρχικά? Το ίδιο και σε όλα τα υπόλοιπα class. <!-- Human Fighter --> <equipment classId="0"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> Για να τα πάρουμε από την αρχή κάνε τα παρακάτω και δεν βρίσκω λόγο να μην δουλέψει. Άμα δε του το δώσεις στο Invetory, δε θα το έχει ούτε στη μπάρα φίλε. Γι'αυτό χθες σου έδωσα το equipment.xml - if (item.getId() == 5588) - { - shortcut = new L2ShortCut(11, 0, 1, item.getObjectId(), 0, 1); - newChar.registerShortCut(shortcut); - } + if (item.getItemId() == βάλε ID) + { + newChar.registerShortCut(new L2ShortCut(11, 0, 1, item.getObjectId(), -1, 1)); + } game/ data/ stats/ initialEquipment.xml <!-- Human Fighter --> <equipment classId="0"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Human Mystic --> <equipment classId="10"> <item id="6" count="1" equipped="true" /> <!-- Apprentice's Wand --> <item id="425" count="1" equipped="true" /> <!-- Apprentice's Tunic --> <item id="461" count="1" equipped="true" /> <!-- Apprentice's Stockings --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Elven Fighter --> <equipment classId="18"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Elven Mystic --> <equipment classId="25"> <item id="6" count="1" equipped="true" /> <!-- Apprentice's Wand --> <item id="425" count="1" equipped="true" /> <!-- Apprentice's Tunic --> <item id="461" count="1" equipped="true" /> <!-- Apprentice's Stockings --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Dark Fighter --> <equipment classId="31"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Dark Mystic --> <equipment classId="38"> <item id="6" count="1" equipped="true" /> <!-- Apprentice's Wand --> <item id="425" count="1" equipped="true" /> <!-- Apprentice's Tunic --> <item id="461" count="1" equipped="true" /> <!-- Apprentice's Stockings --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Orc Fighter --> <equipment classId="44"> <item id="2369" count="1" /> <!-- Squire's Sword --> <item id="2368" count="1" equipped="true" /> <!-- Training Gloves --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Orc Mystic --> <!-- NOTE: This is orc_mage (orc_shaman is retail typo) --> <equipment classId="49"> <item id="2368" count="1" equipped="true" /> <!-- Training Gloves --> <item id="425" count="1" equipped="true" /> <!-- Apprentice's Tunic --> <item id="461" count="1" equipped="true" /> <!-- Apprentice's Stockings --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Dwarf Fighter --> <equipment classId="53"> <item id="2370" count="1" equipped="true" /> <!-- Guild Member's Club --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Male Kamael Soldier --> <equipment classId="123"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Female Kamael Soldier --> <equipment classId="124"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="βάλε ID" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> -
LF Starting Bar Tutorial Book
'Baggos' replied to Dante44®'s question in Request Server Development Help [Greek]
-if (item.getId() == 5588) Υπάρχει ήδη πιο πάνω γι'αυτό και το έστειλα έτσι. Όμως το πρόβλημα είναι ότι του βγάζει κενό στη μπάρα σαν να μην όρισε ιτεμ. - { - shortcut = new L2ShortCut(11, 0, 1, item.getObjectId(), 0, 1); - newChar.registerShortCut(shortcut); - } + if (item.getItemId() == 5588) + { + newChar.registerShortCut(new L2ShortCut(11, 0, 1, item.getObjectId(), -1, 1)); + } Για άλλαξε τώρα απλά το 5588. Δε μπορώ να καταλάβω κάτι άλλο.. Δεν έχω αλλάξει ξανά το bar, όμως όπως το διαβάζω θα πρέπει να δουλέψει. Μόνο αντικατάσταση κάνεις. Δεν χρειάζεται να περάσεις κάτι άλλο κάπου αλλού, εκτός και αν το ιτεμ που θες είναι Custom Item, εκεί υπάρχει αλλού άλλα να αλλάξεις μετά από αυτά. Αλλά αν στο invetory το βλέπεις κανονικά, τι να σου πω... -
LF Starting Bar Tutorial Book
'Baggos' replied to Dante44®'s question in Request Server Development Help [Greek]
Δοκίμασε μία έτσι, αν όχι τότε το παρακάτω. Διαφορετικά, θα βγάζει ερρορ αν έχει πρόβλημα, στείλε μου φώτο το ερρορ. - shortcut = new L2ShortCut(11, 0, 1, item.getObjectId(), 0, 1); - newChar.registerShortCut(shortcut); +newChar.registerShortCut(new L2ShortCut(11,0,1,εδώ για βάλε το id από το ιτεμ,-1,1)); Αντικατέστισε αυτά που γράφω με το item id. ή κάνε αυτό, σε αυτό που που έστειλες... -shortcut = new L2ShortCut(11, 0, 1, item.getObjectId(), 0, 1); +shortcut = new L2ShortCut(11, 0, 1, βάλε το id από το ίτεμ που θες, -1, 1); Δοκίμασε μία και πες μου, αλλιώς στείλε μου τα source που σου ζήτησα. -
LF Starting Bar Tutorial Book
'Baggos' replied to Dante44®'s question in Request Server Development Help [Greek]
Μπορείς να μου στείλεις σε ΠΜ, ένα παλιό ή ότι να'ναι Interlude source για να μπω στο CreateCharacter.java να βρω τις σειρές που θέλω? Δεν έχω ούτε Eclipse ούτε τίποτα πλέον στο pc. edit: Θέλω να ανεβάσεις μόνο τα java του, τίποτα άλλο αν μπορείς. -
Help Queen Ant Problem - L2Jfrozen
'Baggos' replied to szawex's question in Request Server Development Help [L2J]
You can make a custom zone for this level you say. 40-53 level can to go in this area. -
Ακριβώς! Ο κάθε ένας τώρα θα σου αρχίσει να ρίχνει τα δικά του που είτε δε θα στέκουν για σένα, είτε δε θα σου αρέσουν! Πήγαινε στους Private Server και δες τι παίζει, δες τι τραβάει τον κόσμο, και θα σου έρθουνε φλασιές μόνες τους. Επίσης, τα custom items, αν δεν μπορείς να δουλέψεις το Balance μόνος σου μη τα βάλεις ούτε για πλάκα. Και το +10% περισσότερα στατς, το χαλάνε.
-
Psaxno Enan Empiro Developer Gia Doulia !
'Baggos' replied to CaLeSty's topic in Server Development Discussion [Greek]
Μια χαρά κάθομαι. Φτιάχνε κανένα code με 2 σειρές για 65 ευρώ εσύ (αν είναι και δικός σου), και σήκωνε τον πήχη επειδή οι πιο άσχετοι από σένα σε παινεύουν. Όλα τα 13αχρονα πλέον την είδαν μεγαλοφυής με το maxcheater. Που θα με πεις και "βλάκα"... -
Psaxno Enan Empiro Developer Gia Doulia !
'Baggos' replied to CaLeSty's topic in Server Development Discussion [Greek]
Δε τον φτάνει κανένας? χαλάρωσε ρει! Ούτε που γνωρίζω το όνομά του και έμπαινα καθημερινά μέχρι το 2012. Πότε άρχισε αυτός? -
LF Starting Bar Tutorial Book
'Baggos' replied to Dante44®'s question in Request Server Development Help [Greek]
Καλύτερα όμως θα ήταν σε config να μην μπερδεύεσαι τόσο κάθε φορά.. θα προσπαθήσω να κάνω ένα αλλά δε σε εγγυόμαι ότι θα δουλέψει 100%. Έχω πάνω από 2 χρόνια να ασχοληθώ με αυτό. Λίγα θυμάμαι. Πήγαινε στο config.Java Βρες το public static boolean ANNOUNCE_CASTLE_LORDS; + +/**Custom Stating Item**// +public static boolean STARTING_ITEMS = false; +public static int STARTING_ITEMS_ID; +public static long STARTING_ITEMS_COUNT; + + +STARTING_ITEMS = Boolean.parseBoolean(otherSettings.getProperty("StartingItems", "False")); +STARTING_ITEMS_ID = Integer.parseInt(otherSettings.getProperty("StartingItemId", "5588")); +STARTING_ITEMS_COUNT = Long.parseLong(otherSettings.getProperty("StartingItemCount", "1")); + STARTING_ADENA = Integer.parseInt(otherSettings.getProperty("StartingAdena", "100")); μετά πήγαινε CharacterCreate.java Βρες αυτό που έδειξες πριν newChar.getInventory().equipItem(item); } + +if (Config.STARTING_ITEMS) +{ + newChar.addItem("Init", Config.STARTING_ITEMS_ID, (int) Config.STARTING_ITEMS_COUNT, null, false); +} μετά πήγαινε σε other.properties στο τέλος του +#Custom Starting Items +StartingItems = false +StartingItemId = 5588 +StartingItemCount = 1 Άνοιξα ένα svn του frozen χωρίς eclipse και το ψαξα, δε ξέρω κατά πόσο θα δουλέψει. -
LF Starting Bar Tutorial Book
'Baggos' replied to Dante44®'s question in Request Server Development Help [Greek]
Μόνο αυτός είναι ο κώδικας? Πιο ίτεμ είναι το 5588? edit: Τώρα κατάλαβα καλύτερα την ερώτησή σου. Άκου, πήγαινε στο Eclipse, game/ data/ stats/ initialEquipment.xml Κάνε το edit και βάλε: Όπου: κόκκινο, αλλάζεις και βάζεις αυτό που θες. <!-- Human Fighter --> <equipment classId="0"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Human Fighter --> <equipment classId="0"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Human Mystic --> <equipment classId="10"> <item id="6" count="1" equipped="true" /> <!-- Apprentice's Wand --> <item id="425" count="1" equipped="true" /> <!-- Apprentice's Tunic --> <item id="461" count="1" equipped="true" /> <!-- Apprentice's Stockings --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Elven Fighter --> <equipment classId="18"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Elven Mystic --> <equipment classId="25"> <item id="6" count="1" equipped="true" /> <!-- Apprentice's Wand --> <item id="425" count="1" equipped="true" /> <!-- Apprentice's Tunic --> <item id="461" count="1" equipped="true" /> <!-- Apprentice's Stockings --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Dark Fighter --> <equipment classId="31"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Dark Mystic --> <equipment classId="38"> <item id="6" count="1" equipped="true" /> <!-- Apprentice's Wand --> <item id="425" count="1" equipped="true" /> <!-- Apprentice's Tunic --> <item id="461" count="1" equipped="true" /> <!-- Apprentice's Stockings --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Orc Fighter --> <equipment classId="44"> <item id="2369" count="1" /> <!-- Squire's Sword --> <item id="2368" count="1" equipped="true" /> <!-- Training Gloves --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Orc Mystic --> <!-- NOTE: This is orc_mage (orc_shaman is retail typo) --> <equipment classId="49"> <item id="2368" count="1" equipped="true" /> <!-- Training Gloves --> <item id="425" count="1" equipped="true" /> <!-- Apprentice's Tunic --> <item id="461" count="1" equipped="true" /> <!-- Apprentice's Stockings --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Dwarf Fighter --> <equipment classId="53"> <item id="2370" count="1" equipped="true" /> <!-- Guild Member's Club --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Male Kamael Soldier --> <equipment classId="123"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> <!-- Female Kamael Soldier --> <equipment classId="124"> <item id="2369" count="1" equipped="true" /> <!-- Squire's Sword --> <item id="10" count="1" /> <!-- Dagger --> <item id="1146" count="1" equipped="true" /> <!-- Squire's Shirt --> <item id="1147" count="1" equipped="true" /> <!-- Squire's Pants --> <item id="5588" count="1" /> <!-- Tutorial Guide --> <item id="10650" count="5" /> <!-- Adventurer's Scroll of Escape --> <item id="32226" count="10" /> </equipment> -
Help Help Paidia Anagkh
'Baggos' replied to tzem's question in Request Server Development Help [Greek]
Ξανά κάνε Install την database και αν πάλι τα ίδια, πήγαινε στην database και φτιάξε με copy/paste ένα δικό σου sql αρχείο και απλά βαλε όνομα Password για να τρέξει και αυτό. ή το πιο πάνω που είπε ο Dante44 αλλά αν δεν υπάρχει το αρχείο, κάνε αυτό που σου είπα. ΥΓ: Κάνοντας δικό σου sql file, μόλις κάνεις install την database, αυτόματα ανοίγει νέο table εκεί που πρέπει στο Navicat και θα διαβαστεί μόλις ανοίξεις τον Server.
