Jump to content

Recommended Posts

Posted

In this guide i show you how to create own trasnformation.

 

In this guide i take Mutant Overlord Transform, and here is final result:

 

 

12964012.png

 

 

1) Go to gameserver/data/scripts/transformations and create new file MutantOverlord.java

 

Insert this code

 

package transformations;

import com.l2jserver.gameserver.datatables.SkillTable;
import com.l2jserver.gameserver.instancemanager.TransformationManager;
import com.l2jserver.gameserver.model.L2Transformation;

public class MutantOverlord extends L2Transformation
{
private static final int[] SKILLS = {686,687,688,689,690,691,797,5491,619};
public MutantOverlord()
{
	// id, colRadius, colHeight
	super(555, 20, 34);
}

public void onTransform()
{
	if (getPlayer().getTransformationId() != 555 || getPlayer().isCursedWeaponEquipped())
		return;

	transformedSkills();
}

public void transformedSkills()
{
	// Divine Rogue Stun Shot
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(686, 1), false);
	// Divine Rogue Double Shot
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(687, 1), false);
	// Divine Rogue Bleed Attack
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(688, 1), false);
	// Divine Rogue Deadly Blow
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(689, 1), false);
	// Divine Rogue Agility
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(690, 1), false);
	// Sacrifice Rogue
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(691, 1), false);
	// Divine Rogue Piercing Attack
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(797, 1), false);
	// Decrease Bow/Crossbow Attack Speed
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(5491, 1), false);
	// Transform Dispel
	getPlayer().addSkill(
;SkillTable.getInstance().getInfo(619, 1), false);

	getPlayer().setTransform
AllowedSkills(SKILLS);
}

public void onUntransform()
{
	removeSkills();
}

public void removeSkills()
{
	// Divine Rogue Stun Shot
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(686, 1), false);
	// Divine Rogue Double Shot
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(687, 1), false);
	// Divine Rogue Bleed Attack
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(688, 1), false);
	// Divine Rogue Deadly Blow
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(689, 1), false);
	// Divine Rogue Agility
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(690, 1), false);
	// Sacrifice Rogue
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(691, 1), false);
	// Divine Rogue Piercing Attack
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(797, 1), false);
	// Decrease Bow/Crossbow Attack Speed
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(5491, 1), false);
	// Transform Dispel
	getPlayer().removeSkill&
#40;SkillTable.getInstance().getInfo(619, 1), false);

	getPlayer().setTransform
AllowedSkills(EMPTY_ARRAY);
}

public static void main(String[] args)
{
	TransformationManager.getInstanc
e().registerTransformation(new MutantOverlord());
}
}

 

If you want create your own npc, so you need to change:

 

All names: MutantOverlord

super(555, 20, 34);

555 - transform id, but you can leave it 555

20 - colRadius

34 - colHeight

 

Moreover you can change skills, i think you find where need to change :)

 

 

Now insert our transform into data/scripts.cfg

 

transformations/MutantOverlord.java

 

 

2)Go to gameserver/data/stats/skills and create new file 55555-55599.xml

 

and insert this code:

 

	<skill id="555555" levels="1" name="Mutant Overlord">
	<set name="itemConsumeCount" val="1" />
	<set name="target" val="TARGET_SELF" />
	<set name="skillType" val="BUFF" />
	<set name="operateType" val="OP_ACTIVE" />
	<set name="transformId" val="555" />
	<cond msgId="1509">
		<pla
yer olympiad="false" />
	</cond>
	<for>
		<eff
ect name="Transformation" time="6000" val="0" /> <!-- Transformation lasts 1 hour -->
	</for>
</skill>

 

 

3) Go to etcitem.sql create new item (I will use Apiga - 9142 ).

Find Handler and write ItemSkills, near skill write 555555-1;

 

4) With FileEdit open transformdata.dat (you can found in system directory)

 

And in end add these two lines

 

555	0	22736    
;0	LineageEffect.s_u833_transform	
LineageEffect.s_u833_transform	0	0
0	0
555	1	22736    
;0	LineageEffect.s_u833_transform	
LineageEffect.s_u833_transform	0	0
0	0

 

 

22736 - Monster ID, in my guide its Mutant Overlord

 

 

