Jump to content

Custom ChargeSoul


sacrifice

Recommended Posts

Hello

 

I dont find how is manage visuel effect of Kamael soul charge for create custom Chargesoul effect

I dont find in skillgrp.dat a visueleffectID and dont find effect in lineageeffect.u or lineageskilleffect link

 

Who can help me?

 

Thx

Link to comment
Share on other sites

I fund in L2Player.java in core, the code for start effect cast:

 

Quote

        // Npc -> Player absorb animation
        if (target != null)
            broadcastPacket(new ExSpawnEmitter(getObjectId(), target.getObjectId()), 500);

 

and in ExSpawnEmitter.java

/*
 * This program 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.
 * 
 * This program 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 com.l2jfree.gameserver.network.packets.server;

import com.l2jfree.gameserver.gameobjects.L2Npc;
import com.l2jfree.gameserver.gameobjects.L2Player;
import com.l2jfree.gameserver.network.packets.L2ServerPacket;

public class ExSpawnEmitter extends L2ServerPacket
{
	public ExSpawnEmitter(int playerObjectId, int npcObjectId)
	{
		_playerObjectId = playerObjectId;
		_npcObjectId = npcObjectId;
	}
	
	public ExSpawnEmitter(L2Player player, L2Npc npc)
	{
		_playerObjectId = player.getObjectId();
		_npcObjectId = npc.getObjectId();
	}
	
	@Override
	protected final void writeImpl()
	{
		writeC(0xfe);
		writeH(0x5d);
		writeD(_npcObjectId);
		writeD(_playerObjectId);
		writeD(0x00);
	}
	
	@Override
	public String getType()
	{
		return "SpawnEmitter";
	}
	
	private final int _npcObjectId;
	private final int _playerObjectId;
}

 

But I dont know it s possible to create custom spawnemitter link with other Lineageeffect?

 

 

Edited by sacrifice
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
Reply to this topic...

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