![]() |
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. |
Yes is pretty simple to do them.
|
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?
|
Double that.
|
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. |
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
|
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. |
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 |
Quote:
|
Quote:
|
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 |
I think those hero skills were shared many times before... but ok
|
Quote:
but I have to create a new DB adding this skills??? greets |
| All times are GMT. The time now is 21:46. |