• logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

Helmet dla Pala!

Status
Zamknięty.

tytan53

Advanced User
Dołączył
Grudzień 13, 2008
Posty
195
Liczba reakcji
11
Zaczynamy od Data/items/item.xml dodajemy tam taki kod:
<item id="10316" article="a" name="mighty helm of green sparks">
<attribute key="weight" value="4600" />
<attribute key="armor" value="10" />
<attribute key="skillDist" value="5" />
<attribute key="slotType" value="head" />
</item>

Nast?pnie wchodzimy w data/movements/movements.xml i dodajemy przy helmetach taki kod:

<movevent type="DeEquip" itemid="10316" slot="head" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="10316" slot="head" level="10" event="function" value="onEquipItem">
<vocation id="7" showInDescription="0"/>
</movevent>

W wyniku czego otrzymujemy :


18:10 You see a mighty helm of green sparks (Arm:10, distance fighting +5).
It can only be wielded properly by royal paladins of level 10 or higher.
It weighs 46.00 oz.
 
Odp: Helmet dla Pala!

To tak skoro ju? chcesz.

@tytan53.
Takie Itemki ka?dy umie zrobi?, dodajesz tylko linijki do items. Rada.
Skoro ju? doda?e? profesj?:
<movevent type="DeEquip" itemid="10316" slot="head" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="10316" slot="head" level="10" event="function" value="onEquipItem">
<vocation id="7" showInDescription="0"/>
</movevent>
To Vocation zmie? na paladyna skoro jest na 10 lvl a kto z 10 lvl na paccu zasuwa.
 
Status
Zamknięty.
Do góry