Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Hero Buff. (https://postpacific.loc-online.com/showthread.php?t=7093)

PyroMaker 12.03.2007 18:44

Hero Buff.
 
I'm not sure if someone has asked help for this before, I tried to search but couldn't find anything. Anyhow...

I'd like to know if it's possible to create a buff that only heroes can get. Like Chant of Hero or something like that.

A few people *cough* testdude *cough* have told me it can only be done by changing a few things in l2server.exe

Is that so?


Best regards,
PyroMaker.

seraphii 12.03.2007 19:15

Yes is pretty simple to do them.

nnightmare 12.03.2007 19:39

cool.. i loved those instructions up there.. but the hard part is, how u can give em automatically and take em out automatically when heros are selected and stop being one?

PyroMaker 12.03.2007 22:27

Double that.

mcrabben7 13.03.2007 00:28

I made it ^^ It's not perfect yet, but it will give heroes skills on login, and take them away on login. I know there is a flaw if a Hero loses Hero during the time they are logged in, and I didn't check anything with subclasses. But yes, it is possible.

You either need to create your own hero skill system, or you can do it via CacheD + SQL scripts or something similar.

m4rk 13.03.2007 00:55

I think cached system is the way to go, as you can make it so that every 5 mins it 'refreshes', I mean it checks if the hero is still a hero etc... :p

seraphii 13.03.2007 01:46

i put in skilldata the 5 skill:
skill_begin skill_name = [s_heroic_miracle]
skill_begin skill_name = [s_heroic_beserk]
skill_begin skill_name = [s_heroic_valor]
skill_begin skill_name = [s_heroic_grandeur]
skill_begin skill_name = [s_heroic_dread]

and make a sql script, when a player become a hero just put her name in the script and the skills automatic put on for 30 days and before his disapear, is not the easyway, but is way.

Osito2Dancer 24.06.2007 23:58

I used "lin_NominateHeroes" to add and delete the skills. A simple cursor that goes through all "heroes" and adds the skill by SQL. Dont know if it works, maybe i have to reload the server once every month, but it's better than nothing.

Oso

FidoW 25.06.2007 00:40

Quote:

Originally Posted by Osito2Dancer (Post 89559)
I used "lin_NominateHeroes" to add and delete the skills. A simple cursor that goes through all "heroes" and adds the skill by SQL. Dont know if it works, maybe i have to reload the server once every month, but it's better than nothing.

Oso

That will require restart the server. Best way is through CacheD

l2serverfull 25.06.2007 11:45

Quote:

Originally Posted by Osito2Dancer (Post 89559)
I used "lin_NominateHeroes" to add and delete the skills. A simple cursor that goes through all "heroes" and adds the skill by SQL. Dont know if it works, maybe i have to reload the server once every month, but it's better than nothing.

Oso

u have system? via sql?

l2serverfull 25.06.2007 11:50

Hero Skill :D

Code:

skill_begin        skill_name = [heroic_miracle]        /* [l2serverfull] */        skill_id = 395        level = 1        operate_type = A2        magic_level = 1        effect = {{p_physical_defence;{all};5400;diff};{p_magical_defence;{all};4050;diff};{p_speed;{all};5;per};{p_resist_dispel_by_category;slot_buff;-30;per}}        is_magic = 0        mp_consume2 = 69        item_consume = {[soul_ore];40}        cast_range = -1        effective_range = -1        skill_hit_time = 1        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 1800        activate_rate = -1        lv_bonus_rate = 0        basic_property = none        abnormal_time = 15        abnormal_lv = 1        abnormal_type = valakas_item        attribute = attr_none        effect_point = 0        target_type = self        affect_scope = single        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none}        skill_end               
skill_begin        skill_name = [heroic_berserker]        /* [l2serverfull] */        skill_id = 396        level = 1        operate_type = A2        magic_level = 77        effect = {{p_hit;{all};8;diff};{p_physical_attack;{all};500;diff};{p_physical_defence;{all};-25;per};{p_magical_defence;{all};-25;per};{p_magic_speed;{all};20;per};{p_magical_attack;{all};500;diff};{p_attack_speed;{all};20;per};{p_resist_dispel_by_category;slot_buff;-30;per};{p_resist_abnormal_by_category;slot_debuff;-10;per};{p_avoid;{all};-8;diff};{p_speed;{all};15;per}}        is_magic = 1        mp_consume1 = 14        mp_consume2 = 56        item_consume = {[soul_ore];40}        cast_range = -1        effective_range = -1        skill_hit_time = 1        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 1800        activate_rate = -1        lv_bonus_rate = 0        basic_property = none        abnormal_time = 15        abnormal_lv = 1        abnormal_type = valakas_item        attribute = attr_none        effect_point = 0        target_type = self        affect_scope = single        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none}        skill_end
skill_begin        skill_name = [heroic_valor]        /* [l2serverfull] */        skill_id = 1374        level = 1        operate_type = A2        magic_level = 77        effect = {{p_physical_attack;{all};250;diff};{p_resist_dispel_by_category;slot_buff;-30;per};{p_resist_abnormal_by_category;slot_debuff;-10;per};{p_physical_defence;{all};500;diff}}        is_magic = 1        mp_consume1 = 21        mp_consume2 = 84        item_consume = {[spirit_ore];80}        cast_range = 900        effective_range = 1400        skill_hit_time = 6        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 60        activate_rate = 40        lv_bonus_rate = 1        basic_property = wit        abnormal_time = 30        abnormal_lv = 1        abnormal_type = valakas_item        attribute = attr_unholy        effect_point = -993        target_type = self        affect_scope = pledge        affect_range = 900        affect_object = friend        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight}        skill_end
skill_begin        skill_name = [heroic_grandure]        /* [l2serverfull] */        skill_id = 1375        level = 1        operate_type = A2        magic_level = 76        effect = {{p_magic_critical_rate;-30;per};{p_physical_defence;{all};-30;per};{p_magical_defence;{all};-30;per};{p_avoid;{all};-8;diff};{p_shield_defence_rate;-50};{p_reduce_cancel;40;diff};{p_block_buff};{p_block_debuff}}        is_magic = 1        mp_consume1 = 21        mp_consume2 = 84        item_consume = {[spirit_ore];80}        cast_range = 900        effective_range = 1400        skill_hit_time = 6        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 60        activate_rate = 40        lv_bonus_rate = 1        basic_property = wit        abnormal_time = 30        abnormal_lv = 1        abnormal_type = multi_debuff        attribute = attr_unholy        effect_point = -993        target_type = enemy_only        affect_scope = single        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight}        skill_end
skill_begin        skill_name = [heroic_dread]        /* [l2serverfull] */        skill_id = 1376        level = 1        operate_type = A2        magic_level = 77        effect = {{i_run_away;30;20};{p_speed;{all};5;per}}        is_magic = 1        mp_consume1 = 14        mp_consume2 = 56        item_consume = {[spirit_ore];80}        cast_range = 400        effective_range = 900        skill_hit_time = 4        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 300        activate_rate = -1        lv_bonus_rate = 0        basic_property = none        abnormal_time = 300        abnormal_lv = 1        abnormal_type = multi_buff        attribute = attr_none        effect_point = 666        target_type = enemy_only        affect_scope = single        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight}        skill_end


