Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05.09.2007, 15:17   #30
HF
Guest
 
Posts: n/a
Default [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)

...


Month gone. Stored Procedure checked on practice. Why noone wrote bugreport? strange... Maybe because noone use it? :D "You are feel Fear effect."


So.... Required small changes and this will be work perfect.


set ANSI_NULLS ON

set QUOTED_IDENTIFIER ON

go


ALTER PROCEDURE dbo.lin_NominateHeroes

(

@now_season INT,

@new_step INT,

@new_season_start_time INT

)

AS

SET NOCOUNT ON


-- C4(C6) Modded servers Hero Skills. Step 1

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'


UPDATE user_nobless

SET hero_type = 0

...

INSERT INTO olympiad

(step, season_start_time) VALUES (@new_step, @new_season_start_time)


SELECT @@IDENTITY


+


-- C4(C6) Modded servers Hero Skills. Step 2

INSERT INTO user_skill (char_id, skill_id, skill_lev, to_end_time)

SELECT char_id, "395", "1", "0"

FROM user_nobless

WHERE hero_type = 1


INSERT INTO user_skill (char_id, skill_id, skill_lev, to_end_time)

SELECT char_id, "396", "1", "0"

FROM user_nobless

WHERE hero_type = 1


INSERT INTO user_skill (char_id, skill_id, skill_lev, to_end_time)

SELECT char_id, "1374", "1", "0"

FROM user_nobless

WHERE hero_type = 1


INSERT INTO user_skill (char_id, skill_id, skill_lev, to_end_time)

SELECT char_id, "1375", "1", "0"

FROM user_nobless

WHERE hero_type = 1


INSERT INTO user_skill (char_id, skill_id, skill_lev, to_end_time)

SELECT char_id, "1376", "1", "0"

FROM user_nobless

WHERE hero_type = 1


Where

1) Removing hero skills from all who have it

2) Inserting skills for all hero_type=1

Attention! This step2 must be use After command

SELECT @@IDENTITY

or you will be have bug in 1 day of month.


Good luck with modded.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 5 September 2007, 15:17. Открыть источник.
 
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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