-
Posts
23 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by tomka
-
I got trouble when run gameserver. How can i fix it? 1. ERROR in \AugmentShop.java (at line 122) statement.setByte(5, item.getElementals().getElement()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Cannot invoke getElement() on the array type Elementals[] ---------- 2. ERROR in \AugmentShop.java (at line 123) statement.setInt(6, item.getElementals().getValue()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Cannot invoke getValue() on the array type Elementals[]
-
Very nice share, and my opinion we make it with Anti AFK in TVT event. Player likes to kill someone and get reward. Thanks for share.
-
[Share] .levelup and .leveldown command
tomka replied to Orgyilkos's topic in Server Shares & Files [L2J]
i try to edit something code for l2jserver. Hope it work. Create java file: LevelCommands.java in voicedcommand folder /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package handlers.voicedcommandhandlers; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate; import com.l2jserver.gameserver.model.base.Experience; /** * @author Mentor * @date 2009.09.05 */ public class LevelCommands implements IVoicedCommandHandler { private static final String[] _voicedCommands = { "levelup", "leveldown" , "downlevel" , "uplevel" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { int itemID = 57; int itemCountUp = 1000000; int itemCountDown = 200000; if (command.equalsIgnoreCase("levelup") || command.equalsIgnoreCase("uplevel")) { if (activeChar.getInventory().getInventoryItemCount(itemID, 0) >= itemCountUp && activeChar.getStat().getLevel() < 85) { InventoryUpdate iu = new InventoryUpdate(); activeChar.getInventory().destroyItemByItemId("Adena", itemID, itemCountUp, activeChar, null); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(iu); activeChar.addExpAndSp(Experience.LEVEL[activeChar.getStat().getLevel() + 1] - Experience.LEVEL[activeChar.getStat().getLevel()], 0); activeChar.sendMessage("Level UP."); } else if(activeChar.getInventory().getInventoryItemCount(itemID, 0) >= 1000 && activeChar.getStat().getLevel() == 85){ activeChar.sendMessage("Sorry. You get maximum lv."); } else { activeChar.sendMessage("Havent enought item."); } } else if (command.equalsIgnoreCase("leveldown") || command.equalsIgnoreCase("downlevel")) { if (activeChar.getInventory().getInventoryItemCount(itemID, 0) >= itemCountDown && activeChar.getStat().getLevel() > 1) { InventoryUpdate iu = new InventoryUpdate(); activeChar.getInventory().destroyItemByItemId("Event Medal", itemID, itemCountDown, activeChar, null); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(iu); activeChar.getStat().removeExpAndSp((activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1]), 0); activeChar.sendMessage("Level DOWN"); } else if(activeChar.getInventory().getInventoryItemCount(itemID, 0) >= itemCountDown && activeChar.getStat().getLevel() == 1){ activeChar.sendMessage("Sorry. You get lowest lv."); } else { activeChar.sendMessage("Havent enought item."); } } return true; } public String[] getVoicedCommandList() { return _voicedCommands; } } Register in MasterHandler.java VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new LevelCommands()); -
[Request] Custom Jail System.
tomka replied to tomka's question in Request Server Development Help [L2J]
i agree and understand your voice, Matim. Just wanna make it more interesting. First, they know the rule of private server like we learn social rule. Second, social divides 3 force Good & bad & ugly (look like a cowboy film huh? :P) Third, game not only entertainment is also the social of ppl... why dun make it more real Your solution is we make a NPC in the Jail :D and they must buy item and using it and be-released? Thanks for your advise, Matim. -
Thanks for share ! Very useful for server Anti bot. But link cant download. Plz re-upload file. How we can BAN anyone without evident?
-
New Dwarf enchant system + enchant Step for l2jserver
tomka replied to morpheus2399's topic in Server Shares & Files [L2J]
New Dwarf enchant system ? Cant explain what different between 2 enchant dwarf and normal enchant? Note : when you build any features plz explain clearly. More information just waste you some sentence but very helpful with us. I got idea about chance reduce: after safe chance rate reduce from 100% with any rate (0.3% or 2% or else). And i wonder we have 3 type of enchant scroll (crystal, bless, normal), why we dont modify chance all of them? Each type has other rate, it make more fun and more risk. And last one i can think right now, crystal enchant scroll fail and destroy item... make it not be. PS: Thanks 4 share. -
[Share] Teleport to other player for an item
tomka replied to Rizel's topic in Server Shares & Files [L2J]
It can use for l2jserver, cuz i try but many differently class... -
I have a idea but could not make it, hope Dev_team can help me make l2 server more fun...
-
We can make very good custom enchant system, which is belong to your formula. But careful when change core. 2 file need change requestenchantitem.java and abstractEnchantpacket.java (search by window explorer 4 paths). And change in abstractenchantpacket.java the lines has _isBless: int myCount; for (myCount = 0; myCount < Config.ENCHANT_MAX_WEAPON; myCount++) { if (myCount > Config.ENCHANT_SAFE_MAX){ chance = "make your formula here!!!"; } } Good luck.
-
Thanks so much. It's work fine now.
-
i try to test on l2jserver and something differently.. anyone using it on l2jserver Freya?
-
To dleogr: The error line when i put your code in my freya is SystemMessage sm = new SystemMessage(SystemMessageId.AVAILABLE_AFTER_S1_S2_HOURS_S3_MINUTES); The contruction SystemMessage(SystemMessageId) is not visible. What is mean?
-
[GUIDE]Skill: Adena To Coin Of Luck
tomka replied to EdenEternal's topic in Server Development Discussion [L2J]
We can think like this, wanna buy heal/mana/esc potions/sroll or something else :D by exchanging your money (adena or coin or anything). Anyone has idea to enchant this skill to make create more item? hehe.. -
[Share] PvP/PK/Clan Status NPC
tomka replied to Luffy®'s topic in Server Development Discussion [L2J]
I downloaded and will testing in Freya soon. Thanks for share. Nice NPC with custom client :P -
[Share] Top Pvp / Pk Npc For L2j Server.....
tomka replied to Papaditsa's topic in Server Shares & Files [L2J]
Nice for share... -
Java - How to create Your own /commands
tomka replied to Matim's topic in Server Development Discussion [L2J]
Thank for reply celko. Ill try and no spam more in here. -
Java - How to create Your own /commands
tomka replied to Matim's topic in Server Development Discussion [L2J]
Mean must compile, Matim? I just wanna check understand your sentense. English not mother language... sry. -
[share]Custom NPC: auto-enchant
tomka replied to WhiteFace's topic in Server Development Discussion [L2J]
Thank 4 share. Anyone test okie? -
Java - How to create Your own /commands
tomka replied to Matim's topic in Server Development Discussion [L2J]
1st, Sorry Matim about i reply in here. I got trouble when edit other voiced command .heal to /heal - i created a new heal.java in the gameserver\data\scripts\handlers\usercommandhandlers. - heal.java content below. - And in MasterHandle.java, i try to register userHandleCommand but no success.. - i just trainer and dont clear all java syntax, sry about it. import handlers.usercommandhandlers.*; private static void loadUserHandlers() { UserCommandHandler.getInstance().registerUserCommandHandler(new heal()); } - I run the server and got this error: 1. ERROR in gameserver\data\scripts\handlers \usercommandhandlers\heal.java (at line 23) public class heal implements IUserCommandHandler ^^^^ The type heal must implement the inherited abstract method IUserCommandHandler.u seUserCommand(int, L2PcInstance) 2. ERROR in gameserver\data\scripts\handlers \usercommandhandlers\heal.java (at line 33) if (command.equalsIgnoreCase("heal") && (activeChar.isInsideZone(L2Chara cter.ZONE_PEACE))) ^^^^^^^ command cannot be resolved /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package handlers.usercommandhandlers; import com.l2jserver.gameserver.handler.IUserCommandHandler; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.actor.L2Character; public class heal implements IUserCommandHandler { private static final int[] COMMAND_IDS = { 129 }; public boolean useUserCommand(int id, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("heal") && (activeChar.isInsideZone(L2Character.ZONE_PEACE))) { activeChar.stopSkillEffects(176); activeChar.stopSkillEffects(139); activeChar.stopSkillEffects(420); activeChar.stopSkillEffects(406); activeChar.getStatus().setCurrentHp(activeChar.getMaxHp()); activeChar.getStatus().setCurrentMp(activeChar.getMaxMp()); activeChar.getStatus().setCurrentCp(activeChar.getMaxCp()); } return true; } /** * * @see net.sf.l2j.gameserver.handler.IUserCommandHandler#getUserCommandList() */ public int[] getUserCommandList() { return COMMAND_IDS; } } -
[GUIDE] Updating without loosing data !
tomka replied to eKoIce's topic in Server Development Discussion [L2J]
Very nice guide. Thank 4 share -
[SHARE]Npc level regress [FREYA L2J]
tomka replied to remixed's topic in Server Shares & Files [L2J]
We can write bypass no gain exp? Anyone can help me? Thanks alot... -
[SHARE]Npc level regress [FREYA L2J]
tomka replied to remixed's topic in Server Shares & Files [L2J]
Your source not same name of folder in the zip. Check the name and solve it. You can use it for Gracia Epilogue cuz it's custom quest only. Thanks for reading. -
[SHARE]Npc level regress [FREYA L2J]
tomka replied to remixed's topic in Server Shares & Files [L2J]
I have same prob, cant be use for Gracia Epilogue?