Casting a skill : Conversation and Lua method to target One player

It’s possible to cast a skill though conversation, but we can’t choose the target or the level of the skill.
Is it there a lua function to do the same ?

For example if I use the conversation method, I will need the NPC to use Skill_buffradiustoggled in order to cast a skillbuff_Passive and affect the player.
However I want the skill casted by the NPC to affect only the player who is talking to him (there is a condition to cast the skill depending on the player).

The problem is in multiplayer the NPC will cast the skill and affect all players, so is there a way to prevent that ?
I know a workaround to cast the skill near the player through lua but it’s not pretty and might still affect other player at the same location.

Look at the NPC from the Death Vigil faction. When you do one part of the quest, he buff the player and that buff remain when you leave the area.

Thank you , it’s working.
It’s records is : /skills/nonplayerskills/questskills/orderenchant_buff
The template is skill_buffother that cast a skill with the template skillbuff_passive.

I tried to use the quest function to cast skills but it doesn’t work either with

  • skill_buffother
    -skill_buffselfduration

Maybe it’s because there is no “caster” ?
So how does this quest action works ?

I’m sorry but I can’t provide you with more information, it’s been so long since I played the story quest of the game :slight_smile:

Might want to look into the quest itself and see how it’s built, maybe the NPC cast the Buff but the trigger come from the quest.

Probably Lua scripted.

Hi Murlocking, no worry you were great help, I don’t know if you read my previous answers but it works with an NPC Casting the skill throught conversation (skill_buffother).
I might use this but I am trying to know if the Quest function also works like the conversation function.

Oh I see, hehe. A little misunderstood! :rolleyes: