What's new

Edytowanie PACC!

Status
Not open for further replies.

TheJasker

New User
Joined
Nov 19, 2010
Messages
9
Reaction score
0
Witam. Mam takie pytanie. Jak mam to zrobi? ?eby pacc dawa? 50% expa wi?cej a nie na przyk?ad 25%. Gdzie to si? robi i jak. Bardzo bym prosi? o sensown? odpowied? i dok?adn? pomoc. Z g?ry dzi?kuje i gor?co na was licz?. Pozdrawiam. ;)

Jak co? Tibia 8.0
 

Dubler

Lua Factory =)
Joined
Apr 8, 2009
Messages
1,874
Reaction score
112
Odp: Edytowanie PACC!

przykro mi stary ale wydaje mi si? (a jestem tego prawie na 100% pewien) ?e to si? zmienia w source silnika, czyli raczej tak ?atwo tego nie zmienisz (trzeba zna? c++ i troche poszpera?)
 

TheJasker

New User
Joined
Nov 19, 2010
Messages
9
Reaction score
0
Odp: Edytowanie PACC!

Naprawd? nikt nie wie jak to zrobi?? :(
 

BuRcZyK

Senior User
Joined
Sep 2, 2010
Messages
834
Reaction score
35
Odp: Edytowanie PACC!

Kiedy? gdzie? to widzia?em i nie trzeba source!! Jak znajd? dam tu edita.
 

Laughiiz

Advanced User
Joined
Nov 28, 2009
Messages
154
Reaction score
19
Age
27
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:

PHP:
exp_t EXP_MUL_PVP;

wrzu? to:

PHP:
exp_t EXP_PACC;

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.
 
Status
Not open for further replies.
Top