Ingi PvP OFF
#11
@DYKTATOR Please dont double post, its against the rules an if repeated will get you a warning.

#12


GameServer/Server.cpp 

if(ch->GetMapAttr() & MATT_FREEPKZONE && ch->m_level > PKMODE_LIMIT_LEVEL)

{

if( (ch->GetPlayerState() & PLAYER_STATE_PKMODE) == false )

{

ch->ResetPlayerState(PLAYER_STATE_PKMODEDELAY | PLAYER_STATE_PKMODE);

ch->SetPlayerState(PLAYER_STATE_PKMODE);

for ( int i = 1062; i <= 1065; i++ ) {

if (ch->m_assist.FindBySkillIndex(i))

ch->m_assist.CureBySkillIndex(i);



GameServer/doFuncAction.cpp

if (ch->IsSetPlayerState(PLAYER_STATE_PKMODE))

{

ch->SetPlayerState(PLAYER_STATE_PKMODEDELAY);

ch->m_pkmodedelay = PULSE_PKMODE_DELAY;

}

else

{

for ( int i = 1062; i <= 1065; i++ ) {

                             if (ch->m_assist.FindBySkillIndex(i))

                             ch->m_assist.CureBySkillIndex(i);

                         }

ch->TogglePlayerState(PLAYER_STATE_PKMODE);

ch->CancelInvisible();

}

 

#13

@/index.php?/profile/20341-agility/&do=hovercard&referrer=https%253A%252F%252Flckb.dev%252Fforum%252Findex.php%253F%252Ftopic%252F14937-ingi-pvp-off%252F" href="/index.php?/profile/20341-agility/" rel="" title="Go to Agility's profile">Agility

you can expand that

with the skill ID 1742? elephant buff

I did it, but when elefant buffers it doesn't get rough

#14

it doesn't get rough?

#15

no.

as soon as the skill is buffed by pet, it remains active.

it is only deactivated if the skill is already active.

maybe I got it wrong too, I just expanded it like that

for ( int i = 1062; i <= 1065; i++ )
for ( int i = 1742; i <= 1742; i++ ) {

----

but that with the Igni works great,

if you want to activate it, it says not possible in this zone until PVP mode is deactivated.

#16


On 11/29/2021 at 8:26 PM, Matt Hias said:




no.

as soon as the skill is buffed by pet, it remains active.

it is only deactivated if the skill is already active.



maybe I got it wrong too, I just expanded it like that


for ( int i = 1062; i <= 1065; i++ )
for ( int i = 1742; i <= 1742; i++ ) {


----



but that with the Igni works great,

if you want to activate it, it says not possible in this zone until PVP mode is deactivated.




int ids[] = {1062, 1063, 1064, 1065}; // Define the array of IDs
int numIds = sizeof(ids) / sizeof(ids[0]); // Calculate the number of elements in the array

for (int i = 0; i < numIds; i++) {
    int currentId = ids[i]; // Get the current ID from the array

    if (ch->m_assist.FindBySkillIndex(currentId)) {
        ch->m_assist.CureBySkillIndex(currentId);
    }
}

i did it like



Forum Jump:


Users browsing this thread: 1 Guest(s)