Jump to content

InFocus

Members
  • Posts

    306
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by InFocus

  1. Help newbie or leave. Here it is people who wants to help and don't know java, like me. You know everything. But what u can do with this when u say `fack` `godamn` and another words which you are familly.
  2. :) all you can do it this? :)
  3. but okay, with you can't speak somebody. I pay to somebody to make npc with those skills.
  4. :)) my shit? it is a simple code :)
  5. I am looking for a developer to make for me one npc with all Master's Skills. With a resonable price! leave me message with skype
  6. This is all code /* * Copyright (C) 2004-2018 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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. * * L2J DataPack 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.itemhandlers; import com.l2jserver.gameserver.handler.IItemHandler; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.SystemMessageId; /** * Beast SoulShot Handler * @author Tempy */ public class MasterSkillsForgotten implements IItemHandler { @Override public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) { if (!playable.isPlayer()) { playable.sendPacket(SystemMessageId.ITEM_NOT_FOR_PETS); return false; } final L2PcInstance player = playable.getActingPlayer(); { player.sendMessage("It's Working"); return true; } } }
  7. It's no working your code SweeTs. I click to book, and don't open to add skill at skills. it is appear just message "It's working"
  8. OKay, I want to pay someone to fix this. It is someone available? Or you can do this?
  9. i am trying to learn now because u know how to explain. You are not my teacher, but i try to get better thinks from you. Well, How i can fix this ?
  10. Now the code it is like that /* * Copyright (C) 2004-2018 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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. * * L2J DataPack 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.itemhandlers; import com.l2jserver.gameserver.handler.IItemHandler; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.SystemMessageId; /** * Beast SoulShot Handler * @author Tempy */ public class MasterSkillsForgotten implements IItemHandler { @Override public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) { if (!playable.isPlayer()) { playable.sendPacket(SystemMessageId.ITEM_NOT_FOR_PETS); return false; } final L2PcInstance activeOwner = playable.getActingPlayer(); { activeOwner.sendMessage("Test"); return false; } } }
  11. I delete it master, but i think it is something wrong
  12. Okay, This is code, i think it is as you say. Check it please. /* * Copyright (C) 2004-2018 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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. * * L2J DataPack 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.itemhandlers; import com.l2jserver.gameserver.handler.IItemHandler; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.holders.SkillHolder; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.SystemMessageId; /** * Beast SoulShot Handler * @author Tempy */ public class MasterSkillsForgotten implements IItemHandler { @Override public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) { if (!playable.isPlayer()) { playable.sendPacket(SystemMessageId.ITEM_NOT_FOR_PETS); return false; } final L2PcInstance activeOwner = playable.getActingPlayer(); if (!activeOwner.hasSummon()) { return false; } if(!activeOwner.hasSummon()) { activeOwner.sendMessage("Test"); return false; } item.getId(); item.getCount(); final SkillHolder[] skills = item.getItem().getSkills(); if (skills == null) { return true; } return forceUse; } }
  13. No work kid, and i have 30 years old. And i try to edit return true, but no work
  14. i try, i put MasterSkillsForgotten at xml, but no work.
  15. And this is code, tell me if it's correct /* * Copyright (C) 2004-2018 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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. * * L2J DataPack 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.itemhandlers; import com.l2jserver.gameserver.handler.IItemHandler; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.holders.SkillHolder; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.SystemMessageId; /** * Beast SoulShot Handler * @author Tempy */ public class MasterSkillsForgotten implements IItemHandler { @Override public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) { if (!playable.isPlayer()) { playable.sendPacket(SystemMessageId.ITEM_NOT_FOR_PETS); return false; } final L2PcInstance activeOwner = playable.getActingPlayer(); if (!activeOwner.hasSummon()) { return false; } if (activeOwner.getSummon().isDead()) { return false; } final int itemId = item.getId(); final short shotConsumption = activeOwner.getSummon().getSoulShotsPerHit(); final long shotCount = item.getCount(); final SkillHolder[] skills = item.getItem().getSkills(); if (skills == null) { return false; } if (shotCount < shotConsumption) { // Not enough Soulshots to use. if (!activeOwner.disableAutoShot(itemId)) { } return false; } { // SoulShots are already active. return false; } } }
  16. and how i can register hander, with what name, and how i can edt the item in xml
  17. and at the item in code, i must specific item id and levl?
  18. i don't want ready code, cuz i want to learn something in eclipse. I just want to know how i can make it.
  19. And if i copy this, /* * Copyright (C) 2004-2015 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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. * * L2J DataPack 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.itemhandlers; import com.l2jserver.gameserver.model.actor.L2Playable; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.SystemMessageId; /** * Item skills not allowed on Olympiad. */ public class ItemSkills extends ItemSkillsTemplate { @Override public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) { final L2PcInstance activeChar = playable.getActingPlayer(); if ((activeChar != null) && activeChar.isInOlympiadMode()) { activeChar.sendPacket(SystemMessageId.THIS_ITEM_IS_NOT_AVAILABLE_FOR_THE_OLYMPIAD_EVENT); return false; } return super.useItem(playable, item, forceUse); } } i can paste in new package? and if yes, i must add something new?
  20. It is not hard, but when i don't know, it is huge code for me
  21. http:// Then? What i must add? player.addSkill(7041,1) , This?
  22. Ok, i create a new file MasterSkillsForgotten.java, Then? :D
  23. HOW I CAN CREATE NEW HANDLER? WHAT IMPORTS I NEED AND HOW I CAN CREATE :)))
  24. OK, i open ItemSkill.java and i add this line. Object player; player.addSkill(7041,1); now, i don't know if it's good, here it is pic http://
×
×
  • Create New...