valanths1990
Members-
Posts
517 -
Credits
0 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by valanths1990
-
[help]hi5 l2jserver grand boss prob
valanths1990 replied to ariss100's question in Request Server Development Help [Greek]
ti douleia exei to config, phgaine sthn database vres to id apo to grandboss kai kado spawm me to id oxi me to name -
[help]hi5 l2jserver grand boss prob
valanths1990 replied to ariss100's question in Request Server Development Help [Greek]
eisai sigouros oti kaneis spawn to to id pou exei l2grandboss?, gt an grapseis sto game //spawn valakas to pio pi8ano einai na sou kanei spawn ena npc kai to swsto grandboss -
[help]hi5 l2jserver grand boss prob
valanths1990 replied to ariss100's question in Request Server Development Help [Greek]
prepei na anoikseis thn database sto table npc, exei ena field pou legete type, an allakseis to L2Npc se L2Monster to kaneis mob, alla to 8ema einai pws peirakses kati kai sta ekane ola skata -
[HELP]Den mporw na kanw ton server m online.
valanths1990 replied to HliasNewDev's question in Request Server Development Help [Greek]
to 9014 den xreiazetai, einai local -
[help]Please Help Me.!
valanths1990 replied to serreosss1996's question in Request Server Development Help [Greek]
sto eclipse vres to arxeio SpawnTable mesa sto datatable, des ti querry trexei, kai des an exeis ola ta fields swsta sthn database, to queery 8a einai kapws etsi: PreparedStatement statement = con.prepareStatement("SELECT count, npc_templateid, locx, locy, locz, heading, respawn_delay, loc_id, periodOfDay FROM spawnlist"); PS. h java den kanei pote la8os xD -
[HELP] κρυπτογράφηση
valanths1990 replied to valanths1990's question in Request Server Development Help [Greek]
fovos ty gia to reply sou, alla den ennoousa afto, px kanw ena project kai to kanw compile, yparxoun programmata pou kanoun decompile, kai etsi mporei kapoios na parei to source apo to compile pack, ena tetoio programma einai to DJ java decompiler, egw den 8elw na sumvei kati tetoio, 8elw sto decompile na ta kanei ola skata na mhn vgazei nohma aftos pou 8a kanei to decompile. -
[HELP] κρυπτογράφηση
valanths1990 replied to valanths1990's question in Request Server Development Help [Greek]
efxaristw gia to reply! -
[HELP] κρυπτογράφηση
valanths1990 replied to valanths1990's question in Request Server Development Help [Greek]
ginete file mou to exw dei...:/ -
[help]pos kanw auto drop ?
valanths1990 replied to Sutra's question in Request Server Development Help [Greek]
AltSettings Properties, mesa sto head, prwth epilogh -
[HELP] ME ANNOUNCEMENTS PLEASE
valanths1990 replied to StinkyMadness's question in Request Server Development Help [Greek]
apo to kino event einai afto? -
[HELP] ME ANNOUNCEMENTS PLEASE
valanths1990 replied to StinkyMadness's question in Request Server Development Help [Greek]
re file an den doume ton kodika pws 8a sou poume ti na kaneis -
8a h8ela na mou pei an gnwrizei kapoios, pws ginete na kriptofrafisoume to compile apo ena pack, wste an dokimasei na paei kapoios na to kanei decompile, na ta vgazei ola mperdemena ti ennow? ena paradeigma px exoume mia klasi: public class eventBase { } ktl ktl kai kanoume compile to pack, an paei kapoios na to kanei decompile na tou vgazei oti nanai px to public class eventBase na to grafei to papaki paei sthn potamia :P
-
[help]pos kanw auto drop ?
valanths1990 replied to Sutra's question in Request Server Development Help [Greek]
se ti pack? -
[help]NoNameItem help kapoios
valanths1990 replied to Sutra's question in Request Server Development Help [Greek]
nomizw prepei na ta valeis sto armorgrp.dat, alla den eimai sigouros -
[Help]Ports/No-IP
valanths1990 replied to Devilfenix's question in Request Server Development Help [Greek]
to InternalHostname einai h ip kai kala tou pc den exei kamia sxesh me tous players pou 8a sunde8oun apo allo pc -
[Help]Ports/No-IP
valanths1990 replied to Devilfenix's question in Request Server Development Help [Greek]
to 8ema einai na ta epistrepei to firewall, kai an exeis adivirus me firewall na ta epitrepseis kai ekei, na valeis ena rule -
[Help]Ports/No-IP
valanths1990 replied to Devilfenix's question in Request Server Development Help [Greek]
eisai sigouros pws anoikses swsta ta ports? diladi an trexeis ton server kai mpeis na deis se kapoio site an einai anoixta, sta deixnei anoixtA? -
replace this: html.setFile("data/html/report.htm"); with this: html.setFile(activeChar.getHtmlPrefix(), "data/html/report.htm");
-
oxi akrivws ennow sta xml me ta items, sto ka8e pvp item 8a prepei na valeis afto: an exeis L2jServer H5: <set name="element_enabled" val="true" /> etsi 8a mporeis na valeis stones sto weapon h sto armor part antistoixa na kai ena paradeigma gia na katalaveis prin: <item id="10800" type="Armor" name="Draconic Leather Armor {PvP}"> <set name="icon" val="icon.armor_t89_ul_i00" /> <set name="default_action" val="equip" /> <set name="armor_type" val="light" /> <set name="bodypart" val="onepiece" /> <set name="immediate_effect" val="1" /> <set name="crystal_count" val="748" /> <set name="crystal_type" val="s" /> <set name="material" val="leather" /> <set name="weight" val="4950" /> <set name="price" val="15577000" /> <set name="enchant_enabled" val="1" /> <for> <add order="0x10" stat="pDef" val="249" /> <enchant order="0x0C" stat="pDef" val="0" /> </for> </item> meta: <item id="10800" type="Armor" name="Draconic Leather Armor {PvP}"> <set name="icon" val="icon.armor_t89_ul_i00" /> <set name="default_action" val="equip" /> <set name="armor_type" val="light" /> <set name="bodypart" val="onepiece" /> <set name="immediate_effect" val="1" /> <set name="crystal_count" val="748" /> <set name="crystal_type" val="s" /> <set name="element_enabled" val="true" /> <set name="material" val="leather" /> <set name="weight" val="4950" /> <set name="price" val="15577000" /> <set name="enchant_enabled" val="1" /> <for> <add order="0x10" stat="pDef" val="249" /> <enchant order="0x0C" stat="pDef" val="0" /> </for> </item>
-
ma den eipa pws einai kalo share ;) apla den exw ksana dei kati tetoio opote to ekana :)
-
ade parte mia new idea :P den pisteyw na yparxei kati paramoio :P [GR]dokimasmeno se l2jserver H5 [ENG]Tested in l2jserverH5 [ENG]create a file inside data/scripts/custom/BugReport/ with name BugReport.java and paste the code bellow [GR]dhmiourghste ena ena file me name: BugReport.java mesa sto data/scripts/custom/BugReport/ kai kade paste ton parakatw kodika. package custom.BugReport; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.StringTokenizer; import java.util.logging.Logger; import com.l2jserver.gameserver.cache.HtmCache; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.network.L2GameClient; import com.l2jserver.gameserver.network.clientpackets.Say2; import com.l2jserver.gameserver.network.serverpackets.CreatureSay; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; /** * @author -=DoctorNo=- * Version 2.3 */ public class BugReport extends Quest { private Logger _log = Logger.getLogger(BugReport.class.getName()); private static final int NpcId = 553; // npc id here private static String htmlLoc = "data/scripts/custom/BugReport/1.htm"; public BugReport(int questId, String name, String descr) { super(questId, name, descr); addFirstTalkId(NpcId); addTalkId(NpcId); addStartNpc(NpcId); } @Override public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { if (event.startsWith("report")) { sendReport(event, npc, player, event); } return ""; } private void sendReport(String event, L2Npc npc, L2PcInstance player, String command) { StringTokenizer st = new StringTokenizer(command); st.nextToken(); String message = ""; String _type = null; // General, Fatal, Misuse, Balance, Other L2GameClient info = player.getClient().getConnection().getClient(); try { _type = st.nextToken(); while(st.hasMoreTokens()) message = message + st.nextToken() + " "; if (message.equals("")) { player.sendMessage("Message box cannot be empty."); return; } String fname = "data/BugReports/" + player.getName() + ".txt"; File file = new File(fname); boolean exist = file.createNewFile(); if(!exist) { player.sendMessage("You have already sent a bug report, GMs must check it first."); return; } FileWriter fstream = new FileWriter(fname); BufferedWriter out = new BufferedWriter(fstream); out.write("Character Info: " + info + "\r\nBug Type: " + _type + "\r\nMessage: " + message); player.sendMessage("Report sent. GMs will check it soon. Thanks..."); for(L2PcInstance allgms: L2World.getInstance().getAllGMs()) { allgms.sendPacket(new CreatureSay(0, Say2.SHOUT, "Bug Report Manager", player.getName() + " sent a bug report.")); allgms.sendPacket(new CreatureSay(0, Say2.SHOUT, "Report Type", _type + ".")); } _log.info("Character: " + player.getName() + " sent a bug report."); out.close(); } catch (Exception e) { player.sendMessage("Something went wrong try again."); } } @Override public String onFirstTalk(L2Npc npc, L2PcInstance player) { final int npcId = npc.getNpcId(); if (player.getQuestState(getName()) == null) newQuestState(player); if (npcId == NpcId) { String html = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), htmlLoc); html = html.replaceAll("%player%", player.getName()); NpcHtmlMessage npcHtml = new NpcHtmlMessage(0); npcHtml.setHtml(html); player.sendPacket(npcHtml); } return ""; } public static void main(final String[] args) { new BugReport(-1, BugReport.class.getSimpleName(), "custom"); System.out.println("CUSTOM: BugReport Manager loaded"); } } [ENG]in the same folder create one html with name: 1.htm and paste the code bellow [GR]ston idio fakelo dhmiourghste ena htm me name:1.htm kai valte ton parakatw kodika <html> <title>Bug Report Manager</title> <body> <br><br> <center> <table border="0" height=10 bgcolor="444444" width=240> <tr><td align=center><font color="00FFFF">Hello %player%.</font></td></tr> <tr><td align=center><font color="00FFFF">There are no Gms online</font></td></tr> <tr><td align=center><font color="00FFFF">and you want to report something?</font></td></tr> <tr><td align=center><font color="00FFFF">Now it is possible.</font></td></tr> </table> <br> <img src="L2UI.SquareWhite" width=280 height=1> <br><br> <table width=250> <tr> <td><font color="LEVEL">Select Report Type:</font></td> <td><combobox width=105 var=type list=General;Fatal;Misuse;Balance;Other></td> </tr> </table> <br><br> <multiedit var="msg" width=250 height=50><br> <button value="Report It" action="bypass -h Quest BugReport report $type $msg" width=128 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td> <br> <img src="L2UI.SquareWhite" width=280 height=1> <br><br><br><br><br><br><br> <font color=3293F3>L2Total Team</font><br> <img src="L2UI.SquareWhite" width=280 height=1> </center> </body></html> [ENG]dont forget to add in scripts.cfg file [GR]mhn ksexase sto scripts.cfg na kanete paste afto custom/BugReport/BugReport.java [ENG]finally create an empty folder with name BugReports in data/ [GR]kai telos na dhmiourghse enan adeio fakelo me name BugReports mesa sto data... Den asxoli8ika kai polu, alla sta petaxta pou ekana 2-3 tests den mou evgale provlhma. Version 2.3 Change log. 1. Code rework-format 2. Empty message box check added http://i49.tinypic.com/2yxg7ld.jpg[/img] http://i49.tinypic.com/whh6h.jpg[/img]
-
den kserw an yparxei kai allo share den epsaksa na sas pw thn alh8eia, kseskoniza to pc mou kai to vrhka :P package handlers.itemhandlers; import com.l2jserver.gameserver.handler.IItemHandler; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.SystemMessageId; /** * @author -=DoctorNo=- */ public class ClanReputation implements IItemHandler { // -------------------------------------------------- // Interval configs. // -------------------------------------------------- private static final int ITEM_IDS = 1515; // item id here. private static final int Rep_Score = 10000; // reputation points here. @Override public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse){ if (!playable.isPlayer()) { playable.sendPacket(SystemMessageId.ITEM_NOT_FOR_PETS); return false; } L2PcInstance activeChar = playable.getActingPlayer(); if ((activeChar.getClan() == null) || !activeChar.isClanLeader()){ activeChar.sendPacket(SystemMessageId.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT); return false; } activeChar.getClan().addReputationScore(Rep_Score, true); activeChar.destroyItemByItemId("clan", ITEM_IDS, 1, activeChar, true); activeChar.sendMessage("You have successfully add "+Rep_Score+" reputation point(s) to your clan."); return true; } public int getItemIds(){ return ITEM_IDS; } } logika den 8a exei provlhmata to eixa dokimasei se H5 prin poluuuu kairo :P
-
ka8esai? an den ka8esai katse xD, prepei na kaneis ena ena ta items sta xml, na tous valeis tin epilogh gia attribute
-
[Help] StartGameServer_Loop posi ram na trabiksi
valanths1990 replied to MoneyMan's question in Request Server Development Help [Greek]
e kade copy paste ti exei mesa h mlkia tou frozen -
[Help] StartGameServer_Loop posi ram na trabiksi
valanths1990 replied to MoneyMan's question in Request Server Development Help [Greek]
kane copy paste olo ton kodika apo to startgameserver.bat vale ligo afto java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms5120m -Xmx5120m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer