Jump to content

Failed to make Aura of sword permanent on marty's files


Go to solution Solved by astroNOT,

Recommended Posts

Hi guys, I can't figure out how to make aos permanent (like sura) for the life of me

Steps I did:

Skill_proto table (SQL): for skill 4 I've changed szDurationPoly to 99999 and zsCooldownPoly to 0, and setFlag i've added Toggle option
 

In locale/en/skilldesc.txt

4	WARRIOR	Aura of the Sword	Spiritual Sword	Phantom Sword	Increases attack value for a period of time.	Buff	Increases attack value	Strengthened by STR		STANDING_SKILL|TOGGLE|WEAPON_LIMITATION|IGNORE_BLOCK	SWORD|TWO_HANDED	geomgyeong	4	4			Attack value: +%.0f	(100 + STR) * SkillPoint				

I've added toggle next to other flags

In skilltable I've added toggle, modified duration to 999 and cooldown to 0

4	검경	1	1	1	0	ATT_GRADE	(100+str+lv*3)*k	100+200*k	30+50*k		0			SELFONLY,TOGGLE	15	NONE				0	0	NORMAL	1	1	0	0

But in game i still get skills with cd still applied I also rebooted the server

It seems i cannot attach a image unfortunatelly

In  game basically the "toggle" effect is applied but the skill cooldown greyish effect is applied too, and when i click aura again it says:
"Cooltime not finished for aura of sword 95"

Edited by astroNOT

Sort of an update

So skilltable was read from client/root

But duration is still not properly read from db, when i use a skill, client now quicly makes the skill available again

But when i press it to toggle, server is raising cooltime not finished which leads me to beleive server does not take data from db?

I don't have those files, but your changes are fine in regular files (I've tested them). Keep in mind rebooting the server.

If you continue experimenting the issue, I recommend you debug your server c++ project.

You could log the skill cooltime here:
 

bool CHARACTER::UseSkill(DWORD dwVnum, LPCHARACTER pkVictim, bool bUseGrandMaster) {
     // ...
     int iCooltime = (int) pkSk->kCooldownPoly.Eval();
     // here you could add a breakpoint or log the iCooltime value
}

And the cooltime formula is usually read here: CClientManager::InitializeSkillTable(). You can also check over there. Maybe your files are not using the skill_proto db table.

Video with results: https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

 

Edited by Metin2 Dev International
Core X - External 2 Internal

Not mine, but im usiing with np:

 

Spoiler

//locale/xx/skilldesc.txt

//search for the aura:

4    WARRIOR    Aura of the Sword    Spiritual Sword    Phantom Sword    Increases attack value for a period of time.    Buff    Increases attack value    Strengthened by STR        STANDING_SKILL|WEAPON_LIMITATION    SWORD|TWO_HANDED    geomgyeong    4    4            Attack value: +%.0f    (100 + STR) * SkillPoint                

//this is the part what we need:

STANDING_SKILL|WEAPON_LIMITATION

//change it to

STANDING_SKILL|WEAPON_LIMITATION|TOGGLE

//the new part is "|TOGGLE" without quotation marks

//////////////////////////////////////////////////////////////////////////////////////

//now lets navigate to locale/xx/skilltable.txt

//search for the aura again:

4    °Ë°ć    1    1    1    0    ATT_GRADE    (100+str+lv*3)*k    100+200*k    6000+12000*k        33+50*k            SELFONLY    15    NONE                0    0    NORMAL    1    1    0    0

//here i changed the duration of the aura, "6000+12000*k" which is 5.8 hours. after the duration time,
// you can see the " 33+50*k ". This is the cooldown time. Yours might be different, so change it to 0.
// after, you can see "SELFONLY" This is the Flag of the skill.

//make it like this:

4    °Ë°ć    1    1    1    0    ATT_GRADE    (100+str+lv*3)*k    100+200*k    6000+12000*k        0            SELFONLY,TOGGLE    15    NONE            15    0    0    NORMAL    1    1    0    0

//the new parts are: 

"6000+12000*k        0", 

",TOGGLE"

//without quotation marks


// Now lets move to our beloved Navicat.

// Navigate to player -> skill_proto and open it.

// Search the column "dwVnum" and the line starts with: 4, which is the Aura of the Sword.

// Now, search the szDurationPoly column and from: "30+50*k" change it to:

6000+12000*k

// Search szCooldownPoly column and from: "33+50*k" change it to:

0

// Search setFlag column and add:

TOGGLE

 

 

Edited by yomidseven
  • Love 1

spacer.png

8 hours ago, yomidseven said:

Not mine, but im usiing with np:

 

  Hide contents

//locale/xx/skilldesc.txt

//search for the aura:

4    WARRIOR    Aura of the Sword    Spiritual Sword    Phantom Sword    Increases attack value for a period of time.    Buff    Increases attack value    Strengthened by STR        STANDING_SKILL|WEAPON_LIMITATION    SWORD|TWO_HANDED    geomgyeong    4    4            Attack value: +%.0f    (100 + STR) * SkillPoint                

//this is the part what we need:

STANDING_SKILL|WEAPON_LIMITATION

//change it to

STANDING_SKILL|WEAPON_LIMITATION|TOGGLE

//the new part is "|TOGGLE" without quotation marks

//////////////////////////////////////////////////////////////////////////////////////

//now lets navigate to locale/xx/skilltable.txt

//search for the aura again:

4    °Ë°ć    1    1    1    0    ATT_GRADE    (100+str+lv*3)*k    100+200*k    6000+12000*k        33+50*k            SELFONLY    15    NONE                0    0    NORMAL    1    1    0    0

//here i changed the duration of the aura, "6000+12000*k" which is 5.8 hours. after the duration time,
// you can see the " 33+50*k ". This is the cooldown time. Yours might be different, so change it to 0.
// after, you can see "SELFONLY" This is the Flag of the skill.

//make it like this:

4    °Ë°ć    1    1    1    0    ATT_GRADE    (100+str+lv*3)*k    100+200*k    6000+12000*k        0            SELFONLY,TOGGLE    15    NONE            15    0    0    NORMAL    1    1    0    0

//the new parts are: 

"6000+12000*k        0", 

",TOGGLE"

//without quotation marks


// Now lets move to our beloved Navicat.

// Navigate to player -> skill_proto and open it.

// Search the column "dwVnum" and the line starts with: 4, which is the Aura of the Sword.

// Now, search the szDurationPoly column and from: "30+50*k" change it to:

6000+12000*k

// Search szCooldownPoly column and from: "33+50*k" change it to:

0

// Search setFlag column and add:

TOGGLE

 

 

I did something similar, problem is for some reason even tho i set szCooldownPoly to 0, client displays skill as ready to use immediatelly after activating it, server says cooltime not passed, so for some reason it is not using proper data from skill_proto

  • Solution
Just now, yomidseven said:

Skill table server side is the same as the client side and navicat?

yes, gotta see why data is not applied to db, gonna connect directly to mysql, i suspect navicat is doing some dodgy stuff

added logs from bootmanager seems like data read from db is not updated

As said in previous comment, for some reason navicat did not apply changes, even  tho visually it looked like it, editing driectly from mysql terminal worked fine, thanks!

  • Love 1
  • 2 months later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.