Jump to content
  • 0

Forgotten Scroll skill


Question

Posted

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?

Recommended Posts

  • 0
Posted

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

 

  • 0
Posted

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.

  • 0
Posted

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.
 

  • 0
Posted

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

  • 0
Posted

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

 

  • 0
Posted

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. 

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...