Jump to content

melron

Legendary Member
  • Posts

    1,405
  • Joined

  • Last visited

  • Days Won

    32
  • Feedback

    0%

Everything posted by melron

  1. Well i didnt test this thing but i dont think will be a problem from server side.. its just a save in db (the name) . I have to check the way that facebook sending the user name to check if the letters are corectly appearing so the server can compare . Thanks for this question
  2. Hello members, Since this section is rly dead and i always like to share things here is another one.. How is this working? First of all you have to create your personal l2 page in facebook. After that search in facebook settings to change the url-name of your page to www.facebook.com/L2Tests and not www.facebook.com/HAW#$A#@ Create your personal Access Token here It will be generated as short-lived token (means that it will expire in about an hour). change it to long-lived here (means that it will expire after 2 months ,maybe more) Download facebook api restfb-1.46.0 Add it in your sources (i will not provide how to...) Implement the code i'm giving Source / Files Source Code Htmls/Database Config Dont forget to add the new admin commands in adminCommands.xml <aCar name="admin_fbreload" accessLevel="7"/> <aCar name="admin_facebook" accessLevel="7"/> <aCar name="admin_showPosts" accessLevel="7"/> <aCar name="admin_delPost" accessLevel="7"/> <aCar name="admin_addPost" accessLevel="7"/> <aCar name="admin_turnFb" accessLevel="7"/> <aCar name="admin_clean_facebook_database" accessLevel="7"/> <aCar name="admin_fb_auto_announce" accessLevel="7"/> (these commands are used for all actions , you can use these actions direcly by writing the command with the necessary tokens) Videos Admin view User view More explaination? If you successfully passed all the above moves: Set your facebook page name in FacebookPageName in facebook.properties Set your Access Token in FacebookApiToken //facebook command will display the panel you just saw /facebook command for users You can add/remove any of the posts that are inside of your page. You can set an automatic reward: You set the number of likes you want to collect from the sum of all the pages you have set, item id, item count. When the likes will be >= the num you set, then all the online players will get the reward you set. The players have to like All the posts you added to take the reward. I am mostly using usercommand handlers , if you will too, then don't forget to add one more line in your commandname-e.dat and edit the id of the command (in FaceBook.java) to your id if you have voiced you can add it there. ================================================================================== This code is made for aCis 371 rev. Note: I havent check it in live server , i just made it in localhost so you have to give a try in my shitty code and check if any bug will appear. If anyone wants the buttons (the blue ones) you can get the utx from here (Thanks Sinister Smile) If someone finds any bug please let me know, i can help. Thank you!
  3. As sam said its impressive :) good work
  4. Config.java find public static final String SIEGE_FILE = "./config/siege.properties"; after that create your own custom file , for example: (the path) public static final String CUSTOM_FILE = "./config/custom.properties"; now find public static int SIEGE_LENGTH; before/after that add your own variable like for example public static int CUSTOM_SUB_LEVEL; then search for private static final void loadSieges(). after /before this method create your own , for example: /** * Loads custom settings. */ private static final void loadCustoms() { final ExProperties custom = initProperties(Config.CUSTOM_FILE); CUSTOM_SUB_LEVEL = custom.getProperty("CustomSubClassLevel", 80); } last step: search for public static final void loadGameServer() you will see more methods like loadClans(); etc.. just add your new method like loadCustoms(); ===================================================== Go to /config (the path you used) and create a .properties file with name custom. inside just write: CustomSubClassLevel = (your level) You done :)
  5. There are guides about how to add a new config. its about a minute dont be lazy :D
  6. SubClass.java public SubClass(int classId, int classIndex) { _class = ClassId.VALUES[classId]; _classIndex = classIndex; _exp = Experience.LEVEL[40]; _sp = 0; _level = 40; }
  7. maximum fence size is 1000. Maximum acceptable value is 1099 with 1000 as return size (it could be higher). Types are 1 and 2 1) only the 4 columns 2) columns with fences between them For spawning them in some conditions automatically you have to store the location where the fence was spawned, type, sizes (2), height. A table with fences data would be perfect.
  8. i told u 2 times in pm that i'll do it 2morrow 4 free cause im not home lol... wtf ppl?
  9. Oh shit...
  10. You still believe that someone didnt get what you need? :P
  11. Many useless data for a simple check. There is a boolean isGm() Reciever & sender are already created and cannot be null. You need more checks about if the player is pming the gm while is in oly,inside of other event or even in pvp mode. _target.equals( string ) its wrong compare between two different objects. Probably you forgot getName().equals You can name it as a 'base' of the code he is looking for
  12. It isnt so hard, you have to add some checks in Say2.java. You need help but help us too by giving your project's name.
  13. Why you need 2nd instance based on the other? just add two buttons with the only difference the enchant check and the price lol
  14. Can you explain what exactly you looking for? you want instant 1k enchants? or ?
  15. Just Click on it (you will see the method's bg as grey), do not select it
  16. search for a magician to solve your problem so he can guess what pack you are using and crawl the rest code
  17. even if this is the right place to add the check, check again what you just did. You removing the effect and then you checking if is toggle? L2Character.java -> click the stopAllEffects() with your cursor in order to highlight it In eclipse tools -> Refactor -> Change Method Signature click on Add button . A default column will appear with : Object as 'type' , newParam as Name, null as Default Value. Edit them with 'boolean' as type , 'onDeath' as Name , 'false' as default value Click ok. L2Character.java -> doDie() method, edit all stopAllEffects(false) with true argument only those are inside of "if (this instanceof L2PcInstance)" check Edit the method stopAllEffects like this: public final void stopAllEffects(boolean onDeath) { final L2Effect[] effects = getAllEffects(); for (final L2Effect effect : effects) { if (effect != null) { if (onDeath && effect.getSkill().isToggle()) continue; effect.exit(true); } else { synchronized (_effects) { _effects.remove(effect); } } } if (this instanceof L2PcInstance) { ((L2PcInstance) this).updateAndBroadcastStatus(2); } } If you just add a check in stopAllEffects() for toggle then even in subclass change/add/cancel or idk where this method is used you will keep all toggles .... P.s 'Not tested'
  18. (It is english section) Lets think about it, You go to the shop and saying if the Coca Cola is zero i like it. Then you saying if Coca Cola exists in your shop, give me one. With the only difference that is java and not a shop and the 'warning' is telling you that the variable item cannot be null at this location Because this variable is used a few lines before. Delete this check or before if (item.isAugmented()) add a check if (item == null) return;
  19. People are confusing me. You guys saying acis bad, ok. Your personal view. Feel free to start a mid server with l2jfrozen,scoria,hellas or what ever free is out there and then come here and talk about bugs. It's so simple people. There is not exist any single project out there without bugs. You selecting the pack you want to work with and fixing by urself the bugs you want to be fixed and checking the project's owner he's updates. Oh, frozen doesnt have updates anymore.. wait.. scoria too... oh... Lets talk about the servers who successed as mid rate or even better low rate with frozen. Actually lets count em. -0-. (Maybe 1? i doubt). With all due respect for the projects owners my opinion is that acis is much better than all others but that doesnt mean acis is project without bugs.
  20. http://legacy.lineage2.com/news/interlude_15.html 2nd paragraph too. See it as event, make your plan, start the creation, done
  21. if you mean this <button value="Test " width=65 height=19 back="L2UI_ch3.smallbutton2_over" fore="L2UI_ch3.smallbutton2">
  22. You can create int[],list or even do a for loop but instead of that CategoryType enum isn't exist with healer category?
  23. What you mean don't working? explain your problem...
  24. getClassId() returns enum, so do it getClassId().getId()
  25. Its obvious that is there (RequestBypassToServer) but not in mysql connection. Debug your code and find your line
×
×
  • 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