PDA

View Full Version : [Help] Doubts with my server


MyLover
05.08.2007, 00:37
Good night people I have you doubt and wanted to clarify some of them!

1º As I give Hero to char (Without being GM)?

2º My Olympiad does not function, the Chars if it registers, more the Server does not call they stops fighting

3º accumulating SubClass as to make? they could show 1 topic to me of as to make this? I looked for here more I did not find none that functions

Debtor and forgives for my bad English

:wave: :wave:

Kation
05.08.2007, 04:06
OMG wtf xD funny translator.
ad.1 set hero status to 1 in sql for char u want to add hero status (if u set 1, char will be able to speak with monument of heroes and choose to be a hero).

FidoW
05.08.2007, 04:23
1º As I give Hero to char (Without being GM)?

CacheD
#107 SetHeroPacket("ddS")

About the other 2 questions... im incapable to understand it

PyroMaker
05.08.2007, 06:09
3rd question: Is subclass stacking possible? If so, can you please help me?

Answer: Well I am quite sure it is possible when it comes to L2OFF but it would involve a shitload of work and you'd have to change a lot of stuff.

FidoW
05.08.2007, 12:49
3rd question: Is subclass stacking possible? If so, can you please help me?

Answer: Well I am quite sure it is possible when it comes to L2OFF but it would involve a shitload of work and you'd have to change a lot of stuff.

Yeah, now i understand the question xD

I think the only thing needed is modify the Store Procedure that get skills [lin_GetAquireSkill]

Im not complety sure but using the logic... looks the way to do it....

replace in that procedure
SELECT skill_id, skill_lev, to_end_time FROM user_skill WHERE char_id = @char_id AND ISNULL(subjob_id, 0) = @subjob_id ORDER BY 1, 2

With this:
SELECT DISTINCT skill_id, skill_lev, to_end_time FROM user_skill WHERE char_id = @char_id ORDER BY 1, 2

If you modify that store proc before working the normal way i think... maybe some problems can be present like having 2 identical skills of differents levels...or another similar problems... if you arent thinking about reversing that to the initial situation you can simply update all skills to subjob = 0 and delete duplicate skills... also you can modify Store Proc that set skills to db [lin_SetAquireSkill] to store all in the main class...

FidoW
05.08.2007, 13:26
If you modify that store proc before working the normal way i think... maybe some problems can be present like having 2 identical skills of differents levels...or another similar problems... if you arent thinking about reversing that to the initial situation you can simply update all skills to subjob = 0 and delete duplicate skills... also you can modify Store Proc that set skills to db [lin_SetAquireSkill] to store all in the main class...

Thats not a problem, i just find the solution... just needed to modify a little more the Store Proc to get skills


SELECT skill_id, MAX(skill_lev) as skill_lev, to_end_time
FROM user_skill WHERE char_id = @char_id
GROUP BY skill_id,to_end_time ORDER BY 1, 2

McBigMac
05.08.2007, 14:07
modifying stored procs will update database
not live server.


Func Classchange and some custom quest memo's would work and or items.

for the stackable subclass thing

FidoW
05.08.2007, 16:31
modifying stored procs will update database
not live server.


Func Classchange and some custom quest memo's would work and or items.

for the stackable subclass thing

What update ?

Not sir, CacheD need to get skills from database using that query...

Like i say i dont know if is enought, but it is necessary for sure.

MyLover
05.08.2007, 18:34
Yeah, now i understand the question xD

I think the only thing needed is modify the Store Procedure that get skills [lin_GetAquireSkill]

Im not complety sure but using the logic... looks the way to do it....

replace in that procedure
SELECT skill_id, skill_lev, to_end_time FROM user_skill WHERE char_id = @char_id AND ISNULL(subjob_id, 0) = @subjob_id ORDER BY 1, 2

With this:
SELECT DISTINCT skill_id, skill_lev, to_end_time FROM user_skill WHERE char_id = @char_id ORDER BY 1, 2

If you modify that store proc before working the normal way i think... maybe some problems can be present like having 2 identical skills of differents levels...or another similar problems... if you arent thinking about reversing that to the initial situation you can simply update all skills to subjob = 0 and delete duplicate skills... also you can modify Store Proc that set skills to db [lin_SetAquireSkill] to store all in the main class...


US :In mine in case that it is the following one, the Player goes in the NPC makes the SubClass more I did not want that I disappeared skill of the main class understands?

PT :No meu caso é o seguinte, O Player vai no NPC faz a SubClass mais eu não queria que sumisse as skill classe principal entende? :o