Skip to content

Forgotten Scroll skill

Featured Replies

  • Author

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;
			
		}
		
	}
	
}

 

i am very sorry that i will say this to you infocus but i cant hold it in :(
 

you are trying to make a server but you dont have the knowledge for it,
you are trying to fix code and you dont know programming 

you even had issues creating a simple passive skill

if you want to become a developer learn how to code then try to create or change things
being in the process of making a server is not the right move for you right now. 

try things on your own ( start with simple xmls ) then learn more complex things, no hate just some truth.

  • Author

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 ? 

i cant help you fix that coz i dont know java and if i dont know anything about something i dont try to fix it i first try to learn more about it, even if someone helps you fix this you will not be better at java, you will not have learned anything from this, you will not be able to fix the next problem on your own either even if sweets or someone else helps you with this problem.if i need a java problem fixed i have 2 options, learn java or pay someone who knows java to make it.
 

  • Author

OKay, I want to pay someone to fix this. It is someone available? Or you can do this?

  • Author

ah, okay then.

Wow, you are getting close to clean file that's good. But again, why goddamn brackets without if statement?! 

 

Edit your code in eclipse, see errors in real time. God.

 

https://pastebin.com/aNJWk7XT

  • Author

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"

  • Author

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;
			
		}
		
	}
	
}

 

Wow, you expect the server will read your minds that you want to add a skill?

 

Code it.

 

AND FOR FACKS SAKE, WHY YOU ADDED THOSE USELESS, BREAKING CODE BRACKETS?!?!

 

God, you are such a weird guy. 

 

You have clean file, now try code your shit. 

  • Author

:)) my shit? it is a simple code :)

  • Author

but okay, with you can't speak somebody. I pay to somebody to make npc with those skills.

11 minutes ago, SweeTs said:

Wow, you expect the server will read your minds that you want to add a skill?

 

Code it.

 

AND FOR FACKS SAKE, WHY YOU ADDED THOSE USELESS, BREAKING CODE BRACKETS?!?!

 

God, you are such a weird guy. 

 

You have clean file, now try code your shit. 

b7WUwK4.gif

  • Author

:) all you can do it this? :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.