Amulet Of Life

Status
Zamknięty.

Batonek

Senior User
Zarejestrowany
Dołączył
Kwiecień 26, 2008
Posty
605
Liczba reakcji
25
Witam. Poszukuje skryptu przybli?onego do AOLa, lecz w tym wypadku zamiast loss, b?dzie tak jak pierwotnie wygl?da? AOL w realu - amulet of life. Dzia?a podobnie, lecz nie tylko ochrania nasze itemy przed utrat?, ale lvl i skille r?wnie?. Oczywi?cie po zgonie r?wnie? go tracimy.
Z g?ry dzi?ki,
pozdrawiam.
 
Odp: Amulet Of Life

..::r.e.f.r.e.s.h::..
 
Odp: Amulet Of Life

..::r.e.f.r.e.s.h::..
 
Odp: Amulet Of Life

W data/items.xml dodaj:
<item id="2131" charges="5"/> //Tutaj zmieniasz ile ma by? u?y?

w player.cpp
pod:

if (items[SLOT_NECKLACE] && items[SLOT_NECKLACE]->getID() == ITEM_AOL)
{
removeItemInventory(SLOT_NECKLACE);
return;
}

Dodajemy:

if (items[SLOT_NECKLACE] && items[SLOT_NECKLACE]->getCharges() > 0)
{
if (items[SLOT_NECKLACE]->getID() == ITEM_STAR_AMULET)
{
items[SLOT_NECKLACE]->useCharge();
aol = true;
}
if (items[SLOT_NECKLACE]->getCharges() <= 0)
{
removeItemInventory(SLOT_NECKLACE);
}
return;
}

Teraz pod:

long lostMana = 0;

wklejamy:

if(aol)
{
return;
}

Nast?pnie, zamie? to:

experience -= getLostExperience();

Na to:

if(!aol)
{
experience -= getLostExperience();
}
else
{
aol = false;
}

pod:

bool gainHealthTick();

dodaj:


const76.h
pod:

ITEM_AOL = 2173,

Dajemy:

ITEM_STAR_AMULET = 2131,

Projekt przebudowa? (Ctrl+F11) i gotowe.


Tu masz dodatek jak chcesz ?eby Amulet by? dla PACC

W player.cpp zamieniamy to:

if (items[SLOT_NECKLACE] && items[SLOT_NECKLACE]->getCharges() > 0)
{
if (items[SLOT_NECKLACE]->getID() == ITEM_STAR_LIGHT ){
items[SLOT_NECKLACE]->useCharge();
aol = true;
}
if (items[SLOT_NECKLACE]->getCharges() <= 0){
removeItemInventory(SLOT_NECKLACE);
}
return;
}

Na to:

if (items[SLOT_NECKLACE] && items[SLOT_NECKLACE]->getCharges() > 0)
{
if (items[SLOT_NECKLACE]->getID() == ITEM_STAR_LIGHT && isPremium()){
items[SLOT_NECKLACE]->useCharge();
aol = true;
}
if (items[SLOT_NECKLACE]->getCharges() <= 0){
removeItemInventory(SLOT_NECKLACE);
}
return;
 
Odp: Amulet Of Life

To zamieni zwyk?ego AOLa tak? Nie da si? zrobi? nowego amuletu?
 
Odp: Amulet Of Life

To ci zamieni przedmiot o id "2138"

Chyba, ?e chcesz ?eby ci to zamieni?o AOL'a wystarczy zmieni? ID.

Jak chcesz jaki? inny amulet zmieniasz tylko:

<item id="2131" charges="5"/> //Tutaj zmieniasz ile ma by? u?y?
Ten "2131" na jakie? inne ID jakiego? amuletu.

Pozdrawiam
 
Odp: Amulet Of Life

Dobra jak znajd? chwil? to sprawdz?.
Mam nadzieje ?e b?dzie dzia?a? ;-)
Na razie dzi?ki, dam edyta.

#edit
Nigdy nie kompilowa?em w c++ jednak my?la?em ?e to ogarn?... Nie jest to takie proste ?eby zrobi? to w godzin? :P
Da?oby si? ?ebym ci przes?a? jakie? pliki a Ty je przerobi? do tego amuletu?
Jutro mia?em odpali? OTSa, koledzy i inni ju? czekaj? wi?c nie chc? przek?ada?.
 
Ostatnia edycja:
Status
Zamknięty.
Back
Do góry