What's new

Helmet dla Pala!

Status
Not open for further replies.

tytan53

Advanced User
Joined
Dec 13, 2008
Messages
195
Reaction score
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.
 

tytan53

Advanced User
Joined
Dec 13, 2008
Messages
195
Reaction score
11
Odp: Helmet dla Pala!

~~Refresh~~

Oceni kto??
 

darchior

Advanced User
Joined
Jul 1, 2011
Messages
315
Reaction score
23
Age
26
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.
 

triedge

Advanced User
Joined
Sep 8, 2009
Messages
341
Reaction score
21
Age
31
Odp: Helmet dla Pala!

~~Refresh~~

Oceni kto??

Ale co Ty tu wnosisz, skoro takie rzeczy to napewno ka?dy potrafi robi?, lepiej si? zajmij pisaniem skrypt?w, ew. pixelArt, i tw?rz nowe obrazki, 4/10 za ch?ci.
 
Status
Not open for further replies.
Top