Odp: Edytowanie PACC!
To ju? zale?y od silnika dla jednych jest dobre to:
1) Do
Creaturescript.lua dodaj:
PHP:
if getPlayerPremiumDays(cid) > 0 then
setPlayerExtraExpRate(cid, ile razy wi?cej expa maj? dostawa? gracze z pacc)
end
A dla innych d?u?sza wersja:
2) Tu trzeba kompilowa? ; /
W
creature.cpp pod tym:
PHP:
int attackerdamage = getInflicatedDamage(attacker);
Dodaj:
PHP:
Player* player = dynamic_cast<Player*>(attacker);
P??niej zamie? to:
PHP:
ifdef YUR_MULTIPLIERS
if (dynamic_cast<Player*>(this))
return gainexperience * g_config.EXP_MUL_PVP;
else
return gainexperience * g_config.EXP_MUL;
#else
return gainexperience;
#endif //YUR_MULTIPLIERS
Na takie co?:
PHP:
#ifdef YUR_MULTIPLIERS
if (dynamic_cast<Player*>(this))
return gainexperience * g_config.EXP_MUL_PVP;
else if(player && player->isPremium())
return gainexperience * g_config.EXP_PACC;
else
return gainexperience * g_config.EXP_MUL;
#else
return gainexperience;
#endif //YUR_MULTIPLIERS
Teraz w
luascript.cpp znajd?:
PHP:
EXP_MUL_PVP = getGlobalNumber("expmulpvp",1);
i wrzu? pod tym to:
PHP:
EXP_PACC = getGlobalNumber("exppacc",1);
I w ko?cu w
luascript.h pod tym:
wrzu? to:
No i na koniec w
config.lua dodaj takie co?:
PHP:
-- Jaki mnoznik expa dla graczy z PACC?
exppacc = x
x= ile exp dla graczy z aktywnym PACC.
Mam nadziej?, ?e pomog?em.