Herhangi bir spell kullanıldığında elimizdeki staff elden düşüyor bunu nasıl düzeltebilirim. Daha doğrusu düşmemesini istiyorum ama bulamadım bir türlü ...
Taming staff script
[ITEMDEF i_staff_taming]
ID=i_staff_gnarled
NAME=taming staff
TYPE=t_weapon_mace_staff
VALUE=290
TWOHANDS=Y
LAYER=2
WEIGHT=10
DAM=5,10
On=@Create
color 2001
attr 04
more2 0
timer -1
hitpoints 5
on=@click
message @0 <name>
attr 04
return 1
On=@DClick
if (<topobj.uid> != <src.uid>)
src.sysmessage @38,,1 Bunu kullanabilmeniz icin uzerinizde olmali.
elseif (<src.flags>&statf_hidden) || (<src.flags>&statf_invisible)
src.sysmessage @38,,1 Gizlenmis durumdayken bunu kullanamazsiniz.
elseif (<src.targ.region.defname> == a_townZoo)
src.sysmessage @38,,1 Bu bolgede taming yasaktir.
elseif (<timer> == -1)
equip
attr 04
target @0481,,1 Hangi hayvani evcillestirmek istiyorsunuz?
endif
return 1
On=@UnEquip
more2 0
timer -1
link -1
src.events -e_taming_f
Gnarled staff
[itemdef 013f8]
defname i_staff_gnarled
weight 8.2
type T_WEAPON_MACE_STAFF
flip 1
dam 9,15
skill Mace Fighting
twohands Y
category Provisions - Weapons
subsection Staves
description Gnarled Staff
dupelist 013f9
skillmake CARPENTRY 78.9
resources 7 i_log
On=@Create
hitpoints 100
On=@Damage
src.dropstam
on=@unequip
cont.events -e_dismount
on=@click
if !(<attr>&(attr_identified))
message @150 <name>
return 1
elif (<attr>&(attr_identified))
message @158 <name>
message @150 [Damage : <dam>]
message @150 [% <hitpoints> Yeni]
return 1
endif
[itemdef 013f9] // gnarled staff
dupeitem 013f8