killkool
Posts : 7 Join date : 2011-06-14
| Subject: Patch skill to transform GuardsoftheDawn ( for quest 7 signes ) Fri Jun 17, 2011 5:18 am | |
| My First Contribution. GuardsoftheDawn have a problem, I have add skill "Guard's Ambush" Modifie GuardsoftheDawn.java - Code:
-
/* * 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 transformations;
import freya.world.gameserver.datatables.SkillTable; import freya.world.gameserver.instancemanager.TransformationManager; import freya.world.gameserver.model.L2Transformation;
public class GuardsoftheDawn extends L2Transformation { private static final int[] SKILLS = { 5491, 963, 619, }; public GuardsoftheDawn() { // id, colRadius, colHeight super(113, 8, 23.5); } @Override public void onTransform() { if (getPlayer().getTransformationId() != 113 || getPlayer().isCursedWeaponEquipped()) return; transformedSkills(); } public void transformedSkills() { // Decrease Bow/Crossbow Attack Speed getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false); // Hide getPlayer().addSkill(SkillTable.getInstance().getInfo(963, 1), false); // Transform Dispel getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false); getPlayer().setTransformAllowedSkills(SKILLS); } @Override public void onUntransform() { removeSkills(); } public void removeSkills() { // Decrease Bow/Crossbow Attack Speed getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false); // Hide getPlayer().removeSkill(SkillTable.getInstance().getInfo(963, 1), false); // Transform Dispel getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false); getPlayer().setTransformAllowedSkills(EMPTY_ARRAY); } public static void main(String[] args) { TransformationManager.getInstance().registerTransformation(new GuardsoftheDawn()); } }
| |
|
Willow Admin
Posts : 113 Join date : 2011-05-24
| Subject: Re: Patch skill to transform GuardsoftheDawn ( for quest 7 signes ) Fri Jun 17, 2011 5:39 pm | |
| Can you make a diff patch please? Forum text tag dosnt keep <tab> formating.
Someone test please.
| |
|
panua
Posts : 3 Join date : 2011-05-29
| Subject: Re: Patch skill to transform GuardsoftheDawn ( for quest 7 signes ) Sat Jun 18, 2011 4:26 am | |
| I tested it and the transformation skill is working! | |
|
Willow Admin
Posts : 113 Join date : 2011-05-24
| Subject: Re: Patch skill to transform GuardsoftheDawn ( for quest 7 signes ) Sat Jun 18, 2011 4:28 am | |
| Commited at http://trac.assembla.com/FreyaWorld/changeset/141 | |
|
Sponsored content
| Subject: Re: Patch skill to transform GuardsoftheDawn ( for quest 7 signes ) | |
| |
|