Ep4 Juni, Source 100% Cast

10/21/2016 13:00 xMoOment#1
Heyho,

weiß einer wo ich die richtige Datei finde um den Cast Wert umzuschreiben
im Code?


Vielen Dank im vorraus!
10/21/2016 18:25 Lee Ki-Hwan#2
Also im Server würde in unter Skill.cpp gucken.

Es gibt ein Define: SKILL_TYPE_NO_COOL_TIME
Ich hab mir nicht angeguckt was es tut, aber du kannst es dir ja mal anschauen, ob es das ist was du suchst.

Wenn ich mich aber nicht ganze irre limitiert der Client auch irgendwo, da musst du dann suchen ich weiss es grade nicht ausm Kopf
10/21/2016 22:24 NotoriousLC#3
Quote:
Originally Posted by xMoOment View Post
Heyho,

weiß einer wo ich die richtige Datei finde um den Cast Wert umzuschreiben
im Code?


Vielen Dank im vorraus!
Here you go:

Cooldown System which work from 0 to 100%
Server

Skill.cpp

// New System without %
reusetime = reusetime * (150.00 / (150 + prob)) * (100.00 / (100 + prob));

// Old System with %
reusetime -= reusetime * prob / 100;

// Around 17 lines after the resuetime variable also change this one
if (!IS_PC(ch)){
if (reusetime < 1){
reusetime = 0;
}
}

Client

MyInfoSkill.cpp > Function > DOUBLE MyInfoSkill::GetReuseSkill( int nIndex )
Replace the Complete Function

DOUBLE MyInfoSkill::GetReuseSkill( int nIndex )
{
CSkill& rSkill = _pNetwork->GetSkillData(nIndex);

int nCoolTimeReductionRate = 0;
int SkillReuseTime = 0;
DOUBLE dCoolTime = 0.0;
DOUBLE dDelayTime;
DOUBLE dReuseTime = 0.0;
int nReuseTime = 0;

// <<< Old CoolDownSystem with EP4 Features by DamonA
dDelayTime = DOUBLE( rSkill.GetReUseTime() + _pNetwork->MyCharacterInfo.magicspeed ) / 10.0;
nCoolTimeReductionRate= UIMGR()->GetCoolTimeReductionRate();

if (rSkill.GetJob() != PET_JOB && rSkill.GetJob() != WILDPET_JOB &&
!(rSkill.GetFlag() & SF_GUILD))
{
if (!(rSkill.Skill_Data.appState & SCT_NOCOOLTIME))
{
if( nCoolTimeReductionRate > 100 )
{
nCoolTimeReductionRate = 100;
}
if( nCoolTimeReductionRate > 0 )
{
dDelayTime *= DOUBLE(100-nCoolTimeReductionRate)/100.0f;
}
}
}

return dDelayTime;
// >>> OldCoolDownSystem with EP4 Features by DamonA

if (rSkill.GetJob() != PET_JOB && rSkill.GetJob() != WILDPET_JOB &&
!(rSkill.GetFlag() & SF_GUILD))
{
// ½ºÅ³ ÄðŸÀÓ ¿É¼ÇÀº ij¸¯ÅÍ¿¡°Ô¸¸ ºÙ´Â´Ù.
if (!(rSkill.Skill_Data.appState & SCT_NOCOOLTIME))
{
nCoolTimeReductionRate = UIMGR()->GetCoolTimeReductionRate();
dCoolTime = ( 150.0 / (150.0 + nCoolTimeReductionRate ) * 100.0 / (100.0 + nCoolTimeReductionRate) );
}
}

if(rSkill.GetReUseTime())
{
dReuseTime = DOUBLE( rSkill.GetReUseTime() + _pNetwork->MyCharacterInfo.magicspeed ) / 10.0 * (nCoolTimeReductionRate ? dCoolTime : 1);

return dReuseTime;
}

return 0.0;
}
10/22/2016 08:50 Tarissuis#4
i love the damona "copyright" in the code above :rolleyes:
10/22/2016 09:33 NotoriousLC#5
Quote:
Originally Posted by Tarissuis View Post
i love the damona "copyright" in the code above :rolleyes:
You see a problem? I don't
10/22/2016 13:51 Lee Ki-Hwan#6
That code looks weird
10/22/2016 14:22 NotoriousLC#7
Quote:
Originally Posted by † Slash † View Post
That code looks weird
It wasn't released by me, I just posted it here to help.
10/30/2016 00:35 ETRAFIX#8
Where is Skill.ccp ?
10/30/2016 15:45 Bosko™#9
Quote:
Originally Posted by ETRAFIX View Post
Where is Skill.ccp ?
GameServer / Source files / Skill.cpp
11/03/2016 21:45 ETRAFIX#10
Quote:
Originally Posted by Bosko™ View Post
GameServer / Source files / Skill.cpp
Thanks
09/27/2018 23:14 S041904#11
hay für was ist der code ?
09/28/2018 06:15 Veni/Marius#12
Wenn man das nicht rauslesen kann, dann sollte man vielleicht keinen Server probieren auf die Beine zu stellen..