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

    • 寒冷的冬天 — 火热的折扣。使用促销代码 WINTER 即可在我们商店的所有购买中获得 10% 折扣! 有效链接: 数字商品商店(网站): 前往 其他服务和产品: 商店 Telegram 机器人: 前往 – 通过 Telegram 信使方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快速且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 ,用于购买我们服务的产品和服务: 1. 您可以在首次购买时使用促销代码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣——只需在我们的网站注册后按以下模板填写您的用户名:"SEND ME BONUS, MY USERNAME IS..." ——您需要在我们的论坛主题中发布! 3. SMM 面板首次试用可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和 Stars 购买机器人中每周都会赠送 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 ➡ ✉ Email: solomonbog@socnet.store
    • Cold winter — hot discounts. Use promo code WINTER and get 10% off on all purchases in our store! Active links: Digital goods store (Website): Go to Other services and products: Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." – you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Cold winter — hot discounts. Use promo code WINTER and get 10% off on all purchases in our store! Active links: Digital goods store (Website): Go to Other services and products: Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." – you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Telegram Stars — a new digital currency inside Telegram. And right now, the best opportunities are opening for profitable purchases and participation in exclusive events. And you can purchase Telegram Stars safely and at the best price in our bot. Active links: Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. Other services and products: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: 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