Jump to content
  • 0

Casting Skill In NPC Buffer


Question

Posted

Hi Everyone ... I'm modifying an NPC Buffers and saw a Server an NPC that I liked that the NPC Casts The Skill of Buffs and I can not fasilitar the NPC or scritps Archive ... regards...

 

 

7 answers to this question

Recommended Posts

  • 0
Posted

Hi Everyone ... I'm modifying an NPC Buffers and saw a Server an NPC that I liked that the NPC Casts The Skill of Buffs and I can not fasilitar the NPC or scritps Archive ... regards...

 

 

okay, u just have to use not the regular buffer method SkillTable.getInfo ... u should use: activeChar.doCast or useSkill

  • 0
Posted

				MagicSkillUse mgc = new MagicSkillUse(npc,player,validSkills[buff_num][0],validSkills[buff_num][1],5,0);
			player.broadcastPacket(mgc);

 

just add these lines, depends on your code. you need modifications.

  • 0
Posted

				MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, 500, 0); // 500 for full cast animation
			player.broadcastPacket(mgc);

  • 0
Posted

But I need this to L2JFrozen ....

 

and this is the line of a NPC Buffer Scripts

#Wind Walk
if event == "7":
st.takeItems(ADENA_ID,0)
SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"		
st.setState(COMPLETED)

 

Hes answer is right, you have 2 ways to add the buffs the good way aka how your buffer has it now and the lagg hell way which is what you want to do. And btw please DONT use a python buffer or python at all.

  • 0
Posted

But I need this to L2JFrozen ....

 

and this is the line of a NPC Buffer Scripts

#Wind Walk
if event == "7":
st.takeItems(ADENA_ID,0)
SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"		
st.setState(COMPLETED)

 

do you have source of your pack? if yes u can create a java method on L2PcInstance for the code Devilin gave you and u can call it on the python script directly, so do you have source? do u know compile?

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..