![]() |
[SHARE] Hero Skill acquire
didnt tested yet because our server is still run in test phrase so dont have enough ppl to test it, if it works ill write a script that will delete those skills from players that are not heroes (after competition)
Code:
set ANSI_NULLS ON |
Erm... i can mistake, but use Search "lin_NominateHeroes". It problem solved much age ago.
|
nothing for NominateHeroes neither "hero skill"
|
didn't found it also HF
I was searchin that |
add hero skill :D in skilldata :D
Code:
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_physical_defence;{all};500;diff}} is_magic = 0 mp_consume2 = 289 item_consume = {[spirit_ore];80} cast_range = -1 effective_range = -1 skill_hit_time = 6 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 3600 activate_rate = -1 lv_bonus_rate = 0 basic_property = none abnormal_time = 60 abnormal_lv = 1 abnormal_type = max_breath_up attribute = attr_none effect_point = -993 target_type = self affect_scope = pledge affect_range = 900 affect_object = friend affect_limit = {0;0} next_action = none debuff = 0 ride_state = {@ride_none;@ride_wind;@ride_star;@ride_twilight} skill_end |
thxx ,,, i go test now :D
|
no work in me server :( ... i use .. mssql 2005 :D
|
it only supposed to add skill when you become a hero with the monument not with //set_hero
|
You cant add skills that way, have no effect until the next restart, best way -> CacheD Interactive Port
|
Quote:
A question: Hero Skills are available for 1ºst timers? Chobito, yo ya te preste este script a ti, hdp. |
Quote:
pero toy curioso ;_( muak!! |
English only in here cabrons.
P.S: Good share, madar. |
Quote:
You cant make a script that check and add skills automatically each some minutes, i have more than 1 script running to check some things like connected builder.. (kick if not match with my list and ban account, etc etc).. an antibot system...and some more |
player needs only to restart the game.
|
for me a base accepted procedure only after this correction
SELECT char_id, "396", "1", "0", "0" -> SELECT char_id, '395', '1', '0', '0' on how many I know heroic skily can have only mein class, therefore added Quote:
here that turned out for me, need tested Code:
CREATE PROCEDURE dbo.lin_NominateHeroesCode:
DELETE FROM user_skill WHERE skill_id in (395);Quote:
спасибо онлайн переводчику за моё знание английского -) |
Question is.. your players can't choose the skills, can they? they aren't supposed to get ALL the hero skills. They are supposed to choose '1' skill out of all, right?
|
nope, retail heros get every skill, have a friend whos the retail pp hero
|
Quote:
|
ok it should work and only need character to restart the game
activatedheroes will create a procedure that will be executed by the nominateheroes and set all hero skill for activated heroes however nominateheroes is still set the skills for waiting heroes Вложения из исходного сообщения (сами файлы в копии отсутствуют): lin_ActivatedHeroes.zip — 471 байт lin_NominateHeroes.zip — 1047 байт |
Quote:
If to abandon in my modification of procedure the lin_nominateheroes parameters of delete of skilov that is well-built, although I am not sure that it works, not testil. But in vroy procedure of lin_activatedheroes you delaesh large oschibku because again skanish base and udalyaesh skily which just gave initial procedure. Total there are 3 positions at the receipt of hero: 0 is a not hero 1 is a hero, but did not yet get him in a game 2 is a hero, already got him in a game. Now so, if procedure of lin_nominateheroes is executed one time per a month and my insertion an the delete of skilov vsetaki works, takes a place clear hero status UPDATE user_nobless SET hero_type = 0 delete all hero skill in user_skill DELETE FROM user_skill WHERE skill_id = '395' DELETE FROM user_skill WHERE skill_id = '396' DELETE FROM user_skill WHERE skill_id = '1374' DELETE FROM user_skill WHERE skill_id = '1375' DELETE FROM user_skill WHERE skill_id = '1376' the parameters of hero and skily are further heard for new heroes... total there is enough implementation of procedure of lin_nominateheroes, but restart of server will be required RUS Фигню ты сделал... Если оставлять в моей модификации процедуры lin_NominateHeroes параметры удаления скилов то ладно, хотя я не уверен что это работает, не тестил. Но во врой процедуре lin_ActivatedHeroes ты делаеш большую ощибку ибо опять сканиш базу и удаляеш скилы которые только что дал начальной процедурой. Итого при получении героя есть 3 позиции: 0 - не герой 1 - герой, но еще не получил его в игре 2 - герой, уже получил его в игре. Теперь так, если процедура lin_NominateHeroes выполняется раз в месяц и моя вставка ан удаление скилов всетаки работает, то происходит следущее: всем героям выставляется статус с 2(герой) на 0 (не герой) UPDATE user_nobless SET hero_type = 0 Если эта фигня всетаки работает коректно, хотя должна, то во всей таблице user_skill всем чарам удаляют геройские скилы DELETE FROM user_skill WHERE skill_id = '395' DELETE FROM user_skill WHERE skill_id = '396' DELETE FROM user_skill WHERE skill_id = '1374' DELETE FROM user_skill WHERE skill_id = '1375' DELETE FROM user_skill WHERE skill_id = '1376' далее выполняется скрипт, создаются временнные таблици и прочая лабуда, в итоге в таблице user_nobless у новых героев становится hero_type = 1, это значит что он уже герой но ожидает получения, естественно скилы ему уже тоже дали, но героя он получит на сервере без проблем, а вот для скилов потребуется рестарт сервера. все.... а вторая часть, то где hero_type = 2 это если в серидне месяца рещил удалить или дать скилы просто выполни в QA. Эх был бы у меня компилятор АИ сделалбы еще проще Quote:
сори за мой англиский, пользуюсь этим http://translate.a.ua/index.php вот процедура которой более чем достаточно, но требуется рестарт сервера, хотя 100% гарантии не даю, ибо не тестили еще на 100% |
i dont understand the eng sorry :/
btw you dont have to restart the server, only player has to restart his client, and the delete skill thingy is delete all skills from the table |
Quote:
here this procedure does everything for you on beginning of month, you only require a 1 number of every month when new heroes were determined to overload a server. Code:
CREATE PROCEDURE dbo.lin_NominateHeroesCode:
DELETE FROM user_skill WHERE skill_id in (395);Code:
INSERT INTO user_skill (char_id, skill_id, skill_lev, to_end_time, subjob_id) |
I have made this script... it gives the heroskills in all subclasses and not only ine main.
Code:
INSERT INTO user_skill (char_id, skill_id, skill_lev, to_end_time, subjob_id)Code:
DELETE FROM user_skill WHERE skill_id in (395); |
Quote:
Execute a small PHP would be the solution... for example... you execute this script each 30 minutes or so... or whatever, will check heros in 1st subjob and will add the skill thought cached... no restarts... and hero have the skill quickly. PHP Code:
How to execute a PHP script each XX time ?... look for a way... there are thousands... you can execute even from a store proc if you want... |
Quote:
Code:
<?Fatal error: Call to undefined function addskillpacket() in /var/www/***************/htdocs/hero.php on line 39 |
| All times are GMT. The time now is 21:44. |