asd
- [Mafia83]
-

- Mesaje: 777
- Membru din: 24 Feb 2016, 20:32
- Server: Metin2KGB
- Regat: Jinno
- Aprecieri: 279
- Mulţumiri: 2287
- Discord: Copiază ID
- Contact:
asd
Ultima oară modificat 13 Apr 2022, 17:19 de către [Mafia83], modificat de 7 ori în total.
- Pentru acest mesaj, [Mafia83] a primit 209 (de) mulţumiri
- sTrix. • mistar11 • Kr1G3R • bubu12 • Maurage • Oasis • rares2014 • ŞtefanHainal • emrekırıcı1 • RapperClau1 • FLR • Daffy • thebestadam • BogdanBobo1 • EmpireWorld2 • xP3NG3Rx • Nazox • Cotea1996 • enterspeed • lopez008 și alți 189
- [Mafia83]
-

- Mesaje: 777
- Membru din: 24 Feb 2016, 20:32
- Server: Metin2KGB
- Regat: Jinno
- Aprecieri: 279
- Mulţumiri: 2287
- Discord: Copiază ID
- Contact:
- [Mafia83]
-

- Mesaje: 777
- Membru din: 24 Feb 2016, 20:32
- Server: Metin2KGB
- Regat: Jinno
- Aprecieri: 279
- Mulţumiri: 2287
- Discord: Copiază ID
- Contact:
Raspunsurile astea le-am primit si eu pana am incercat eu cateva combinatii si am reusit sa-l fac fullPărintele Tudose scrie: ↑09 Oct 2020, 22:46 cu asta m am chinuit eu cateva zile si nu i-am dat de cap) pe cine intrebam zicea ca nu se poate ca asa e facut sistemu
good work.
- [Mafia83]
-

- Mesaje: 777
- Membru din: 24 Feb 2016, 20:32
- Server: Metin2KGB
- Regat: Jinno
- Aprecieri: 279
- Mulţumiri: 2287
- Discord: Copiază ID
- Contact:
Up
[ Postat de pe Android ]
[ Postat de pe Android ]

- Nazox
-

- Mesaje: 106
- Membru din: 28 Iul 2015, 00:45
- Server: metin2.es
- Regat: Chunjo
- Aprecieri: 170
- Mulţumiri: 22
- Discord: Copiază ID
- Nazox
-

- Mesaje: 106
- Membru din: 28 Iul 2015, 00:45
- Server: metin2.es
- Regat: Chunjo
- Aprecieri: 170
- Mulţumiri: 22
- Discord: Copiază ID
1.Skill.h Search:
SKILL_FLAG_FIRE = (1 << 27),
#Add:
SKILL_FLAG_PARTY = (1 << 28), //Party buff
Char_skill.cpp search:
SKILL_RESIST_PENETRATE
};
#add:
struct FPartyPIDCollector
{
std::vector <DWORD> vecPIDs;
FPartyPIDCollector()
{
}
void operator () (LPCHARACTER ch)
{
vecPIDs.push_back(ch->GetPlayerID());
}
};
search:
if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY))
pkVictim = this;
#adds :
if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty() && !pkVictim)
pkVictim = this;
Search:
if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY))
pkVictim = this;
#add:
if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY))
ComputeSkill(dwVnum, this);
If you have lycan search:
#ifdef ENABLE_WOLFMAN_CHARACTER
else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY))
ComputeSkillParty(dwVnum, this);
#endif
replace with:
#ifdef ENABLE_WOLFMAN_CHARACTER
else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY))
ComputeSkillParty(dwVnum, this);
#endif
else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty() && !pkVictim)
ComputeSkill(dwVnum, this);
else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && 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);
}
}
Guild.cpp search:
if ((pkSk->dwFlag & SKILL_FLAG_SELFONLY))
#add:
if ((pkSk->dwFlag & SKILL_FLAG_PARTY))
{
if (ch->FindAffect(pkSk->dwVnum))
return;
victim = ch;
}
Navicat:
skill_proto->Design table
search setFlag.
ADD PARTY or if you have check is 28
activate casel
Go skill_proto add PARTY on SetFlag 94 95 96 110 and 111.- PiColo
-

- Mesaje: 734
- Membru din: 21 Sep 2015, 19:03
- Server: Metin2NeTher
- Regat: Jinno
- Aprecieri: 86
- Mulţumiri: 16
- Discord: Copiază ID
- Contact:
aici adăugați la Value "PARTY" (În caz că nu aveți deja) dacă aveți acolo "PARTY" dați Edit și numărați toate valorile astfel încât valoare "PARTY" să fie cu numărul 27Defapt 28 , pentru ca incepi numaratoarea cu 0,1,2,3....
P.S: Mentionez ca daca esti intr-un grup nu poti da buff unui player care nu este in acelasi grup cu tine, dar daca iesi din grup poti da buff oricarui player vrei tu.FIXIn rest este perfect functional.
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);
}
}
in skill.hSKILL_FLAG_PARTY2 = (1 << 28), //Party buffAcum mergeți in navicate>player>Click dreapta pe skill_proto>Design Table>setFlag.
aici adăugați la Value "PARTY2" (În caz că nu aveți deja) dacă aveți acolo "PARTY2" dați Edit și numărați toate valorile astfel încât valoare "PARTY2" să fie cu numărul 28
Numărul care l-ați pus in Skill.h
[Sursa=]https://metin2.dev/board/topic/22590-buff-group/[Sursa]
- Shahin
-

- Mesaje: 161
- Membru din: 15 Dec 2013, 19:09
- Server: Origins2
- Regat: Chunjo
- Aprecieri: 288
- Mulţumiri: 66
- Discord: Copiază ID
- Contact:
Mai trebuie partea a doua ? Cea de dupa "UPDATE PARTY BUFF FULL!
"
Pentru ca inainte de update spui sa punem Party in setFlag, si jos spui sa eliminam acel party din setflag...
Spune-mi daca ultimul spoiler trb adaugat sau nu. si sa corectezi in caz ca ai gresit tu cumva. Mersi fain
Pentru ca inainte de update spui sa punem Party in setFlag, si jos spui sa eliminam acel party din setflag...
Spune-mi daca ultimul spoiler trb adaugat sau nu. si sa corectezi in caz ca ai gresit tu cumva. Mersi fain
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 24 vizitatori


