Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Source] Small amendments
#11
Félelem képesség javítása

char_battle.cpp

Keress rá erre:

Code:
bool CHARACTER:Damage(LPCHARACTER pAttacker, int dam, EDamageType type)


Ezt másold fölé:
Code:
enum DamageFlag
{
DAMAGE_NORMAL = (1 << 0),
DAMAGE_POISON = (1 << 1),
DAMAGE_DODGE = (1 << 2),
DAMAGE_BLOCK = (1 << 3),
DAMAGE_PENETRATE= (1 << 4),
DAMAGE_CRITICAL = (1 << 5),
};


Így nézzen ki:
[Image: BVPNfab.png]




Keress rá erre:
Code:
if (type != DAMAGE_TYPE_NORMAL && type != DAMAGE_TYPE_NORMAL_RANGE)
{
if (IsAffectFlag(AFF_TERROR))
{
int pct = GetSkillPower(SKILL_TERROR) / 400;


if (number(1, 100) <= pct)
return false;
}
}



Írd felül ezzel:
Code:
if (IsAffectFlag(AFF_TERROR))
{
if (type != DAMAGE_TYPE_NORMAL && type != DAMAGE_TYPE_NORMAL_RANGE)
{
int iTerrorPCT = GetSkillPower(SKILL_TERROR) / 3.3;
if (number(1, 100) <= iTerrorPCT) {
SendDamagePacket(pAttacker, 0, DAMAGE_BLOCK);
return false;
}
}
}

Így nézzen ki:


[Image: NkRPeab.png]
[Image: 1453876818-b8928becdb9a3058b7c9ff22ccc5caf6.jpeg]
Reply
#12
Thumbs Up 
GM módban, a /in parancs javítása

Előtte:
[Image: 302da0b101687407bfcca59871f5f715.gif]


Utána:
[Image: f515d46c0789dd914b51c490a10a2712.gif]


game/src/char.h


Keress rá erre:

Code:
bool ChangeSex();


Írd alá ezt:

Code:
bool do_invisibility();




game/src/char.cpp



Keress rá erre:

Code:
WORD CHARACTER::GetRaceNum() const



Írd fölé ezt:
Code:
bool CHARACTER::do_invisibility()
{
UpdatePacket();
SET_BIT(m_bAddChrState, ADD_CHARACTER_STATE_SPAWN);
m_afAffectFlag.Set(AFF_SPAWN);
ViewReencode();
REMOVE_BIT(m_bAddChrState, ADD_CHARACTER_STATE_SPAWN);
m_afAffectFlag.Reset(AFF_SPAWN);
return true;
}



game/src/cmd_gm.cpp



Rákeresel erre:

Code:
ACMD(do_invisibility)



Beleírod ezt a sort:

Code:
ch->do_invisibility();



Így fog kinézni:

[Image: UmJbgab.png]


.Lean
[Image: 1453876818-b8928becdb9a3058b7c9ff22ccc5caf6.jpeg]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)