jacu999
-
Posts
6 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by jacu999
-
-
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif.html
Someone have this problem? I added code perfect, but i cant compile
- 2
- 1
-
10 godzin temu, jeddawee napisał:
in char_skill.cpp
//in: int CHARACTER::ComputeSkill(DWORD dwVnum, LPCHARACTER pkVictim, BYTE bSkillLevel) //bellow: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) pkVictim = this; // #ifdef ENABLE_WOLFMAN_CHARACTER // else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY)) // pkVictim = this; // #endif //1-add: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY2) && !GetParty() && !pkVictim) pkVictim = this; //in bool CHARACTER::UseSkill(DWORD dwVnum, LPCHARACTER pkVictim, bool bUseGrandMaster) //below if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) pkVictim = this; #ifdef ENABLE_WOLFMAN_CHARACTER else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY)) pkVictim = this; #endif //2-add if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY2) && !GetParty() && !pkVictim) pkVictim = this; //below if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) ComputeSkill(dwVnum, this); #ifdef ENABLE_WOLFMAN_CHARACTER else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY)) ComputeSkillParty(dwVnum, this); #endif //3-add else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY2) && !GetParty() && !pkVictim) ComputeSkill(dwVnum, this); else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY2) && GetParty()) { FPartyPIDCollector f; GetParty()->ForEachOnMapMember(f, GetMapIndex()); for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++) { LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it); ComputeSkill(dwVnum, ch); } }
and then you have to add the flag " SKILL_FLAG_PARTY2 "
after that go to your skill proto add new flag "party2 ", then set the skills that you want to be used with and without a group
the reason why i added new flag is that there are some skills like lycan buff and shaman healing cannot be used to other people without group
hopefully it fix your problem
thank you very much, its work !
close
-
Hello, i have one problem, recently i added on server system buff Group, but i have problem with him.
I can buff peoples who are in group, but i cant buff peoples without group.
I try fix, but dont work and i cant buff peoples who are not in the group.
https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif.html
Please, someone help?
I added system with : https://metin2.dev/board/index.php?/topic/5029-c-party-flag/&page=3
- 2
- 1
- 1
-
Search Good Developer
in Paid Support / Searching / Recruiting
Posted
Hello dev, I search developer which to help me fix one mistakes / bug
I will provide details on PW
I'm paying for help
Contact pm me on forum