Jump to content

arm4729

Members
  • Posts

    231
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Everything posted by arm4729

  1. well i managed to make characters not dissapear from the world when log out / rr but i have a problem with the party , when player logs in again server knows character is in party , but client doesen't know character is in party how to fix this ?
  2. thank you for sharing ! i was looking for something like this
  3. Hello , i have saw on many recent server that when a character gets critical error and is in party , when relog player is still in party , character won't despawn from the world but get a title "DISCONNECTED" , i fiind this feature to be really good for a pvp server and im asking you guys if the code is already shared somewhere ?
  4. then let it be another crypto with no real use , i was dreaming big here , have to be honest , but why not ? anyway l2 scene is nothing like it was at least 3 years ago , and sadly it will be worse and worse
  5. because many players already do this kind of exchanges , and you as server administrator will get paid in the crypto token. I was just thinking for a function to the token in the world , do you have any better ideea ? Otherwise , why not stick to paypal / g2a / paysafecard etc ?
  6. Did you check in your database if raidboss 40019 was already spawned ? just clear raidboss_spawnlist table and restart server and try again maybe it is already in db and when you try to spawn it again you get duplicate id error from mysql and then shit happens and 2 bosses are spawned ?
  7. You buy with your money crypto / swap it into mxc token -> now what ? You got the mxc token , you can swap it back to other crypto or try to sell it for money (all with a fee for cakeswap for example) , what you can do more with the token now ? how to implement it in lineage 2 game inventory ?
  8. Well , ideea is that mxc needs to think about all features of token from the start , (not to be the middleman) and then deploy the token and let it run on its own , no centralized at all , that the whole point of crypto ... i was just saying that would be great if more l2 servers would use same crypto token as donate coin.. like let's say you play on l2dex for 3 months you get some tokens maybe from in-game features maybe you bought them , next days when you bored or feel like trading items from l2dex to join l2reborn , you sell all your items on dex to mxc token go with them to l2reborn , or cash out if you want .. but how can this be implemented without middleman , thats whole point ?
  9. Yes , create the token then talk to all known admin to implement it as donate coin reward , so when a player will donate will buy this token at the price it is at that moment , harder part will be in game shop that will take the token from player and put into server owner wallet , but it sound good ideea , maybe some admins will hold crypto-donates and win more money need a good plan from the start
  10. https://www.mediafire.com/file/2kti4w1qvpm75gk/20+Atual+Studio+Templates.rar/file <<-- Download Link^^ (i do not recommend to use this website files for live project , but is a good source of inspiration , and hey is free)
  11. Do something about patch system files , i can't launch game my antivirus eset nod32 won't let me launch the game , please don't tell me disable / delete antivirus , you need to think about this problem because you are losing people that want to join server , you just lost one player because of this problem. i don't really care if you will do something about it but i just want to tell you that this might be a big problem for your server , gl with your project im just trying to help you with some good info about situation //edit: i can't start game even with av disabled
  12. you need to check for dmg formula how dmg is calculated in your source , that is a good start .. anyway your problem could be in any other file but i would start from there you should consider changing / getting a clean source , it smells like source you just got was trolled before shared
  13. if (party.getMembers().stream().filter(k -> k.getClassId() == (ClassId.CARDINAL)).count() >= 2) you better make the party allow only 2 healers maximum , its better because many ppl will get trolled if you only make healing power lower without notifications etc...
  14. I think this is a great idea , with brains like this forum have on l2j i am pretty sure someone will come with a good project ideea , beside that l2 is not as popular as it was days ago , if l2 die forum will die ? why not expand ? don't be close minded guys... who knows maybe maxcheaters server will be first l2 server to integrate crypto in a mmorpg , now that would be something
  15. thank you , well now is working fine i added the check in the begin cast , hope is not doing any problems ... getAI().notifyEvent(CtrlEvent.EVT_FINISH_CASTING); to be honest , i didin't know what this is doing but i was trying to get a fix to my problem so i forgot to delete this line can someone explain what is difference between "return" and "Return false" because i think there was the problem , from begintask is only "return" to get and this way character won't stop moving , but from checkskillcondition is only "return false" to get , and this stops char movement .. is there any chance that return false + return false = null ? or something like this
  16. Thank you guys for reply , @Rootware so i need to add send htm packet in bypass to send it again , thank you i think this will solve my problem
  17. Hello , i noticed that i have an delay on community board that is exactly 10 seconds .. how can i disable it ? I am using free acis source , where can i look for it ?
  18. Hello , i am using acis free source and i have a problem i can't fiind where to look for i am drowning :=\ Im asking you guys for any hint or maybe someone who got into same problem can help me. Problem is that , when i try to use a skill that has reuse delay on, for example rapid shot , character stop moving , i have noticed that this thing is not happening when i try to use rapid shot and there is no delay on skill character will cast/use skill and continue moving where he was moving to before using skill. why is this not happening when skill has reuse delay ? //edit: it should write skill is not ready or something like this , i don't get any msg also , also when no mp do same stop moving //edit2: problem fixed i moved this checks if (getCurrentMp() < getStat().getMpConsume(skill) + getStat().getMpInitialConsume(skill)) { // Send a System Message to the caster sendPacket(SystemMessage.getSystemMessage(SystemMessageId.NOT_ENOUGH_MP)); abortCast(); // Send ActionFailed to the L2PcInstance sendPacket(ActionFailed.STATIC_PACKET); return; } if (skill == null || isSkillDisabled(skill)) { // Send ActionFailed to the L2PcInstance sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_PREPARED_FOR_REUSE).addSkillName(skill)); abortCast(); return; } from checkDoCastConditions to begincast , only difference is now the return is not written as return false , but only return .. this is still a mistery to me , aa also added this getAI().notifyEvent(CtrlEvent.EVT_FINISH_CASTING);
  19. Hello , ive found on forum this code and added it to my project , i am using it for shift + click and lucky chest feature , so that when you open a chest an htm window appears and tells you what item you obtained , count and adds the icon of the item. Problem is that everytime shift + click is requested or opening chest , all 10k icons loads and i get this message on gs log: IconsTable: Succesfully loaded 9209 icons, in 17.0 Milliseconds. the code im using is this: package net.sf.l2j.gameserver.datatables; import java.io.File; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; import net.sf.l2j.gameserver.GameServer; import net.sf.l2j.gameserver.xmlfactory.XMLDocumentFactory; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; public class IconsTable { public static final Map<Integer, String> Icons = new HashMap<>(); private static int count; private static long t0; private static double t; private static final Logger _log = Logger.getLogger(GameServer.class.getName()); public void reload() { Icons.clear(); parseData(); } public static void parseData() { count=0; t0 = System.currentTimeMillis(); try { File f = new File("./data/xml/icons.xml"); Document doc = XMLDocumentFactory.getInstance().loadDocument(f); for (Node n = doc.getFirstChild(); n != null; n = n.getNextSibling()) { if ("list".equalsIgnoreCase(n.getNodeName())) { for (Node d = n.getFirstChild(); d != null; d = d.getNextSibling()) { if (d.getNodeName().equalsIgnoreCase("icon")) { count++; NamedNodeMap attrs = d.getAttributes(); Node att = attrs.getNamedItem("Id"); Node att2 = attrs.getNamedItem("value"); Icons.put(Integer.valueOf(att.getNodeValue()), String.valueOf(att2.getNodeValue())); } } } } t = System.currentTimeMillis() - t0; _log.config("IconsTable: Succesfully loaded "+count+" icons, in "+t+" Milliseconds."); } catch (Exception e) { _log.config("IconsTable: Failed loading IconsTable. Possible error: "+e.getMessage()); } } public static String getIcon(int id) { if (Icons.get(id)==null) { _log.config("IconsTable: Invalid Icon request: "+id+", or it doesn't exist, Ignoring ..."); return "null"; } return Icons.get(id); } public static final IconsTable getInstance() { parseData(); return SingletonHolder._instance; } private static class SingletonHolder { protected static final IconsTable _instance = new IconsTable(); } } and when i want to get the icon i use this IconsTable.getInstance().getIcon(ITEMID)) , what i need to know is that if there isn't any way to store all this 10k icons , and load them only once , not for every request to get icon.. EDIT: PROBLEM SOLVED , HERE IS THE FIX public static String getIcon(int id) { if (Icons.get(id)==null) { parseData(); _log.config("IconsTable: Invalid Icon request: "+id+", or it doesn't exist, Ignoring ..."); return "null"; } return Icons.get(id); } public static final IconsTable getInstance() { return SingletonHolder._instance; } i had to remove parsedata(); from the getInstance() and add it after if(icons.get(id)==null) , hope that this won't slowdown server much
  20. Thank you !! Broadcast.toKnownPlayersInRadius(this, su, 3000); this is what ive been missing all this time , thank you very much man !! you saved me
  21. oh i just see last free revision is 382 , well isn't there any other way to upgrade files ? best way start from zero ?
  22. i have some problem i can't set packet as bolean , im still working on it
  23. Hello guys , i am now using acis version 368 and i have added many customs and changed alot of things i don't want to copy paste everything and i really don't remember everything i did change in past 2 years in this source , if i will lose everything that would be a lot of time wasted , this is my first java experience it started with l2 (eclipse/java/etc) and i want to know if there is a way i can upgrade my source to latest acis version any guide/video link would help me a lot
×
×
  • 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