Protein Posted February 28, 2017 Posted February 28, 2017 Hi mxc and sorry for my secound question to the Buffer effect. I had open already a Topic about this, Baggos help me but I not looked well... I get effect but only on the npc. Is it possible to get effect also on player which is buffing? Here is my old Topic: http://www.maxcheaters.com/topic/213046-acis-buffer/?do=findComment&comment=2623442 Hope you can help me. Thanks!
0 'Baggos' Posted February 28, 2017 Posted February 28, 2017 When you get buffs, npc cast the skill, and you get the effect. You need both? Cast + effect for your player?
0 Protein Posted February 28, 2017 Author Posted February 28, 2017 Yes I want both... Cast on npc and effect to player.
0 'Baggos' Posted February 28, 2017 Posted February 28, 2017 Cast on npc and effect to player. Already I gave you this.. Maybe you want to make buffs like prophet does in himself?
0 Protein Posted February 28, 2017 Author Posted February 28, 2017 Already I gave you this.. Maybe you want to make buffs like prophet does in himself? you are right ! I Change my npc back to NPC Template and work. But when I Change NPC to Fake NPC it dosent effect... is this possible to add effects to the fake npc ? Code of the fake NPC: http://pastebin.com/hdwgkuuQ
0 'Baggos' Posted March 1, 2017 Posted March 1, 2017 is this possible to add effects to the fake npc ? Yep.. Replace this pastebin. Changes (hitTime): - player.broadcastPacket(new MagicSkillUse(this, player, 1218, 1, 5, 0)); + player.broadcastPacket(new MagicSkillUse(this, player, 1218, 1, 700, 0)); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(1218)); - player.broadcastPacket(new MagicSkillUse(this, player, buffid, buff.getLevel(), 0, 0)); + player.broadcastPacket(new MagicSkillUse(player, player, buffid, 1, 700, 0)); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(buffid)); - player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0)); + player.broadcastPacket(new MagicSkillUse(player, player, id, 1, 700, 0)); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(id)); If you want a player to get buffs like prophet does in himself (I mean the player will use/cast the skill), you should change < this, > to < player, >
0 Protein Posted March 1, 2017 Author Posted March 1, 2017 Yep.. Replace this pastebin. Changes (hitTime): - player.broadcastPacket(new MagicSkillUse(this, player, 1218, 1, 5, 0)); + player.broadcastPacket(new MagicSkillUse(this, player, 1218, 1, 700, 0)); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(1218)); - player.broadcastPacket(new MagicSkillUse(this, player, buffid, buff.getLevel(), 0, 0)); + player.broadcastPacket(new MagicSkillUse(player, player, buffid, 1, 700, 0)); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(buffid)); - player.broadcastPacket(new MagicSkillUse(this, player, id, buff.getLevel(), 0, 0)); + player.broadcastPacket(new MagicSkillUse(player, player, id, 1, 700, 0)); + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(id)); If you want a player to get buffs like prophet does in himself (I mean the player will use/cast the skill), you should change < this, > to < player, >Thanks man! You can lock it.
Question
Protein
Hi mxc and sorry for my secound question to the Buffer effect.
I had open already a Topic about this, Baggos help me but I not looked well... I get effect but only on the npc.
Is it possible to get effect also on player which is buffing?
Here is my old Topic: http://www.maxcheaters.com/topic/213046-acis-buffer/?do=findComment&comment=2623442
Hope you can help me. Thanks!
7 answers to this question
Recommended Posts