Jump to content

Recommended Posts

Posted

well i will explain here how do we do a custom transformation

 

i explain what we need first off all

 

a small knowledge of xml understand how skills work how to  create ur own buffs/debuffs/magik/atacking skills and other types

 

also a knowledge to edit client

 

also how to edit java not creating it we dont need uncompiled pack to do this we can do it on compiled allready

 

AND!!! download notepad++ it will make ur work way much easyer trust me  Smiley

 

 

ON TO  THE GUIDE!! create copy a xml from gameserver/data/stats/skills file delete all the skills inside but keep the <list>and </list> and keep the encoding at the start id the xml rename it to whatever number we wont i chose 75100-75199 copy an existing transform skill

 

heres the anakim trans

 

<skill id="664" levels="1" name="Transform Anakim">

 <set name="mpConsume" val="31"/>

 <set name="target" val="TARGET_SELF"/>      

 <set name="skillType" val="BUFF"/>

 <set name="isMagic" val="true"/>

 <set name="operateType" val="OP_ACTIVE"/>

 <set name="hitTime" val="2500"/>

 <set name="reuseDelay" val="14400000"/>

 <set name="staticReuse" val="true"/>

 <set name="staticHitTime" val="true"/>

 <set name="transformId" val="306"/>

 <cond msgId="1509">

   <player olympiad="false"/>

 </cond>

 <for>

   <effect name="Transformation" time="1800" val="0"/> <!-- Transformation lasts 30 minutes -->

 </for>

</skill>

 

the key part here is the transform id the transform id u find it in gameserver\data\scripts\transformations there u will see the transform id (so then how do we know thats anakim ?) now in system file theres a file named transformdata.dat open it and u will see go to id 306 and u will 2 lines like that

306   0   13100   0   LineageEffect.s_u833_transform   LineageEffect.s_u833_transform   0   0   0   0

306   1   13100   0   LineageEffect.s_u833_transform   LineageEffect.s_u833_transform   0   0   0   0

where 13100 is the anakim one another anakim sql so copy this lines change the transform id and the npc id to what u wont  wen ur done with it encode it again with file editor

 

so next step u copy the transform skill of anakim and u change the name to transform antharas etc and change the transform id and change also the skill number and rename it to 75100 or 75176 whatever u wont and put level 1  

 

NOW on to the java file copy a transform java from the path i showed to u before

 

import net.sf.l2j.gameserver.instancemanager.TransformationManager;

import net.sf.l2j.gameserver.model.L2Transformation;

 

public class Frog extends L2Transformation

{

  public Frog()

  {

     // id, colRadius, colHeight

     super(111, -1, 20, 9);

  }

 

  public void onTransform()

  {

     if (getPlayer().getTransformationId() != 111 || getPlayer().isCursedWeaponEquipped())

        return;

 

     transformedSkills();

  }

 

  public void transformedSkills()

  {

     // Decrease Bow/Crossbow Attack Speed

     getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);

     // Transfrom Dispel

     getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false);

 

     getPlayer().setTransformAllowedSkills(new int[]{5491,619});

  }

 

  public void onUntransform()

  {

     removeSkills();

  }

 

  public void removeSkills()

  {

     // Decrease Bow/Crossbow Attack Speed

     getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);

     // Transfrom Dispel

     getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false);

 

     getPlayer().setTransformAllowedSkills(new int[]{});

  }

 

  public static void main(String[] args)

  {

     TransformationManager.getInstance().registerTransformation(new Frog());

  }

}

Where frog u will put Antharas in all 3 places and down where it says register new trans that have transform name where 20 and 9 is width and height pu the ur desired width and heidth of ur mob

where -1 leave it as it is and rename the file to ur transform name antharas in this case now wen ur done with the java file save it to the path where all transformations are then edit the scripts.cfg in gameserver/data/scripts.cfg

 

ade this line transformations/Zombie.java in our case we will put transformations/Antharas.java where in the group where all transformations are now close it and save it

 

now we edit system the skilgrp.dat put this line with ur transform skill id

75100   1   7   1   44   4294967295   1   2.50000000   1   A      icon.skilltransform1      0   0   0   0   -1   -1 where 75100 put  ur transform skill id

 

and skillsoundgrp.dat

 

75100   1            0.00000000   0.00000000   0.00000000   0.00000000   0.00000000   0.00000000            0.00000000   0.00000000   0.00000000   0.00000000   0.00000000   0.00000000            0.00000000   0.00000000   0.00000000   0.00000000   0.00000000   0.00000000   chrsound.m_hfighter_call   chrsound.f_hfighter_call   chrsound.m_darkelf_call   chrsound.f_darkelf_call   chrsound.m_dwarf_type_c   chrsound.f_dwarf_type_c   chrsound.m_elf_call   chrsound.f_elf_call   chrsound.m_hmagician_call   chrsound.f_hmagician_call   chrsound.m_orc_fighter_type_c   chrsound.f_orc_fighter_type_c   chrsound.m_orc_magician_type_c   chrsound.f_orc_magician_type_c   chrsound.MKamael_TypeC_S   chrsound.FKamael_TypeC_S      chrsound.m_hfighter_throw   chrsound.f_hfighter_throw   chrsound.m_darkelf_throw   chrsound.f_darkelf_throw   chrsound.m_dwarf_throw   chrsound.f_dwarf_throw   chrsound.m_elf_throw   chrsound.f_elf_throw   chrsound.m_hmagician_throw   chrsound.f_hmagician_throw   chrsound.m_orc_fighter_throw   chrsound.f_orc_fighter_throw   chrsound.m_orc_magician_throw   chrsound.f_orc_magician_throw   chrsound.MKamael_throw   chrsound.FKamael_throw      250.00000000   50.00000000 where 75100 put  ur transform skill id

 

and skillname.dat

75100   1   a,Transform Anakim\0   a,Transform to Anakim.\0   a,none\0   a,none\0

where 75100 put  ur transform skill id and where Transform Anakim put ur transformation name

 

now go ingame press shift click on urself skills ade skills down in the window put ur skill id and level and press the skill and ZOOMG  theres ur trans XD if u need any help lemme know in this topic dont pm me cuz others must learn also if they have some mistake in the code hope u enjoyed my guide have a nice transcrazyness XD!!!

 

AND!!! Credits gows to me sectis XD thanks for reading and reminding me of that hehe

  • 4 months later...
  • 3 months later...
  • 2 months 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

    • This update resaves 25_25 from the original (with sounds) (without the cave below) Some emitter fixes (removed waterfalls with high-poly meshes) The geodata is old, but it works Everything else is unchanged Download P.S. The effect files are taken from the high client for Interlude, so if you're experiencing critical skills, use the default ones for your Version.  
    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 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
  • 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