Jump to content
  • 0

Forgotten Scroll skill


InFocus

Question

In another order of things, i want to say something. How it is possible to felt buff when i open a fotgotten scroll to get skil? It is not possible to get Skill, without felt buff when i open the book to learn skill?

What i must edit for work property this thing?

Link to comment
Share on other sites

Recommended Posts

  • 0

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

 

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.
 

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

Link to comment
Share on other sites

  • 0

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. 

Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock