An4rchy
Legendary Member
-
Joined
-
Last visited
-
Currently
Viewing Topic: L2J Projects: No source is a dead-end -
Trader rating
100%
Everything posted by An4rchy
-
drugs?
Ginotane xamos Athina Thessaloniki, stis sinavlies mas idronane akoma kai oi tixoi.
-
[Discussion]Any good ideas.
Not even any ideas guys?
-
aCis - another CRAPPY interlude server
Sure it does, java-man is an inner circle on aCis and he works mostly on core(not datapack).
-
aCis - another CRAPPY interlude server
You are not even using jaxb to load xml in aCis and you tell us about replacing it?
-
[Preview] Pokemon Catcher
ahahhahahaha
-
[Preview] Pokemon Catcher
What exactly? :D
-
Acis Mage Classes
If you don't want to edit the skills you have to edit the stats in the source while loading the skills. There's no other way, or there is until they find out.
-
[Discussion]Any good ideas.
Good :)
-
[Discussion]Any good ideas.
Hello everyone. Since this section is pretty dead and i'm bored as hell, i would like to make smth. By the way, i think this is the correct section to post this, if i'm wrong please move the topic. Some rules: - Don't expect me to make anything you ask me, i will just do ideas that are new and worth making. - Don't expect me to make smth when you ask me to. - You can ask anything, meaning events, skill modifications, custom items, custom npcs etc. Also if someone wants to be part of this(meaning to create the mods requested too with me), it's ok. Just inform me which code you will do so we won't be working on the same thing. And please, post nice ideas not existing stuff.
-
aCis - another CRAPPY interlude server
Xml though is useful only if you use jaxb(which is kinda difficult too when you are trying to unmarshal/marshal a list).
-
aCis - another CRAPPY interlude server
Well, it's not that bad. Actually you can't say it should only be used on web apps, since it is created in order to make a faster xml service(even the package in jackson lib is com.fasterxml lol). It's just kinda complicated, but really efficient too.
-
aCis - another CRAPPY interlude server
Look at this: http://pastebin.com/JHT4ACBi And how it's loaded: public void load() { File f = new File("./data/json/teleports.json"); if (!f.exists()) { _log.severe("TeleportLocationTable: teleports.json could not be loaded: file not found"); return; } List<L2TeleportLocation> temp = JSONParser.getInstance().loadList("data/json/teleports.json", L2TeleportLocation.class); for (L2TeleportLocation tl : temp) { _teleports.put(tl.getTeleId(), tl); } _log.info("TeleportLocationTable: Loaded " + _teleports.size() + " templates."); } While in xml(without using jaxb): public void load() { try { File f = new File("./data/xml/teleports.xml"); Document doc = XMLDocumentFactory.getInstance().loadDocument(f); Node n = doc.getFirstChild(); for (Node d = n.getFirstChild(); d != null; d = d.getNextSibling()) { if (d.getNodeName().equalsIgnoreCase("teleport")) { NamedNodeMap node = d.getAttributes(); L2TeleportLocation teleport = new L2TeleportLocation(); teleport.setTeleId(Integer.valueOf(node.getNamedItem("id").getNodeValue())); teleport.setLocX(Integer.valueOf(node.getNamedItem("loc_x").getNodeValue())); teleport.setLocY(Integer.valueOf(node.getNamedItem("loc_y").getNodeValue())); teleport.setLocZ(Integer.valueOf(node.getNamedItem("loc_z").getNodeValue())); teleport.setPrice(Integer.valueOf(node.getNamedItem("price").getNodeValue())); teleport.setIsForNoble(Integer.valueOf(node.getNamedItem("fornoble").getNodeValue()) == 1); _teleports.put(teleport.getTeleId(), teleport); } } } catch (Exception e) { _log.severe("TeleportLocationTable: Error while creating table" + e); } _log.info("TeleportLocationTable: Loaded " + _teleports.size() + " templates."); } Also when teleports.xml rewriten to teleports.json it was like half size.
-
Acis Mage Classes
When you say low, low like 1 dmg? Or like 200-300?
-
All Basics L2J Interlude Pack from 15€
Ok, thanks for letting me know :)
-
Rookie Development Services
Trusted :) Gl mate.
-
aCis - another CRAPPY interlude server
lol? I liked json since you first mentioned it Seth, because it's easier to use and you can simply save a whole .json file to a list(you can do it in jaxb too, but it's kinda complicated).
-
aCis - another CRAPPY interlude server
Everything seems fine, let me explain: If you don't know what type is the npc you're trying to edit, then Why edit an official npc's type? Also if you do it on a custom, is it that hard to c/p? And as regards making a new xml for custom npcs, what's the problem about that? Having everything organized? Sorry, but i don't see the problem there. (You can also make a config to allow multiple types on a specific xml, like custom.xml.)
-
aCis - another CRAPPY interlude server
However, there are ways to split npc.xml, for example, split by npc type(instance).
-
All Basics L2J Interlude Pack from 15€
Seriously you think that the date check for the premium status is 100 lines of code? So difficult to do this: millisecondsWhenGotVipStatus - currentMilliseconds. Wow.
-
HAHAHAHA OMG
ahahahahahahahahah btw it looks better than mxc, even if it's a fail c/p
-
How can I edit an Admin Command?
ahahahha xdem nice baloni code :X
-
Ανέκδοτα
2 pages me mlkies, gj xalasate to topic Btw, sig:
-
You win lottery 5 billion euros
cant, max is 2,147,483,647
-
[L2OFF]L2InterludeOnline
Translate the site or bb.
-
Official Spam Topic ☂
Pios einai patrinos?