![]() |
Cheapshot related
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 |
no one? :?
|
may be set "effective_range = -1" http://la2.ru/forum/style_emoticons/default/unsure.gif
|
why just not remove mana consumption for bows ? Or reduce it ?
|
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
|
i wanted to say same thing :x
|
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:
|
tell us if you got any progress. also tell us if you have any working "risk" sa's
|
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 |
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. |
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? |
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_endi'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: |
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_endwhy 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. |
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.
|
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_endIf 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 =) |
Quote:
|
bupm :D is an important thing :P
|
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 |
Sire > fortunately for us^^
|
lol, anyway i've couldnt finish it :P
|
| All times are GMT. The time now is 15:58. |