![]() |
|
Ingi PvP OFF - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: General Support (https://lckb.dev/forum/forumdisplay.php?fid=203) +----- Thread: Ingi PvP OFF (/showthread.php?tid=4682) Pages:
1
2
|
- Sutz - 01-11-2017 @DYKTATOR Please dont double post, its against the rules an if repeated will get you a warning. - Agility - 01-12-2017 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(); } - Matt Hias - 11-28-2021 @/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 - Desarija - 11-28-2021 it doesn't get rough? - Matt Hias - 11-29-2021 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. - Judgement - 11-15-2023 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 |