-
Posts
1,403 -
Credits
0 -
Joined
-
Last visited
-
Days Won
32 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by melron
-
Help AdminCommandHandler
melron replied to asdfycacaa's question in Request Server Development Help [L2J]
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 -
Help AdminCommandHandler
melron replied to asdfycacaa's question in Request Server Development Help [L2J]
debug wordlist array in order to see what strings are saved. print the size or loop it -
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..
-
Help Clan Hall. Please Help((
melron replied to developer951's question in Request Server Development Help [L2J]
the owner got 2 warning points. topic locked -
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
-
Help Save the place before teleportation aCis
melron replied to l2jkain's question in Request Server Development Help [L2J]
-
Guide Create Your Voiced Command In Java
melron replied to SamDev-Coder's topic in Server Shares & Files [L2J]
the answer is in nightw0lf's link. try to understand what you have to change. Btw, learn some basics before you continue... -
mage mcrit, and hero wep
melron replied to remigas's question in Request Server Development Help [L2J]
oh didnt know that.. -
mage mcrit, and hero wep
melron replied to remigas's question in Request Server Development Help [L2J]
what thing exists? -
mage mcrit, and hero wep
melron replied to remigas's question in Request Server Development Help [L2J]
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) -
Help Probability with two matrices
melron replied to KillSwith's question in Request Server Development Help [L2J]
Could you post some code in order to help us? -
Help Save the place before teleportation aCis
melron replied to l2jkain's question in Request Server Development Help [L2J]
before the teleport begins (to the arena) , store their location in a map . -
Did you try the code i wrote?
-
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);
-
TownWarManager:106
-
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
-
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
-
You need 2 database connections. 1st for saving the color and the 2nd to restore it
-
Whats your problem?
- 148 replies
-
- discussion
- lipo
-
(and 2 more)
Tagged with:
-
Help Hello !! , How i can enable Attribute system for B/A Grades
melron replied to Pamela32's question in Request Server Development Help [L2J]
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 -
Help Hello !! , How i can enable Attribute system for B/A Grades
melron replied to Pamela32's question in Request Server Development Help [L2J]
Is this a retail code or you just created it? You know what i will mention right? -
Help Increase Max exp/adena
melron replied to sotid's question in Request Server Development Help [L2J]
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 -
LF How to make an armor look like another
melron replied to l2bartdev's topic in [Request] Client Dev Help
some checks in Userinfo.java and Charinfo.java would be enough -
Help ERROR INSTALLING ACIS SERVER
melron replied to thepsolartek's question in Request Server Development Help [L2J]
No! Means that we have an exception that is null... <3