Jump to content

milosvamp

Members
  • Posts

    146
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by milosvamp

  1. /* * Copyright (C) 2004-2016 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.targethandlers; import com.l2jserver.gameserver.handler.ITargetTypeHandler; import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.skills.Skill; import com.l2jserver.gameserver.model.skills.targets.L2TargetType; /** * Target Pet handler. * @author UnAfraid */ public class Pet implements ITargetTypeHandler { @Override public L2Object[] getTargetList(Skill skill, L2Character activeChar, boolean onlyFirst, L2Character target) { if (activeChar.hasPet()) { return new L2Character[] { activeChar.getSummon() }; } return EMPTY_TARGET_LIST; } !!!!!!!! >>>HERE SHOULD BE 45 <<<< !!!!!!!!!!!!!1 @Override public Enum<L2TargetType> getTargetType() { return L2TargetType.PET; } } Is this what are we talking about ? But 45 doesn't have anyting
  2. Hey guys, I have another question for you..... Whenever i try to name a pet inside game I got this error: This is the image of the problem.... Sorry for quallity I did it with phone.... Here is the SQL of my pets table in my DB -- Table structure for pets -- ---------------------------- DROP TABLE IF EXISTS `pets`; CREATE TABLE `pets` ( `item_obj_id` int(10) unsigned NOT NULL, `name` varchar(16) DEFAULT NULL, `level` smallint(2) unsigned NOT NULL, `curHp` int(9) unsigned DEFAULT '0', `curMp` int(9) unsigned DEFAULT '0', `exp` bigint(20) unsigned DEFAULT '0', `sp` int(10) unsigned DEFAULT '0', `fed` int(10) unsigned DEFAULT '0', `ownerId` int(10) NOT NULL DEFAULT '0', `restore` enum('true','false') NOT NULL DEFAULT 'false', PRIMARY KEY (`item_obj_id`), KEY `ownerId` (`ownerId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Any ideas ?? :/
  3. Hey guys, I've seen there is an NPC buffer already existing on my server and he has HTML code like this ( tho couldn't find him in NPCS, IDK where is he registered and how ) <a action="bypass -h npc_%objectId%_Buff 274">Dance of Fire</a> Now, I wanted to do the same with another NPC but it didn't work, console says: " Unknown NPC Bypass: "Buff 274" NpcId blabla" Why is this ? And where should I register this NPC that it's not " Unknown anymore " Thank you in advance !
  4. Damn, what if I want to keep the encryption in case of hackers....But if I just want to check what pass does an acc have ?
  5. what's the command for it ? because I can't see them in my database, I just see an encrypted code
  6. and one more thing, this thing with passwords, how do you snoop that ? :D i can change passwords whenever i want but they are encrypted in the databasa, you said there is a way to see them in the game ? how :D ?
  7. oh, I see, thank you very much.... but it loads kinda very slow, why is that, any idea ?
  8. and how do I do it ? I've tried selecting it as a target and then //snoop blabla or how do I do it ?
  9. Guys, is it possible as a GM to see someones PM ( private chat - message ) inside game ?
  10. hey guys, I wanted to ask you about this clan dismissing penalty, when I dismiss a member for example, I want to remove the penalty. I want to make it possible that people can invite eachother even after dismissing one member... without penalty for waiting. I've found this setting into the configurations and it seems easy to change, but the text in configurations says that I have to edit the JAVA CONFIGS also for this changing, otherwise it won't get changed... Any ideas how to do it ? Or what java file is responsible for this ?
  11. Nevermind, yes it it ! Thank you very much guys. Just change the 753 line with: final L2PcInstance rewardedPlayer = (players.size() == 0) ? null : players.get(getRandom(players.size())); Thank you guys one more time ! The post can be locked.
  12. Thank you VERY MUCH !!! Special thanks to melron and wongerlt !!!!!!!
  13. hm ok thanks, and if i want more classes i just add comma and put another number ? Like: if (player.getClassId().getId() == 97,==92,==93) ?
×
×
  • Create New...