Aikeleer 25.06.2007 11:57

I think those hero skills were shared many times before... but ok

Chobito 25.06.2007 18:05

Quote:

Originally Posted by l2serverfull (Post 89597)
Hero Skill :D

Code:

skill_begin        skill_name = [heroic_miracle]        /* [l2serverfull] */        skill_id = 395        level = 1        operate_type = A2        magic_level = 1        effect = {{p_physical_defence;{all};5400;diff};{p_magical_defence;{all};4050;diff};{p_speed;{all};5;per};{p_resist_dispel_by_category;slot_buff;-30;per}}        is_magic = 0        mp_consume2 = 69        item_consume = {[soul_ore];40}        cast_range = -1        effective_range = -1        skill_hit_time = 1        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 1800        activate_rate = -1        lv_bonus_rate = 0        basic_property = none        abnormal_time = 15        abnormal_lv = 1        abnormal_type = valakas_item        attribute = attr_none        effect_point = 0        target_type = self        affect_scope = single        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none}        skill_end               
skill_begin        skill_name = [heroic_berserker]        /* [l2serverfull] */        skill_id = 396        level = 1        operate_type = A2        magic_level = 77        effect = {{p_hit;{all};8;diff};{p_physical_attack;{all};500;diff};{p_physical_defence;{all};-25;per};{p_magical_defence;{all};-25;per};{p_magic_speed;{all};20;per};{p_magical_attack;{all};500;diff};{p_attack_speed;{all};20;per};{p_resist_dispel_by_category;slot_buff;-30;per};{p_resist_abnormal_by_category;slot_debuff;-10;per};{p_avoid;{all};-8;diff};{p_speed;{all};15;per}}        is_magic = 1        mp_consume1 = 14        mp_consume2 = 56        item_consume = {[soul_ore];40}        cast_range = -1        effective_range = -1        skill_hit_time = 1        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 1800        activate_rate = -1        lv_bonus_rate = 0        basic_property = none        abnormal_time = 15        abnormal_lv = 1        abnormal_type = valakas_item        attribute = attr_none        effect_point = 0        target_type = self        affect_scope = single        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none}        skill_end
skill_begin        skill_name = [heroic_valor]        /* [l2serverfull] */        skill_id = 1374        level = 1        operate_type = A2        magic_level = 77        effect = {{p_physical_attack;{all};250;diff};{p_resist_dispel_by_category;slot_buff;-30;per};{p_resist_abnormal_by_category;slot_debuff;-10;per};{p_physical_defence;{all};500;diff}}        is_magic = 1        mp_consume1 = 21        mp_consume2 = 84        item_consume = {[spirit_ore];80}        cast_range = 900        effective_range = 1400        skill_hit_time = 6        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 60        activate_rate = 40        lv_bonus_rate = 1        basic_property = wit        abnormal_time = 30        abnormal_lv = 1        abnormal_type = valakas_item        attribute = attr_unholy        effect_point = -993        target_type = self        affect_scope = pledge        affect_range = 900        affect_object = friend        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight}        skill_end
skill_begin        skill_name = [heroic_grandure]        /* [l2serverfull] */        skill_id = 1375        level = 1        operate_type = A2        magic_level = 76        effect = {{p_magic_critical_rate;-30;per};{p_physical_defence;{all};-30;per};{p_magical_defence;{all};-30;per};{p_avoid;{all};-8;diff};{p_shield_defence_rate;-50};{p_reduce_cancel;40;diff};{p_block_buff};{p_block_debuff}}        is_magic = 1        mp_consume1 = 21        mp_consume2 = 84        item_consume = {[spirit_ore];80}        cast_range = 900        effective_range = 1400        skill_hit_time = 6        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 60        activate_rate = 40        lv_bonus_rate = 1        basic_property = wit        abnormal_time = 30        abnormal_lv = 1        abnormal_type = multi_debuff        attribute = attr_unholy        effect_point = -993        target_type = enemy_only        affect_scope = single        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight}        skill_end
skill_begin        skill_name = [heroic_dread]        /* [l2serverfull] */        skill_id = 1376        level = 1        operate_type = A2        magic_level = 77        effect = {{i_run_away;30;20};{p_speed;{all};5;per}}        is_magic = 1        mp_consume1 = 14        mp_consume2 = 56        item_consume = {[spirit_ore];80}        cast_range = 400        effective_range = 900        skill_hit_time = 4        skill_cool_time = 0        skill_hit_cancel_time = 0.5        reuse_delay = 300        activate_rate = -1        lv_bonus_rate = 0        basic_property = none        abnormal_time = 300        abnormal_lv = 1        abnormal_type = multi_buff        attribute = attr_none        effect_point = 666        target_type = enemy_only        affect_scope = single        affect_limit = {0;0}        next_action = none        debuff = 1        ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight}        skill_end




but I have to create a new DB adding this skills???

greets


All times are GMT. The time now is 15:49.