
ton3
Members-
Posts
168 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by ton3
-
they are not changing emails anymore? they used to change, thank you for info
-
:troll:
-
Hi everyone, what is the first thing that you guys do to start a code? sorry for the newbie question :D
-
all sold, thanks to everyone who bought from me
-
read pm
-
Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO) ava.io.FileNotFoundException: C:\Users\geogi\Desktop\L2 Server Lucera3\gameserver\config\GMAccess.xml (The system cannot find the file specified)
-
Win + R > cmd > ipconfig /flushdns and netsh winsock reset, try this.
-
top dual C +10 Pm me here, paypal only.
-
LF Looking For Java Dev.
ton3 replied to ernis12345's question in Request Server Development Help [L2J]
i have seen a lot of retardeds, but you go beyond it -
Help Skill Re-Use Visual Glitch
ton3 replied to ton3's question in Request Server Development Help [L2J]
what about this? anything related to skillcooltime? public class RequestSkillCoolTime extends L2GameClientPacket { L2GameClient _client; @Override public void readImpl() { _client = getClient(); } @Override public void runImpl() { final L2PcInstance pl = _client.getActiveChar(); if (pl != null) pl.sendPacket(new SkillCoolTime(pl)); } @Override public String getType() { return "[C] 0xa6 RequestSkillCoolTime"; } } -
Guys, which part of the core is responsible for sending char skill re-use? My problem is: Use skill, open skill tab (alt + k) and you will see ur skill is ready to use again but you can't use because its still on cooldown.
-
Hi guys, I'm trying to make a Gift box who give newbies some items but I'm facing a problem. - It doesn't let me add more than 1 item with chance 100% - I can only add items like this: Item 1 with 50% and Item 2 with 50% = 100% - If I try to add 2 items like this: Item 1 with 100% and item 2 with 100% chance it doesn't work. /* * L2jFrozen Project - www.l2jfrozen.com * * 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 2, 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package com.l2jfrozen.gameserver.handler.itemhandlers; import org.apache.log4j.Logger; import com.l2jfrozen.gameserver.cache.HtmCache; import com.l2jfrozen.gameserver.datatables.csv.ExtractableItemsData; import com.l2jfrozen.gameserver.datatables.sql.ItemTable; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.model.L2ExtractableItem; import com.l2jfrozen.gameserver.model.L2ExtractableProductItem; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; import com.l2jfrozen.gameserver.network.SystemMessageId; import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage; import com.l2jfrozen.util.random.Rnd; /** * @author FBIagent 11/12/2006 */ public class ExtractableItems implements IItemHandler { private static Logger LOGGER = Logger.getLogger(ItemTable.class); public void doExtract(final L2PlayableInstance playable, final L2ItemInstance item, int count) { if (!(playable instanceof L2PcInstance)) return; final L2PcInstance activeChar = (L2PcInstance) playable; final int itemID = item.getItemId(); if (count > item.getCount()) return; while (count-- > 0) { L2ExtractableItem exitem = ExtractableItemsData.getInstance().getExtractableItem(itemID); if (exitem == null) return; int createItemID = 0, createAmount = 0; final int rndNum = Rnd.get(100); int chanceFrom = 0; for (final L2ExtractableProductItem expi : exitem.getProductItems()) { final int chance = expi.getChance(); if (rndNum >= chanceFrom && rndNum <= chance + chanceFrom) { createItemID = expi.getId(); createAmount = expi.getAmmount(); break; } chanceFrom += chance; } exitem = null; if (createItemID == 0) { activeChar.sendMessage("Nothing happened."); return; } if (createItemID > 0) { if (ItemTable.getInstance().createDummyItem(createItemID) == null) { LOGGER.warn("createItemID " + createItemID + " doesn't have template!"); activeChar.sendMessage("Nothing happened."); return; } if (ItemTable.getInstance().createDummyItem(createItemID).isStackable()) { activeChar.addItem("Extract", createItemID, createAmount, item, false); } else { for (int i = 0; i < createAmount; i++) { activeChar.addItem("Extract", createItemID, 1, item, false); } } SystemMessage sm; if (createAmount > 1) { sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S); sm.addItemName(createItemID); sm.addNumber(createAmount); } else { sm = new SystemMessage(SystemMessageId.EARNED_ITEM); sm.addItemName(createItemID); } activeChar.sendPacket(sm); sm = null; } else { activeChar.sendMessage("Item failed to open"); // TODO: Put a more proper message here. } activeChar.destroyItemByItemId("Extract", itemID, 1, activeChar.getTarget(), true); } } // by Azagthtot @Override public void useItem(final L2PlayableInstance playable, final L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; if (item.getCount() > 1) { String message = HtmCache.getInstance().getHtm("data/html/others/extractable.htm"); if (message == null) { doExtract(playable, item, 1); } else { message = message.replace("%objectId%", String.valueOf(item.getObjectId())); message = message.replace("%itemname%", item.getItemName()); message = message.replace("%count%", String.valueOf(item.getCount())); playable.sendPacket(new NpcHtmlMessage(5, message)); } } else { doExtract(playable, item, 1); } } @Override public int[] getItemIds() { return ExtractableItemsData.getInstance().itemIDs(); } } anyone can help?
-
Im not sure but I believe you should look inside L2Character.java for stopMove.
-
u care to share ur knowledge then? or better I even pay if you fix it.
-
same problem
-
Scarlet Van Halisha (last transformation) is not attacking anyone, he just sit there and do nothing even if you hit him or use any skill on him, anyone had similar problem? no errors on eclipse/gameserver http://pastebin.com/vT6EuAg9
-
Help Litle Help With Zone Checker
ton3 replied to ton3's question in Request Server Development Help [L2J]
I managed to make it work, close pls and sorry for triple post. -
Help Litle Help With Zone Checker
ton3 replied to ton3's question in Request Server Development Help [L2J]
SweeTs, I have this code and still not working, when partyleader goes outside zone he can teleport inside and all ur party will teleport again to the respawn. private boolean isAllowedEnter(L2PcInstance player) //Checks if player & his party is allowed to teleport. { if (player.getParty() != null) { for (final L2PcInstance member : player.getParty().getPartyMembers()) { if (member.isInsideZone(ZoneId.FLAG_ZONE)) return false; else { return true; } } if( player.getParty().getMemberCount() >= MinPtMembers && PartyItemsOk(player))//Party Length & Item Checker { return true; } else { return false; } } return false; } -
Help Litle Help With Zone Checker
ton3 replied to ton3's question in Request Server Development Help [L2J]
I renamed ZoneId to smthing else and it worked, also thank u tryskell for the link. -
Help Litle Help With Zone Checker
ton3 replied to ton3's question in Request Server Development Help [L2J]
The primitive type int of ZoneId does not have a field PEACE this error shows now. -
Help Litle Help With Zone Checker
ton3 replied to ton3's question in Request Server Development Help [L2J]
http://joxi.ru/v29dLdqfxZPjmG private static final int ZoneId = 19; //Here you have to set your zone Id The method isInsideZone(ZoneId) in the type L2Character is not applicable for the arguments (int) what this error means? -
Help Litle Help With Zone Checker
ton3 replied to ton3's question in Request Server Development Help [L2J]
what for loop means? sry noob questions xd -
Help Litle Help With Zone Checker
ton3 replied to ton3's question in Request Server Development Help [L2J]
is there any file I could look to add this check? -
Help Litle Help With Zone Checker
ton3 replied to ton3's question in Request Server Development Help [L2J]
fixed by adding id to .xml file, SweeTs just another question. -When you are the partyleader and use SoE from the zone all the members from your party will stay inside. (no problem here) -If you are partyleader and talk to gk again you will teleport your party again to the respawn even if the party members are already inside ( this is my problem) How hard is to add a check to not let the partyleader teleport again inside if his party is already inside? I hope i was clear enough