Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Help (https://postpacific.mmorpg-game.online/forumdisplay.php?f=37)
-   -   ≈ Cheapshot related (https://postpacific.mmorpg-game.online/showthread.php?t=3179)

knife_sj 30.01.2006 02:16

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
//-------------
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


knife_sj 30.01.2006 07:55

no one? :?

Co0L 30.01.2006 08:00

may be set "effective_range = -1" http://la2.ru/forum/style_emoticons/default/unsure.gif

Eliot 30.01.2006 13:01

why just not remove mana consumption for bows ? Or reduce it ?

Aenwe 30.01.2006 19:06

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

KTPSMF 30.01.2006 20:06

i wanted to say same thing :x

knife_sj 31.01.2006 00:23

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:

Originally Posted by Co0L

ill try it, ill notice tomorrow :P

top-gear 31.01.2006 15:37

tell us if you got any progress. also tell us if you have any working "risk" sa's

knife_sj 02.02.2006 19:37

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

khul 06.02.2006 02:30

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.

knife_sj 08.02.2006 01:25

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?

knife_sj 10.02.2006 20:50

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

with this i have XXX damage on target pc and his mp healed -.-

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:

avatard 10.02.2006 23:47

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
mp_consume is the key to getting it right, the item_skill you might want to change into something substantional for the players of yours, so they know the SA 'works'


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.
the general attack getting 2 on the mp value spent on a shot should point you straight to the normal way of getting things done when you are making a c1 server to suite c3 rules or your player needs.

avatard 10.02.2006 23:51

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.

khul 11.02.2006 02:47

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
With this you shouldnt have dmg on target.
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 =)

knife_sj 18.02.2006 01:26

Quote:

Originally Posted by khul
What about this ? (i dont have server to test it on otherwise i would test myself...)

With this you shouldnt have dmg on target.
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 =)

i've already tested this... and the result is that when u equip the bow u get a new skill in your skills tab and u can use it when u want :P

knife_sj 23.02.2006 06:57

bupm :D is an important thing :P

Sire 16.03.2006 19:36

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

Mattho 16.03.2006 22:11

Sire > fortunately for us^^

knife_sj 17.03.2006 07:59

lol, anyway i've couldnt finish it :P


All times are GMT. The time now is 22:50.