![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
well i've made this skills for cheapshot
the bow (whens critical hit) use the skill (thats the idea) the skill is just like mana potion (heals certain amount of MP) but... the problem is, when i set me the skill and use it, i get X mp healed but when i make critical hit with the bow nothings happend >< i've tryied making that the X amount of MP healed = to 200 so when i made a critical it must healme 200 of mp, but nothing happed.... Tellme whats my error :P Code:
Itemdata
//-------------
item_begin weapon 4818 [noble_elven_bow_cheapshot] item_type=weapon slot_bit_type={lrhand} armor_type=none etcitem_type=none blessed=0 weight=1760 default_action=action_equip consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=8 spiritshot_count=2 immediate_effect=1 price=0 default_price=2000000 item_skill=[none] critical_attack_skill=[s_special_ability_cheapshot1] material_type=mithril crystal_type=c crystal_count=1148 is_trade=1 is_drop=1 is_destruct=1 physical_damage=252 random_damage=5 weapon_type=bow can_penetrate=0 critical=12 hit_modify=-3.75 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=500 effective_range=600 damage_range={0;0;10;0} attack_speed=293 reuse_delay=1500 mp_consume=8 magical_damage=68 durability=97 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
item_begin weapon 4824 [eminence_bow_cheapshot] item_type=weapon slot_bit_type={lrhand} armor_type=none etcitem_type=none blessed=0 weight=1720 default_action=action_equip consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=10 spiritshot_count=3 immediate_effect=1 price=0 default_price=6130000 item_skill=[none] critical_attack_skill=[s_special_ability_cheapshot2] material_type=chrysolite crystal_type=c crystal_count=2452 is_trade=1 is_drop=1 is_destruct=1 physical_damage=323 random_damage=5 weapon_type=bow can_penetrate=0 critical=12 hit_modify=-3.75 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=500 effective_range=600 damage_range={0;0;10;0} attack_speed=293 reuse_delay=1500 mp_consume=9 magical_damage=83 durability=97 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
item_begin weapon 4830 [hazard_bow_cheapshot] item_type=weapon slot_bit_type={lrhand} armor_type=none etcitem_type=none blessed=0 weight=1700 default_action=action_equip consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=3 spiritshot_count=1 immediate_effect=1 price=0 default_price=13100000 item_skill=[none] critical_attack_skill=[s_special_ability_cheapshot3] material_type=blood_steel crystal_type=b crystal_count=1746 is_trade=1 is_drop=1 is_destruct=1 physical_damage=400 random_damage=5 weapon_type=bow can_penetrate=0 critical=12 hit_modify=-3.75 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=500 effective_range=600 damage_range={0;0;10;0} attack_speed=293 reuse_delay=1500 mp_consume=10 magical_damage=99 durability=97 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
item_begin weapon 5611 [soul_bow_cheapshot] item_type=weapon slot_bit_type={lrhand} armor_type=none etcitem_type=none blessed=0 weight=1660 default_action=action_equip consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=1 spiritshot_count=1 immediate_effect=1 price=0 default_price=27000000 item_skill=[none] critical_attack_skill=[s_special_ability_cheapshot4] material_type=oriharukon crystal_type=a crystal_count=2160 is_trade=1 is_drop=1 is_destruct=1 physical_damage=528 random_damage=5 weapon_type=bow can_penetrate=0 critical=12 hit_modify=-3.75 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=500 effective_range=600 damage_range={0;0;10;0} attack_speed=227 reuse_delay=1100 mp_consume=11 magical_damage=126 durability=95 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
skilldata
/--------------
skill_begin skill_name = [s_special_ability_cheapshot1] /* [?? ???] */ skill_id = 6000 level = 1 operate_type = A1 magic_level = 1 effect = {{i_mp;500;diff}} operate_cond = {} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = 0 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0 reuse_delay = 0 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
skill_begin skill_name = [s_special_ability_cheapshot2] /* [?? ???] */ skill_id = 6001 level = 1 operate_type = A1 magic_level = 1 effect = {{i_mp;500;diff}} operate_cond = {} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = 0 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0 reuse_delay = 0 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
skill_begin skill_name = [s_special_ability_cheapshot3] /* [?? ???] */ skill_id = 6002 level = 1 operate_type = A1 magic_level = 1 effect = {{i_mp;500;diff}} operate_cond = {} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = 0 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0 reuse_delay = 0 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
skill_begin skill_name = [s_special_ability_cheapshot4] /* [?? ???] */ skill_id = 6003 level = 1 operate_type = A1 magic_level = 1 effect = {{i_mp;500;diff}} operate_cond = {} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = 0 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0 reuse_delay = 0 attribute = attr_none effect_point = 0 target_type = self affect_scope = single next_action = none skill_end
Skill_pch
//-------------
[s_special_ability_cheapshot1] = 1536001
[s_special_ability_cheapshot2] = 1536257
[s_special_ability_cheapshot3] = 1536513
[s_special_ability_cheapshot4] = 1536769
Skill_pch2
//-------------
1536001 -1 0 0 0 0 29 -1 0 0 0 0 -12345
1536257 -1 0 0 0 0 29 -1 0 0 0 0 -12345
1536513 -1 0 0 0 0 29 -1 0 0 0 0 -12345
1536769 -1 0 0 0 0 29 -1 0 0 0 0 -12345
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
no one? :?
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Dec 2005
Posts: 120
|
may be set "effective_range = -1"
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Mar 2005
Posts: 368
|
why just not remove mana consumption for bows ? Or reduce it ?
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Apr 2005
Posts: 3
|
Why don't you just set mp_consume=8 to mp_consume=6? It's the easiest way and the most accurate way to do it :P
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Oct 2005
Posts: 367
|
i wanted to say same thing :x
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
but, that will do that the bow ALWAYS consume less mp
but cheapshot isnt always, is with a percent of chances, ie: emi bow haves 50@percent of consume 2 or 3 (dont remember exactly) if i set mp_consume=2 or 3 it will not be 50% will be 100% undestand? i guess this is the best way to do a cheapshot like offi :P Quote:
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Aug 2005
Posts: 605
|
tell us if you got any progress. also tell us if you have any working "risk" sa's
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
nope, doesnt work
any suggestions? :P more details: i want a skill for the bows that heals certain amount of MP when u hit critical, anything else... (im not good with skills) so if some1 that haves more experience with that please correct it :P |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Oct 2005
Posts: 153
|
of course it will not work...You are casting the skill on the target!
Did you ever checked it over another player? Give it a try , and you might see how his MP is increased. Maybe if use skill_type: A3 , you could emulate puch of doom skill , and then when skill is actually casted , you could recieve some kind of regeneration MP wich last 1 second as a buff instead of a being stunnned (like punch of doom does). Hope this helps , i dont have test server or i would test myself . If it does work post code for skill so other people can use it too. |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
but... " target_type = self " hmmm... let me think with this the Bow's mp is healed?? (we can say that the bow is the caster :P)
that is a good idea (punch of doom) :P... ill try it, tomorrow ill tell u anyway, if i can make it works ill post it... "cheapshot related", "helpme to finish" says something? |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
ok... my progress...
with A1 target mp is healed, tested on other character and yes... is his mp healed... tested with A3... this way: Code:
skill_begin skill_name = [s_special_ability_cheapshot1] /* [?? ???] */ skill_id = 6000 level = 1 operate_type = A3 magic_level = 1 effect = {{i_p_attack;1};{i_mp;500;diff}} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = -1 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0 reuse_delay = 0 activate_rate = -1 lv_bonus_rate = 0 abnormal_time = 1 abnormal_lv = 1 attribute = attr_none effect_point = 0 target_type = enemy affect_scope = single next_action = none skill_end
[s_special_ability_cheapshot1] = 1536001
1536001 -1 0 0 3 0 29 61 1 0 0 0 -12345
i've copyed/pasted punch_of_doom1 as khul saw but... i get the message "You can feel (nonameskill)'s effect" and just nothing happends... :cry: im freakin out my mind :roll: |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Feb 2005
Posts: 100
|
cheapshot reduces the mana consumption;
Code:
item_begin weapon 4830 [hazard_bow_cheapshot] item_type=weapon slot_bit_type={lrhand} armor_type=none etcitem_type=none blessed=0 weight=1700 default_action=action_equip consume_type=consume_type_normal initial_count=1 maximum_count=1 soulshot_count=3 spiritshot_count=1 immediate_effect=1 price=0 default_price=13100000 item_skill=[none] critical_attack_skill=[none] material_type=blood_steel crystal_type=b crystal_count=1746 is_trade=1 is_drop=1 is_destruct=1 physical_damage=400 random_damage=5 weapon_type=bow can_penetrate=0 critical=12 hit_modify=-3.75 avoid_modify=0 dual_fhit_rate=0 shield_defense=0 shield_defense_rate=0 attack_range=500 effective_range=600 damage_range={0;0;10;0} attack_speed=293 reuse_delay=1500 mp_consume=5 magical_damage=99 durability=97 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
why stumble upon a barely possible chance-based solution while you could get a round(2, original mp consumption). from the description of aforementioned bow Code:
description=[When launching a general attack, there is a 42% probability that MP consumption will be decreased to 2. |
|
|
|
|
#14 |
|
Архивный участник
Join Date: Feb 2005
Posts: 100
|
and if you want to get a skill to affect both player and victim try using A3 type, yet it won't work as a critical_attack_skill one, because while the victim is set, the player part of the equation would be a template npc, an n.u.l.l., which isn't going to be anywhere close to the player wielding the bow.
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Oct 2005
Posts: 153
|
What about this ? (i dont have server to test it on otherwise i would test myself...)
Code:
skill_begin skill_name = [s_special_ability_cheapshot1] /* [?? ???] */ skill_id = 6000 level = 1 operate_type = A1 magic_level = 1 effect = {{i_mp;500;diff}} is_magic = 0 mp_consume2 = 0 cast_range = -1 effective_range = -1 skill_hit_time = 0 skill_cool_time = 0 skill_hit_cancel_time = 0 reuse_delay = 0 activate_rate = 42 lv_bonus_rate = 0 abnormal_time = 1 abnormal_lv = 1 attribute = attr_none effect_point = -781 target_type = self affect_scope = single next_action = none skill_end
If bow takes 7 mp per shot, then this skill should heal 5 mp after shot with a chance of 42% so you would end up using 2mp for the shot. note: Maybe you wanna change A1 for A2 and see how it works... If it heals you the 500 mp then set it to 5 mp instead of the 500 to get the real effect. note2:If i works with A· type giving mp to attacker and attacked , then if attacked is NPC the mp he recieves doesnt matter....and if attacked is player..... having extra MP will not let you live more if you stand against an archer either. So it would still be a fine fix and way better than just lowering consumition of MP for the item Hope this helps ya and work =) |
|
|
|
|
#16 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
Quote:
|
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
bupm
is an important thing :P
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Feb 2006
Posts: 87
|
Your looking too much into it. Well more specifically, you no longer have to look that far into it.
Just use item_data and change the MP consume on the cheap shot bow. Retail changed cheap shot to use less MP always, not just a chance of it happening. Cheap Shot Originally, this ability randomly reduced the amount of MP used when attacking with a bow. It has been changed so that a very little amount of MP is always used. That is taken directly from lineage2.com |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Jan 2006
Posts: 188
|
Sire > fortunately for us^^
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Feb 2005
Posts: 165
|
lol, anyway i've couldnt finish it :P
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|