Jump to content

Recommended Posts

Posted

-------Hi guyZ------

 

This is a guide for how to make your own transformation skill.

 

Ok let’s get started

 

First let’s do the server side thing:

 

Download the transform file and change the name of the file like this:

 

-Transform change to the name of the mob that you will use for this skill (it will also be the name of the skill) ex : Valakas, DoomKnight just make sure that it is the exact name and you typed it together.

-.txt change to .java

 

Now open it and look for the caps typed text and change it like this :

 

- THE NAME OF THE TRANSFORMATION = the name you have put on the java file earlier

-THE TEMPLATE ID OF THE TRANSFORMATION = here you put the template id you will have to put in the transformdata.dat

-COLLISION RADIUS & COLLISION HEIGHT = for this just copy them from npc sql.

- For the skills you will have to put it like this :

this.getPlayer().addSkill(SkillTable.getInstance() .getInfo(skillid, level), false);

 

Don’t delete that 3 skills that are there because it will cause bugs.

Now save it and copy it in gameserver-data-scripts-transformations

 

Now go in your gameserver-data-stats-skills and open 0500-0599.xml and add a new skill like this :

<skill id="YOUR SKILL ID" levels="1" name="Transform THE MOB NAME">

<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="1500"/>

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

<set name="transformId" val="HERE YOU ADD THE ID YOU WILL HAVE TO ADD IN TRANSFORMDATA.DAT LIKE IN JAVA FILE"/>

<set name="castRange" val="-1"/>

<set name="effectRange" val="-1"/>

<for>

<effect count="1" name="Transformation" time="1800" val="0"/>

</for>

</skill>

 

-Now just add the skill to a player.

Ok now for the client part open your skillgrp.dat and add the skill in there like this :

 

541 1 1 31 -1 1 1.5000000 1 D icon.skilltransform1 0 0 0 0 -1 -1

 

replace 541 whit YOUR SKILL ID.

 

Open skillname-e.dat and add :

541 1 a,Transform Grail Apostle\0 a,Transform into a Grail Apostle.\0 a,none\0 a,none\0

 

replace 541 whit YOUR SKILL ID

replace “Transform Grail Apostle” whit Transform THE MOB NAME

 

Open skillsoundgrp.dat and add :

 

541 1 SkillSound8.transform_cast 250.0000000 40.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 250.0000000 50.0000000

 

replace 541 whit YOUR SKILL ID

Open transformdata.dat

 

541 0 13091 0 LineageEffect.s_u833_transform LineageEffect.s_u833_transform

 

replace 541 whit your npc id and 13091 whit the mob template id

 

And you are done

 

Just add the skill to sql and it will be ready.

 

Download link

http://rapidshare.com/files/103542135/transform.txt

 

 

Credits:_RageZone_

  • SweeTs locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...