Quote:
|
Originally Posted by Sauron
it doesn't matter what i do, the mob can't see the skill, i tried with different handlers, different skill name, the critical_skill thing, i could say i tried everything.
|
Compile this:
Code:
class warrior_test
{
EventHandler ATTACKED(attacker, skill_name_id)
{
if (skill_name_id == @s_your_skill)
{
SoundEffect(attacker, "ItemSound.quest_accept");
}
}
Use this test skill in skilldata:
Code:
skill_begin skill_name = [s_your_skill] skill_id = 9999 level = 1 operate_type = A1 magic_level = 50 effect = {} is_magic = 2 mp_consume2 = 10 cast_range = 100 effective_range = 200 skill_hit_time = 10 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 15 attribute = attr_none effect_point = -700 target_type = enemy affect_scope = single next_action = none skill_end
Very important add also in skill pch !!
Then make an item as this:
Code:
item_begin etcitem 5234 [bighead_potion] item_type=etcitem slot_bit_type={none} armor_type=none etcitem_type=none blessed=0 weight=0 default_action=action_skill_maintain consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=0 spiritshot_count=0 immediate_effect=0 price=0 default_price=0 item_skill=[s_your_skill] critical_attack_skill=[s_your_skill] material_type=steel crystal_type=none crystal_count=0 is_trade=1 is_drop=1 is_destruct=1 physical_damage=0 random_damage=0 weapon_type=none can_penetrate=0 critical=0 hit_modify=0 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=0 effective_range=0 damage_range={} attack_speed=0 reuse_delay=0 mp_consume=0 magical_damage=0 durability=0 damaged=0 physical_defense=0 magical_defense=0 mp_bonus=0 category={} enchanted=0 html=[item_default.htm] equip_pet={0} magic_weapon=0 item_end
After made all, summon an npc, //setai warrior_test then use ur new item skill vs mob !!!
The mob will song quest accepted :wink: