Jump to content

An4rchy

Legendary Member
  • Posts

    2,656
  • Joined

  • Last visited

  • Days Won

    26
  • Feedback

    100%

Everything posted by An4rchy

  1. http://pastebin.com/wxbdg0aC This is the vip system. Well you are free to post your ideas, but remember the rules. I will only do what is worth doing. Also it will be shared for free.
  2. Well, this would just be c/p killing spree and add one line in every case ;p You can do anything you want there. What do you mean? :D I'll do that, but not on frozen it drives me mad.
  3. It sounds like a packet problem, maybe a missing packet? Try making a trade to buy but not offline to see if it works.
  4. Ginotane xamos Athina Thessaloniki, stis sinavlies mas idronane akoma kai oi tixoi.
  5. Not even any ideas guys?
  6. Sure it does, java-man is an inner circle on aCis and he works mostly on core(not datapack).
  7. You are not even using jaxb to load xml in aCis and you tell us about replacing it?
  8. 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.
  9. 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.
  10. Xml though is useful only if you use jaxb(which is kinda difficult too when you are trying to unmarshal/marshal a list).
  11. 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.
  12. 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.
  13. When you say low, low like 1 dmg? Or like 200-300?
  14. Ok, thanks for letting me know :)
  15. Trusted :) Gl mate.
  16. 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).
  17. 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.)
  18. However, there are ways to split npc.xml, for example, split by npc type(instance).
  19. Seriously you think that the date check for the premium status is 100 lines of code? So difficult to do this: millisecondsWhenGotVipStatus - currentMilliseconds. Wow.
  20. An4rchy

    HAHAHAHA OMG

    ahahahahahahahahah btw it looks better than mxc, even if it's a fail c/p
  21. ahahahha xdem nice baloni code :X
  22. 2 pages me mlkies, gj xalasate to topic Btw, sig:
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock