Timer pe elixir !
Pasul 1 - Caută în char_item.cpp
if (CArenaManager::instance().IsArenaMap(GetMapIndex()) == true)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("´ë·ĂŔ忡Ľ »çżëÇĎ˝Ç Ľö ľř˝Ŕ´Ď´Ů."));
return false;
}
EAffectTypes type = AFFECT_NONE;
Pasul 2 - Adaugă după
#ifdef ENABLE_FIX_ELIXIR_TIMER
{
quest::CQuestManager& q = quest::CQuestManager::instance();
quest::PC* pPC = q.GetPC(GetPlayerID());
if (pPC != NULL)
{
int last_use_time = pPC->GetFlag("auto_recovery.last_use_time");
if (get_global_time() - last_use_time < 3)
{
ChatPacket(CHAT_TYPE_INFO, "Poti folosi elixirul in %d secunde.", 3 - (get_global_time() - last_use_time));
return false;
}
pPC->SetFlag("auto_recovery.last_use_time", get_global_time());
}
}
#endif
C++ Elixir Timer
- [Reizo]
-

- Mesaje: 1301
- Membru din: 22 Oct 2019, 15:44
- Server: SAPPHIRE2
- Regat: Chunjo
- Aprecieri: 409
- Mulţumiri: 4322
- Discord: Copiază ID
- Contact:
Mai e postat.
Archivar.
[ Postat de pe Android ]
Archivar.
[ Postat de pe Android ]

-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 8 vizitatori