That all, you have mutant overlord transform :)

 

 

P.s. Moderators: Edit my language mistakes :)

  • Upvote 1
  • 1 year later...
  • 3 weeks later...
Posted

Moding client i think is innevitable in order to make tha transformation work skeygeta.Because all the graphics u see in the game are from the client part.The gameplay and the variables comes from the code either l2j or other packs.

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • @Celestine ban him please this same scammer   
    • https://jmp.sh/akQ30Yon   Watch the video and see if the spirit of Lineage 2 is still there?
    • 新产品!快来抢购独家新品,以最优价格购买! ➡带文件验证的 Facebook Business Manager (BM) | 绑定到已激活的 Business Manager 账户 | 限额 $50(第一天)+ $250(后续天数)| 价格从 $25 起 ➡在 Fragment.com 上验证的 Telegram 资料 | 账户通过真实文件验证 | 包含 Telegram 账户格式:TDATA + SESSION + JSON + 2FA + 密码 | 地区:MIX | 价格从 $30 起 ➡Telegram 哈萨克斯坦 +7 | 格式:TDATA + SESSION + JSON | 无垃圾邮件限制 | 2FA 启用 | 账户年龄:从 3 天起 | 价格从 $2.5 起 ➡Adobe Creative Cloud 订阅 7 天 / 30 天 / 3 个月 / 1 年(任选时长)| 所有应用和所有语言可用 | AI 功能 1000+ 积分 | 个人账户 | 价格从 $5 起 可通过网站或 Bot 在我们的商店购买! 有效链接: 数字商品商店(网站):进入 商店 Telegram Bot:进入 – 通过 Telegram 方便访问商店。 其他服务: Telegram Stars 购买 Bot:进入 – 快速且划算地购买 Telegram Stars。 SMM 面板:进入 – 推广您的社交媒体账户。 我们为您呈现当前购买我们产品和服务的促销和特别优惠列表: 1. 九月在我们的商店(网站、Bot)购买可使用优惠码 OCTOBER2025(8% 折扣)!首次购买也可使用优惠码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣 — 注册后按照格式发布用户名:“SEND ME BONUS, MY USERNAME IS…” — 发布在我们的论坛帖中! 3. 第一次 SMM 面板试用可获得 $1 — 只需在我们网站(Support)打开主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和 Stars 购买 Bot 中赠送 Telegram Stars! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
    • 新产品!快来抢购独家新品,以最优价格购买! ➡带文件验证的 Facebook Business Manager (BM) | 绑定到已激活的 Business Manager 账户 | 限额 $50(第一天)+ $250(后续天数)| 价格从 $25 起 ➡在 Fragment.com 上验证的 Telegram 资料 | 账户通过真实文件验证 | 包含 Telegram 账户格式:TDATA + SESSION + JSON + 2FA + 密码 | 地区:MIX | 价格从 $30 起 ➡Telegram 哈萨克斯坦 +7 | 格式:TDATA + SESSION + JSON | 无垃圾邮件限制 | 2FA 启用 | 账户年龄:从 3 天起 | 价格从 $2.5 起 ➡Adobe Creative Cloud 订阅 7 天 / 30 天 / 3 个月 / 1 年(任选时长)| 所有应用和所有语言可用 | AI 功能 1000+ 积分 | 个人账户 | 价格从 $5 起 可通过网站或 Bot 在我们的商店购买! 有效链接: 数字商品商店(网站):进入 商店 Telegram Bot:进入 – 通过 Telegram 方便访问商店。 其他服务: Telegram Stars 购买 Bot:进入 – 快速且划算地购买 Telegram Stars。 SMM 面板:进入 – 推广您的社交媒体账户。 我们为您呈现当前购买我们产品和服务的促销和特别优惠列表: 1. 九月在我们的商店(网站、Bot)购买可使用优惠码 OCTOBER2025(8% 折扣)!首次购买也可使用优惠码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣 — 注册后按照格式发布用户名:“SEND ME BONUS, MY USERNAME IS…” — 发布在我们的论坛帖中! 3. 第一次 SMM 面板试用可获得 $1 — 只需在我们网站(Support)打开主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和 Stars 购买 Bot 中赠送 Telegram Stars! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
  • Topics

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