Skip to content

An4rchy

Legendary Member
  • Joined

  • Last visited

  • Currently

    Viewing Topic: L2J Projects: No source is a dead-end
  • Trader rating

    100%

Everything posted by An4rchy

  1. An4rchy replied to djgrasu's topic in Votes/Polls Area
    Ginotane xamos Athina Thessaloniki, stis sinavlies mas idronane akoma kai oi tixoi.
  2. Not even any ideas guys?
  3. Sure it does, java-man is an inner circle on aCis and he works mostly on core(not datapack).
  4. You are not even using jaxb to load xml in aCis and you tell us about replacing it?
  5. 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.
  6. 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.
  7. Xml though is useful only if you use jaxb(which is kinda difficult too when you are trying to unmarshal/marshal a list).
  8. 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.
  9. 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.
  10. When you say low, low like 1 dmg? Or like 200-300?
  11. Ok, thanks for letting me know :)
  12. 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).
  13. 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.)
  14. However, there are ways to split npc.xml, for example, split by npc type(instance).
  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.
  16. An4rchy replied to Heiko's topic in Spam Topics
    ahahahahahahahahah btw it looks better than mxc, even if it's a fail c/p
  17. ahahahha xdem nice baloni code :X
  18. 2 pages me mlkies, gj xalasate to topic Btw, sig:
  19. cant, max is 2,147,483,647
  20. Translate the site or bb.
  21. Pios einai patrinos?

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.