The system works, but if you hit the last shot, the player moves slightly, and can then be killed.
Edit :
gyazo.com/36461e80d70bdca5e52db108140bd828
[C++] System afk cu efect si protectie pvp
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5332
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
Redo the pvp and char_battle. cpp part.Sayanessdu88 scrie: ↑16 Sep 2020, 14:03 The system works, but if you hit the last shot, the player moves slightly, and can then be killed.
Edit :
gyazo.com/36461e80d70bdca5e52db108140bd828
I did not have this problem when I installed the system.
[ Postat de pe Android ]

ma baiatule tu crezi ca eu stiu de ieri sistemul, sistemul e testat si implementat de mult de mine asa ca nu vb daca nu sti ce vorbest.i ia traduti comenturile din engleza si vezi ceti spun si astia nu mai bv aiurea
- Mr. Essex
-

- Mesaje: 383
- Membru din: 03 Mar 2020, 16:40
- Regat: Shinsoo
- Aprecieri: 342
- Mulţumiri: 1414
- Discord: Copiază ID
char_battle.cpp
place under this
place under
sistemul mai are o problema, cea de sleep_loop permanent.
Cod: Selectaţi tot
if (test_server)
sys_log(0, "[TEST_SERVER] Attack : %s type %d, MobBattleType %d", GetName(), bType, !GetMobBattleType() ? 0 : GetMobAttackRange());
if (!CanMove())
return false;
Cod: Selectaţi tot
#ifdef ENABLE_AFK_MODE_SYSTEM
if (pkVictim && pkVictim->IsPC() && pkVictim->IsAway())
{
if(IsPC())
return false;
if (!CanMove())
return false;
}
#endif
Cod: Selectaţi tot
bool CHARACTER::Damage(LPCHARACTER pAttacker, int dam, EDamageType type) // returns true if dead
Cod: Selectaţi tot
#ifdef ENABLE_AFK_MODE_SYSTEM
if (pAttacker && pAttacker->IsPC() && pAttacker->IsAway())
{
if(IsPC())
return false;
if (!CanMove())
return false;
}
#endif
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5332
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
pai da nu e problema.NgiX12 scrie: ↑20 Sep 2020, 14:52 char_battle.cpp
place under thisCod: Selectaţi tot
if (test_server) sys_log(0, "[TEST_SERVER] Attack : %s type %d, MobBattleType %d", GetName(), bType, !GetMobBattleType() ? 0 : GetMobAttackRange()); if (!CanMove()) return false;
Cod: Selectaţi tot
#ifdef ENABLE_AFK_MODE_SYSTEM if (pkVictim && pkVictim->IsPC() && pkVictim->IsAway()) { if(IsPC()) return false; if (!CanMove()) return false; } #endifplace underCod: Selectaţi tot
bool CHARACTER::Damage(LPCHARACTER pAttacker, int dam, EDamageType type) // returns true if dead
sistemul mai are o problema, cea de sleep_loop permanent.Cod: Selectaţi tot
#ifdef ENABLE_AFK_MODE_SYSTEM if (pAttacker && pAttacker->IsPC() && pAttacker->IsAway()) { if(IsPC()) return false; if (!CanMove()) return false; } #endif
e affect cu loop permanent pana cand playerul reine din afk.
Am sa instalez din nou systemul sa pun un video sa vedeti ca functioneaza 100% fara probleme..
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5332
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
- tutunaru
-

- Mesaje: 182
- Membru din: 23 Iun 2016, 12:17
- Server: Prodomo2
- Aprecieri: 476
- Mulţumiri: 70
- Discord: Copiază ID
- Contact:
link ?
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 39 vizitatori





