Jump to content
  • 0

How To Make Npc Use Skills !


Hamscht

Question

Hello guys !

 

Me and my friend have developed a pretty nice Server Buffer with Navicat (mysql). He is using all the Buffs, Dances and Songs.

Now we want it to use a real healing skill to heal the Players. Maybe Battle Heal.

My question: Is there a command to make it cast a spell like Battle Heal ? Right now it makes the Heal Animation but it is handeled like a Buff ("...flew through you") and doesnt heal you.

 

For the Buffs it is something like "action="bypass -h makebuffs...".

Is there a command instead of makebuffs ? Maybe "castspell" or something ?

 

Thank you.

 

:happyforever:

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Put any skill id/animation you wish and voila.

 

 

else if (currentCommand.startsWith("heal"))
{
player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
player.setCurrentCp(player.getMaxCp());
MagicSkillUse msu = new MagicSkillUse(this, player, skill_id, 1, 500, 0);
player.broadcastPacket(msu);
 
final NpcHtmlMessage html = new NpcHtmlMessage(0);
html.setFile(getHtmlPath(getNpcId(), 0));
html.replace("%objectId%", getObjectId());
player.sendPacket(html);
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...