Hello, I'm making a dungeon quest with a boss that reduce his damage when you destroy a metin stone, but I don't understand how to use this function:
npc.set_vid_damage_mul or npc.set_vid_attack_mul
for example this is what I'm doing but it's not working, do i need to do it with set_unique spawn or how would be the correct way to make it work? Thank
Code
- when spawn_final_boss.server_timer begin
- if d.select(get_server_timer_arg()) then
- d.spawn_mob(1095, 350, 500);
- npc.set_vid_damage_mul(1095, 8)
- end
- end
- when 8110.kill begin
- d.setf("reduce_damage", d.getf("reduce_damage")+1);
- local stone_killed = d.getf("reduce_damage")
- npc.set_vid_damage_mul(1095, 8 - stone_killed)
- d.notice("Boss damage has been reduced.")
- end