Jump to content

Tryskell

Legendary Member
  • Posts

    5,343
  • Credits

  • Joined

  • Last visited

  • Days Won

    52
  • Feedback

    0%

Everything posted by Tryskell

  1. 1 - I suppose core modification, dunno where as I don't know this skill (my life stopped to interlude + i'm not a warlord fan :P). 2 - Core mod. Many events shared on this forum. Check VIP for example. 3 - you must edit the requestprivatebuy (dunno if it's the good name...) & sellstore .java, to add the restriction of giran harbor + adding giran harbor in areas if not made. 4 - no idea, i suppose xml ? As zariche give skills, see if it's core or xml based. Well, according to CW, I suppose more core than xml... 5 - no idea, but as it's a HTM file, I suppose the checkbox stuff is the same as any HTML file. Depends of your server, but if it's an existing feature on Gracia and u're on Interlude, remember than all can be copied from gracia to interlude, need just work. I won't talk about originality, but it will be better to learn how to hack a FTP than try to make an copy of existing servers... GL anyway.
  2. A guy who just search devs doing nothing deserves it, no ? rareswega, try to begin java (by java... It's a big word, as myself I don't know how to code in java, I'm just enough clever to understand existing code, and try to replicate adaptating for my needs until it works), cause no one will code for you... And for your sweet eyes :/. If you haven't any knowledge and don't want to learn, just drop it. Or try with friends, if you got any skilled friends. You just need logic and time... Or money, cause money attract L2j devs like light and butterflies :p. Regards, Tryskell.
  3. "-Xmx768m" or "-Xmx1024m" on gameserver.bat :P. Put back "-Xmx512m" on LS if you had problem with "-Xmx256m". BTW, when we talk about memory, it's RAM memory, not HDD capacities :P.
  4. It's what I conclued too :P. Whatever I do, it fails. Java env is fine, as the problem is really located to that. Btw, it's the last revision (1292M). I added you to MSN, so we can talk a lil longer :P. My case is closed, let's see if archid "new generation" offers less instability :P.
  5. Believe me or not, but it's the pack which make bug (last revision of Archid, 1292M). From my current project, I have duplicate and "replace with base revision" (it's when you see this feature than you think SVN is really awesome :D), which made me a clean project. I just c/p my handler (the last one i shared, and removed the line concerning faction), put the 2 things in the voicecommandhandler to accept the command ingame and... I still got a NPE ! Buhaha. So it's seems it's the project which is buggy (in the same way, /unstuck and /invite don't work - i thought I made some prog mistakes, but no). Sethek, your actual project is less buggy I hope, else I have to migrate to gracia and it's make me already cry :P About NPE mistakes, it seems I can drop it, I got answer : wait some weeks for new archid release.
  6. Ty to help, but if you read what posted Sethek, it's around your code, except the "else incorrect target" and the "NpcHtmlMessage adminReply = new NpcHtmlMessage(5);", which goes from bottom to top, with (5) instead of (0). I think even my method would work, as the null exception is normally checked with targetp != null. That just doesn't want to work :/. Same error, same lines. I suppose it's inherent to voicecommand on l2j archid... Or perhaps I deleted somethig I shouldn't... But why all others targets types tests work... Where in L2PcInstance there will be such a thing ? I haven't anymore the clean last revision of archid to test if it's my error or if archid is like that... I suppose I have to drop it time Archid becomes release, and patch to this new clean system :/. If you haven't others ideas, don't worry too much :/. Here my final .java. For test, I take any char (not GM) I target me and type .faction (don't work both on self and others). The worst is with GM, the selftarget thing works (infinite, until the time you try on others), but not on others... I don't understand. I will try to search in L2PcInstance, around my faction stuff... About the code itself... I don't think I forget anything. package com.l2jarchid.gameserver.handler.voicedcommandhandlers; import javolution.text.TextBuilder; import com.l2jarchid.gameserver.handler.IVoicedCommandHandler; import com.l2jarchid.gameserver.model.actor.instance.L2PcInstance; import com.l2jarchid.gameserver.network.serverpackets.NpcHtmlMessage; public class faction implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = { "faction" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("faction")) { L2PcInstance targetp = (L2PcInstance)activeChar.getTarget(); if(targetp != null) { NpcHtmlMessage faction = new NpcHtmlMessage(5); TextBuilder htmlContent = new TextBuilder("<html><title>Character stats</title><body><center>"); htmlContent.append("<br><font color=\"00FF00\">=========>>"+ targetp.getName() +"<<=========</font><br>"); htmlContent.append("<font color=\"FF0000\">Level:</font> " + targetp.getLevel()+"<br>"); htmlContent.append("<font color=\"FF0000\">Clan:</font> " + targetp.getClan().getName()+" | "); htmlContent.append("<font color=\"FF0000\">Alliance:</font> " + targetp.getClan().getAllyName()+"<br>"); htmlContent.append("<font color=\"FF0000\">Adena:</font> " + targetp.getAdena()+"<br>"); htmlContent.append("<font color=\"FF0000\">PvP Kills:</font> " + targetp.getPvpKills()+" | "); htmlContent.append("<font color=\"FF0000\">Number of Deaths:</font> " + targetp.getPkKills()+"<br>"); htmlContent.append("<font color=\"00FF00\">=========>> Faction related <<========="+"</font><br>"); htmlContent.append("<font color=\"FF0000\">Faction points:</font> " + targetp.getFactionPoints()+"<br>"); htmlContent.append("</center></body></html>"); faction.setHtml(htmlContent.toString()); activeChar.sendPacket(faction); } } return true; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } } Anyway, ty for your help, I appreciate it. Tryskell.
  7. Exactly the same problem :P. So, even if my checks aren't rly optimised (say that to l2j :P I see from their code), it's not the voicedcommandhandler which is bad. Btw, I quote the image, seems you didn't see it. It does the exact same error than doors check, it's that which is strange... Btw, all the rest of faction core is perfectly running (from pvp reward to capture crystals and port to it), so why a commandhandler, which even don't use factionId, bug :/. I don't understand. About faction itself, I got a table for faction members, so I didn't even add a column in the "characters" table... And didn't made big customs in L2PcInstance, mainly to put reward for pvp, and clean all karma/pk stuff/flag. Np, if you don't find, I will wait your new archid distrib to see if I can migrate :P. Have you resolved /unstuck and /trade too ?
  8. Ty for support, but the problem is i already got a null verification.... package com.l2jarchid.gameserver.handler.voicedcommandhandlers; import javolution.text.TextBuilder; import com.l2jarchid.gameserver.handler.IVoicedCommandHandler; import com.l2jarchid.gameserver.model.actor.instance.L2PcInstance; import com.l2jarchid.gameserver.network.serverpackets.NpcHtmlMessage; public class faction implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = { "faction" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("faction")) { if (activeChar.getTarget()==null || (!(activeChar.getTarget() instanceof L2PcInstance))) { activeChar.sendMessage("Incorrect target."); return true; } L2PcInstance targetp = (L2PcInstance)activeChar.getTarget(); TextBuilder htmlContent = new TextBuilder("<html><title>Character stats</title><body><center>"); htmlContent.append("<br><font color=\"00FF00\">=========>>"+ targetp.getName() +"<<=========</font><br>"); htmlContent.append("<font color=\"FF0000\">Level:</font> " + targetp.getLevel()+"<br>"); htmlContent.append("<font color=\"FF0000\">Clan:</font> " + targetp.getClan().getName()+" | "); htmlContent.append("<font color=\"FF0000\">Alliance:</font> " + targetp.getClan().getAllyName()+"<br>"); htmlContent.append("<font color=\"FF0000\">Adena:</font> " + targetp.getAdena()+"<br>"); htmlContent.append("<font color=\"FF0000\">PvP Kills:</font> " + targetp.getPvpKills()+" | "); htmlContent.append("<font color=\"FF0000\">Number of Deaths:</font> " + targetp.getPkKills()+"<br>"); htmlContent.append("<font color=\"00FF00\">=========>> Faction related <<========="+"</font><br>"); htmlContent.append("<font color=\"FF0000\">Faction points:</font> " + targetp.getFactionPoints()+"<br>"); htmlContent.append("</center></body></html>"); NpcHtmlMessage faction = new NpcHtmlMessage(0); faction.setHtml(htmlContent.toString()); activeChar.sendPacket(faction); } return true; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } } Error : http://img696.imageshack.us/img696/1455/sanstitre1em.jpg I must add it's a faction server, even if it's not a useful info. The strange thing is from the actual c/p code, a factioned ppl when he target himself got this error. When I do with admin, it works on me, never error. Until I try on another char... And as Intrepid like, it's "shitlude" :p. But voicedcommand is 98% the same than any new l2j release so... Tell me if you find something strange... About the imbricated verification ( || ), I already tested even desimbricated, and with/without the second verification (which see if it's a character or no, right ?). About faction points, yeah it's working well, no problem about it. If all NPE points to the same file, you think it can come from L2GameClientPacket ? Or it's just because it's a packet which bug, and as it's the normal way of the packet, it bugs when it tries to receive/send ? Sethek, as it's your "baby", you should perhaps know. I checked the code, and what is opcode, I find more than 800 things about it :P. And this file is a mix between l2j interlude and nowadays l2j (i mean the packet weight check, between 12 and 100). Np about my forum account, what is it strange, is I saw me in members, and "Tryskell" was already taken so :P. I tested both "True" and "False" return, without any visible effect... Both are on True, I saw it on another command, which is strange... About new NpcHtmlMessage(0) , what exactly is the 0 ? I saw both 0 or 5... Dunno why... And seems to bug the same way :D. About Archid forum... So what ? I create another account ? :P
  9. Hi all, as I have lost my pack (L2J archid) forum account (I still wait for ya Sethek :P), I post here, as it can help more people, and it's not a relative question to L2Jarchid, but java in general. NPE... For NullPointerException. I got a lot of those errors, for many different things. - my voicedcommandhandlers bug cause of that ; - sieges doors make this error, but work ; -throne siege is buggy too, when i try to sit on it i got an NPE. So I would like to ask : what are those errors, and how I can fix it. I ask for theory, and perhaps if u got an existing exemple to show (from any pack, I don't care) it would be cute. I got a really lil idea about it ; I think it's an exception which come when something is null. But got no idea if I have to set a variable for that, etc. Those errors seem to occur when I double click, or more accuratly, when I already made that action one time. For example, castle doors ; one click on any door and i can still move. If I click on one door, and click one time on another door, no error too. But if I double click on any gate, I got NPE error, and my character is "stuck" until I click on me. About my voicecommand, it's more drama as it bugs the entire command : when you type .stats you got stats (shared on this forum :P), it's bug differently according if i'm an admin or no. I didn't understand how, but it happens and block the command (only show one NPE error w/o show something anymore) until a client restart... I "coded" this voicecommandhandler 3 times, 3 differents ways (using or no the npchtmlmessage, and reading sources from L2j interlude, l2jfree interlude, and l2jumbrella gracia 1.5). I don't understand, cause my voicecommander is P.E.R.F.E.C.T and it makes me cry to see I spend so much time on a stupid NPE error lol. Well, any point of view can help... If you need screenshots of errors, just tell me. Exception in thread Normal packet Pool xx java.lang.NullPointerException at ihateNPE.gamerserver.network.clientpackets.L2GameClientPacket.run (xx = number of the error, it goes ++ each time...) And no I didn't mod L2gameclientpacket... And ofc, it's not ihateNPE :p.
  10. Hehe, you're the first in line when it begins talk money Sethek :P. Go work on archid, I wait signets :D.
  11. fdlp made a simple one (i mean the core, which is the evileet code more or less with some customs), there is another one too for "kill crystals/port crystals"... fdlp = http://www.maxcheaters.com/forum/index.php?topic=63437 For the other, search yourself, "faction by laikeriz" (on google, first link will go back to this forum lol). After if you want a "ready to launch" server, just pay someone cause no one will share end-faction server. Or you can ask worrom to give you his sources, lol... Personnaly I'm making a faction server, and it's works great right now.
  12. U're lazy, i found it in one minute through their SVN from net.sf.l2j.tools.random import Rnd it's not "tools", it's "util". net/sf/l2j/util/ Replace / by .
  13. As the user said before me, it's perhaps easier to use the joomla template than to try to debug the html result. Plus you can find the template on torrent so... (remove last sentence if it wasn't accepted...) For info it's full of publicities, google advs and cie, at least 20. From 50ko, you can remove 35ko. Well after one or 2 hours, I got a clean template. + Stefoulis already use this template for his servergame and I saw another random server using lol :). So if you want originality, you can pass. So ty anyway for share.
  14. Hi back, this message can be considered as an edit, but I prefer make a new one. I tested yesterday to kill a crystal with a admin char (faction=0), and it's why in others faction type, it's bug. It's perfectly works when a good or evil char take back the same point, and remove it correctly. So, no problem at all. It's even a mean to seee if a GM/neutral char killed the crystal (which shouldn't happen normally, except bugging exploiting/corrupt). I want to add I have added only the crystal stuff, without the faction map/vote system. It's more GvE like :).
  15. To see IG those in the communityboard folder, you must change one line in your properties file, instead of "old" you must put "Full". Dunno for other distribs than Archid, but for me it's located in options.properties. # Type of the Community board: # off = community is disabled # Old = old community # Full = full community (not fully implemented, experimental) # Default: off CommunityType = Full About gm commands, there is a "//bbs" option, dunno if it's for edit, I haven't time right now to test.
  16. Ty a lot, perfectly run on L2J archid distribution (interlude). About cats problem, you need change template of NPC (in L2TpFlagInstance). You can do a search 31217 in your NPC table, it's equals (in Intelrude DB anyway) to the cat. You can change for ex to 13002, or better create your own NPC. Don't forget to put the good type of instance too (L2TpFlag). About invulnerability, I'm fell in the trick too. But in fact it's PERFECTLY works. I explain the trick : if you aren't of same faction than crystal, you can hit. If you are, you can't. Simple. That means an Admin (normally, faction = 0) can't attack neutral crystal (as faction id is 0 too). When a red (faction = 2) hit (and he can) and kill the crystal, factionid of crystal goes to 2 (so red can't hit the crystal, but admin and goods can). Ty for great share. PS : just a problem, about refresh window of gatekeeper. Old crystal port stays, and one is added even if you take back the same (that means, I got 2 ports for the same points, and one doesn't work). Just a prob of refresh when you kill a crystal, it should update gks...
  17. Nice, I wanted to check signets system but as you seems to be back (and i was lazy to do it lol) I will continue my personnal stuff :D. Happy to see Archid is back... It's the only decent L2j interlude (no offense gamerfreak, I followed all your timeline which helped me a little, your project is pretty young and you seems had problem as there is 4 times same corrections). L2J Equal got a "steal" problem and no update of timeline since 2 weeks... BTW, when the Archid timeline will be available ? And are you still updating it ? That would be helpful.
×
×
  • Create New...