![]() |
|
|
#1 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
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. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jun 2006
Posts: 126
|
Yes is pretty simple to do them.
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jun 2006
Posts: 153
|
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?
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
Double that.
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
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. |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
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...
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Jun 2006
Posts: 126
|
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. |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
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 |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
That will require restart the server. Best way is through CacheD
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Sep 2006
Posts: 64
|
u have system? via sql?
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Sep 2006
Posts: 64
|
Hero Skill
![]() 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
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Jun 2005
Posts: 374
|
I think those hero skills were shared many times before... but ok
|
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Jun 2007
Posts: 26
|
Quote:
but I have to create a new DB adding this skills??? greets |
|
|
|
|
|