Код:
[ITEMDEF 066fd]
DEFNAME=i_h_xbow_magma
NAME=Infernal Hand
ID=i_crossbow_heavy
REPAIR=0
DAM=6,68
REQSTR=125
TWOHANDS=Y
RESOURCES=100 i_board, 25 i_ingot_magma, 1 i_wire_copper
SKILLMAKE=BOWCRAFT 115.0, BLACKSMITHING 90.0
On=@Create
HITPOINTS={31 39}
color = color_o_magma
CATEGORY=Provisions - Weapons - Magic
SUBSECTION=Magic crossbows
DESCRIPTION=Infernal Hand
On=@Equip
if <type>==t_weapon_bow
type=t_weapon_xbow
endif
if (<src.archery> < 100.0) || (<src.tactics> < 100.0)
src.message Thee too unexpirienced to use this <name>.
unequip
return 1
endif
if <src.magicresistance> < 50.0
src.hits = {1 5}
src.stamina = 0
src.mana = 0
src.message You feel the fire in your veins!
unequip
return 1
elseif <src.magicresistance> < 100.0
src.damage (100.0 - <src.magicresistance>)
src.message You feel the touch of Infernal Hand!
return 0
else
src.message You feel the power of Infernal Hand!
return 0
endif
On=@Damage // 5d10+18
more2 = {11 56}
if <eval(<cont.archery>)> > <eval(rand(1160))>
more2 = <more2> + 12
endif
f_damage_xbow
src.damage <more2>
more2 = 0
return 1
Вот скрипт на арбаль, изучайте, всё наглядно.