|
[spell 115]
DEFNAME=s_wither
NAME=Wither
SOUND=0108
RUNES=
CAST_TIME=1.5
RESOURCES=
RUNE_ITEM=i_rune_weaken
SCROLL_ITEM=i_scroll_wither
FLAGS=SPELLFLAG_DIR_ANIM | SPELLFLAG_FX_TARG
EFFECT_ID=i_fx_curse
EFFECT=0
DURATION=0
MANAUSE=23
SKILLREQ=Necromancy 60.0
INTERRUPT=100.0,100.0
ON=@START
src.say @0100 Kal Vas An Flam
ON=@Success
if (<src.mana><23)
src.sysmessage @,3,1 You lack sufficient mana for this spell.
return 1
endif
src.mana -= 23
local.lmc = <eval 23*<src.tag0.lmc>>/100
src.mana += <eval <local.lmc>>
act.damage 0 1 <src.uid>
local.tmp=<obj>
obj=<uid>
forchars 5
if !(<uid>=<src.uid>)
if !((strmatch("*ice*","<id>")) || (strmatch("*snow*","<id>")) || (strmatch("*cold*","<id>")) || (strmatch("*frost*","<id>")) || (strmatch("*polar*","<id>")))
damage 15 dam_cold <obj>
endif
endif
endfor
obj=<local.tmp>
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move n
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move s
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move e
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move w
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move n,2
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move s,2
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move e,2
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move w,2
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move n,3
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move s,3
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move e,3
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move w,3
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move n,4
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move s,4
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move e,4
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move w,4
serv.newitem i_frost_wither
new.ATTR=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move ne
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move sw
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move se
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move nw
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move ne,2
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move sw,2
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move se,2
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move nw,2
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move ne,3
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move sw,3
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move se,3
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move nw,3
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move ne,4
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move sw,4
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move se,4
serv.newitem i_frost_wither
new.attr=attr_static|attr_decay
new.tag.owner <src.uid>
new.timer=5
new.p=<src.p>
new.move nw,4
return 1
[itemdef i_frost_wither]
defname=i_frost_wither
name=Frost
id=i_fx_curse
ON=@Create
color=0481
ON=@Step
IF !((strmatch("*ice*","<src.id>")) || (strmatch("*snow*","<src.id>")) || (strmatch("*cold*","<src.id>")) || (strmatch("*frost*","<src.id>")) || (strmatch("*polar*","<src.id>")))
src.damage 15 dam_cold <uid.<tag.owner>>
ENDIF2.)Spell başarılı olmasına rağmen fizzle uyarısı çıkıyor üzerimde neden olabilir?
obj=<uid>
forchars 5
if !(<uid>=<obj.uid>) && (<UID> != <ARGN2>)
if !((strmatch("*ice*","<id>")) || (strmatch("*snow*","<id>")) || (strmatch("*cold*","<id>")) || (strmatch("*frost*","<id>")) || (strmatch("*polar*","<id>")))
damage 15 dam_cold <obj>fizzle içinde player char ile denedin mi ? çünkü fizzle ile ilgili bir message belirtilmemiş ya da ben anlamadım
IF !((strmatch("*ice*","<src.id>")) || (strmatch("*snow*","<src.id>")) || (strmatch("*cold*","<src.id>")) || (strmatch("*frost*","<src.id>")) || (strmatch("*polar*","<src.id>")))
src.damage 15 dam_cold <uid.<tag.owner>>
ENDIFşurayı görmemişim büyük ihtimal üstünde de çıkıyor ya da üstünden geçiyorsun step olarak düşünüyorum link ile atan kişiyi kaydettirip step altında link.uid olur mu pek bilmiyorum ama forchars ile zaten damage verdirtiyorsun ekstra burasını kaldırırsan sorun düzelebilir gibi(<strmatch("*<uid.<tag.owner>*","<src.uid>")>)RUNES=KVAF denemek lazım belki sysmessage olarak vermene gerek kalmaz.ON=@Step
REF1=<TAG.OWNER>
IF (<REF1> != <SRC>)
IF !((strmatch("*ice*","<src.id>")) || (strmatch("*snow*","<src.id>")) || (strmatch("*cold*","<src.id>")) || (strmatch("*frost*","<src.id>")) || (strmatch("*polar*","<src.id>")))
src.damage 15 dam_cold <REF1>
ENDIF
ENDIFYeterli olacaktır, eğer 56bnin ilk sürümleri veya daha eski bir sürümse, sorgu kısmını <TAG.OWNER> == <SRC.UID> şeklinde de değişebilirsin.
[spell 104]
DEFNAME=s_curse_weapon
NAME=Curse Weapon
SOUND=snd_spell_curse
RUNES=
CAST_TIME=1.0
RESOURCES=
RUNE_ITEM=i_rune_curse
SCROLL_ITEM=i_scroll_curse_weapon
FLAGS=spellflag_targ_item
EFFECT_ID=0
EFFECT=0
DURATION=0
MANAUSE=7
SKILLREQ=Necromancy 0.1
INTERRUPT=100.0,100.0
ON=@Start
src.say @0100 An Sanct Gra Char
if !(<src.findlayer.1.isweapon>) & !(<src.findlayer.2.isweapon>)
src.message @,3,1 that is not a weapon.
return 1
endif
ON=@Success
if (<src.mana><7)
src.sysmessage @,3,1 You lack sufficient mana for this spell.
return 1
endif
src.mana -= 7
local.lmc = <eval 7*<src.tag0.lmc>>/100
src.mana += <eval <local.lmc>>
if <src.restest i_curse_weapon>
src.consume i_curse_weapon
return 1
endif
if (<src.findlayer.1.isweapon>)
src.tag.cursed_weapon=<src.findlayer.1.uid>
src.message @,3,1 you cursed your <src.findlayer.1.name> for a short time.
else (<src.findlayer.2.isweapon>)
src.tag.cursed_weapon=<src.findlayer.2.uid>
src.message @,3,1 you cursed your <src.findlayer.2.name> for a short time.
endif
serv.newitem i_curse_weapon
new.timer=(<eval <src.spiritspeak>/75>)+1
if (<new.timer><1)
new.timer 0
endif
new.equip <src>
return 1
[itemdef i_curse_weapon]
NAME=Curse Weapon
ID=i_memory
TYPE=t_eq_script
LAYER=layer_special
ON=@Equip
src.events +e_curse_weapon
link=<src.tag.cursed_weapon>
ON=@UnEquip
cont.events -e_curse_weapon
cont.tag.cursed_weapon=
cont.sound snd_spell_magic_arrow
ON=@Timer
remove
return 1
[events e_curse_weapon]
ON=@Hit
if (<argo.uid>==<tag0.cursed_weapon>)
serv.newitem i_fx_curse
new.color=0481
new.attr=attr_static|attr_decay
new.timer=1
new.p=<src.p>
sound 1317
hits += <argn1>/2
if <hits> > <maxhits>
hits=<maxhits>
endif
endif
ON=@Start
src.say @0100 An Sanct Gra Char
if !(<src.findlayer.1.isweapon>) & !(<src.findlayer.2.isweapon>)
src.message @,3,1 that is not a weapon.
return 1
endifON=@Start
src.say @0100 An Sanct Gra Char
if !(<act.isweapon>)
src.message @,3,1 that is not a weapon.
return 1
endif
|
|
| Konu | Kategori | Son cevap | Son yazan | Mesaj | Görüntüleme | |
|---|---|---|---|---|---|---|
|
|
Necromancy Book
Son cevap: 23-03 05:01 · Son yazan: Freeman · Mesaj: 17 · Görüntü: 7126
|
Script Yardımı | 23-03 05:01 | 17 | 7126 | |
|
|
Uo Centred Bir Kac Problem
Son cevap: 23-03 19:54 · Son yazan: Fawkes · Mesaj: 6 · Görüntü: 5776
|
Grafik Araçları | 23-03 19:54 | 6 | 5776 | |
|
|
Ev Sistemi problem
Son cevap: 06-10 20:59 · Son yazan: Alp · Mesaj: 19 · Görüntü: 14627
|
FUNCTION & EVENTS Script Yardımı | 06-10 20:59 | 19 | 14627 | |
|
|
There is some problem communicating with origin.Hatası
Son cevap: 06-03 05:44 · Son yazan: Spankox · Mesaj: 4 · Görüntü: 6505
|
UO Yardım Alanı | 06-03 05:44 | 4 | 6505 | |
|
|
Vendor ile İlgili bir Problem
Son cevap: 04-01 20:36 · Son yazan: calljon · Mesaj: 9 · Görüntü: 7033
|
Script Yardımı | 04-01 20:36 | 9 | 7033 |