
InFocus
Members-
Posts
306 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by InFocus
-
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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. -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
:) all you can do it this? :) -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
but okay, with you can't speak somebody. I pay to somebody to make npc with those skills. -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
:)) my shit? it is a simple code :) -
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
-
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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; } } } -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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" -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
ah, okay then. -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
OKay, I want to pay someone to fix this. It is someone available? Or you can do this? -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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 ? -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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; } } } -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
I delete it master, but i think it is something wrong -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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; } } -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
No work kid, and i have 30 years old. And i try to edit return true, but no work -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
i try, i put MasterSkillsForgotten at xml, but no work. -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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; } } } -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
and how i can register hander, with what name, and how i can edt the item in xml -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
and at the item in code, i must specific item id and levl? -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
i don't want ready code, cuz i want to learn something in eclipse. I just want to know how i can make it. -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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? -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
It is not hard, but when i don't know, it is huge code for me -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
http:// Then? What i must add? player.addSkill(7041,1) , This? -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
Ok, i create a new file MasterSkillsForgotten.java, Then? :D -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
HOW I CAN CREATE NEW HANDLER? WHAT IMPORTS I NEED AND HOW I CAN CREATE :))) -
Help Forgotten Scroll skill
InFocus replied to InFocus's question in Request Server Development Help [L2J]
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://