Jump to content

melron

Legendary Member
  • Posts

    1,403
  • Credits

  • Joined

  • Last visited

  • Days Won

    32
  • Feedback

    0%

Everything posted by melron

  1. The whole structure must be change. As I can see from he's code wordlist[0] is the gm command and the wordlist[1] is the value. Its like {"Admin_gmspeed"} {"4"} Thats why it takes direclty pos[1] So. If im not mistaken you forgot to write your value? //admin_fake_players 50 try this one: switch(command) { case admin_create_fake_players: if (wordList[1] == null || wordList[1].isEmpty()) { activeChar.sendMessage("create_fake_players [val]"); return false; } int count = 0; try { count = Integer.parseInt(wordList[1]); } catch(NumberFormatException e) { activeChar.sendMessage("value must be a number."); } for (int i =0; i< count; i++) new FakeGameClient(null); break; } return true; in case you dont want to add more commands here, remove the whole switch case.... If statement is enough
  2. debug wordlist array in order to see what strings are saved. print the size or loop it
  3. Yes it is possible. If your plan is donation via pms and paypal and bla bla you have to be carefull. on the other hand you can put automatic paypal button with a good description but the type must be Donation and not any other thing (you have more chances to refund them). And the last thing is , do not withdraw money before the refund date limit passed..
  4. the owner got 2 warning points. topic locked
  5. if you could search about the message as nightw0lf said, you could find that the player is in observer mode somehow.. if (activeChar.isInObserverMode()) { activeChar.sendPacket(SystemMessageId.OBSERVERS_CANNOT_PARTICIPATE); activeChar.sendPacket(ActionFailed.STATIC_PACKET); return; } public boolean isInObserverMode() { return !_isInOlympiadMode && !_savedLocation.equals(Location.DUMMY_LOC); } Try this one: public boolean isInObserverMode() { - return !_isInOlympiadMode && !_savedLocation.equals(Location.DUMMY_LOC); + return !_isInOlympiadMode && !_savedLocation.equals(Location.DUMMY_LOC) && !isInTvTEvent(); } public int getTeleMode() Create this new method in order to get the necessary data and check if the player is registered
  6. the answer is in nightw0lf's link. try to understand what you have to change. Btw, learn some basics before you continue...
  7. oh didnt know that..
  8. what thing exists?
  9. 1) take a look what calcMCrit method returns return mRate > Rnd.get(1000); 2) I will stick with your example. The skill you should edit is 3589 (Special Ability: Infinity Stinger) <set name="activationChance" val="5" /> this chance will call the other skill (3590)
  10. Could you post some code in order to help us?
  11. before the teleport begins (to the arena) , store their location in a map .
  12. Did you try the code i wrote?
  13. what is 'i'? you could use a null check first... final TownZone tempZone = ZoneManager.getInstance().getZoneById(i, TownZone.class); if (tempZone != null) tempZone.setIsTWZone(true); else System.out.println("Zone not found with id " + i);
  14. TownWarManager:106
  15. If you want to search something about l2 xml files then listen sweets and use eclipse. In any other case you can use this one as i do , just place it in the directory where the files are located. If you are afraid of download such things. make it by urself by creating a bat file and use the following code @echo off title [CONFIG SEARCH] cls echo. :find set /p text="enter search text here: " echo. echo.search text "%text%" result: findstr /I /N %text% *.xml echo. goto find p.s it can be used for config/propertis and other files too. just change findstr /I /N %text% *.xml
  16. Wrong section. Seems like you didnt update the tables in db
  17. Lets talk about your code :D Why the hell you are using instance. If you want instance use singleton lol but a static way would be the same and less words up on the call Rly now, freya doesnt have intintholder? lol Your new db fields are 'not null' but missing default value... All things will be fucked up (colors are used with integer.decode) where is printstacktrace? The only good thing is the try-with-resources but there you could add the PreparedStatement too ( you are not closing it at storeColor) Why you dont just edit the restore_character query and add one more field to be load + 1 line where the player is restoring data reported Gn <3
  18. You need 2 database connections. 1st for saving the color and the 2nd to restore it
  19. Whats your problem?
  20. ExChooseInventoryAttributeItem refer to the stone informations and not about what items must be shown. check at the stone's handler for any check. The first place to look up mustn't be a packet since is calling handler.... After all the checks should be collecting the items that pass the conditions and then probably run a specific packet that appearing items based on the above collection
  21. Is this a retail code or you just created it? You know what i will mention right?
  22. You cant. Even if you manage to edit the core side you will stuck in client. Means that you will be able to have more than 2147483647 but your inventory will still show 2147483647 adena... After hellbound if i'm not mistaken it can be done. so better add gold bars :p
  23. some checks in Userinfo.java and Charinfo.java would be enough
  24. No! Means that we have an exception that is null... <3
×
×
  • Create New...