|
on=@deathcorpse
if <src.brain> == 1
argo.tag0.uid <src.baseid>
endifböyle bir eventın yoksa sphere.ini de tüm npclerde geçerli olacak event diye bir kısım var.[itemdef i_animal_resurrector]
id i_deed
type t_normal
name animal ressurretor
on=@dclick
targetf f_animal_resurrect
return 1
[function f_animal_resurrect]
if <argo.tag0.uid>
serv.newnpc <argo.tag0.uid>
if <argo.color>
new.color <argo.color>
endif
new.p <src.targp>
ref1 <new>
argo.remove
serv.newitem i_memory
new.attr=04
new.more1=04
new.more2=<serv.time>
new.morep=<p>
new.color=memory_ipet
new.timer=-1
new.link=<src>
new.cont=<ref1>
ref1.flags |= statf_pet
ref1.equip <new>
ref1.food = <ref1.maxfood>
ref1.flags |= statf_pet
ref1.update
endifBineğin kontrolünü sağlarken şu örneklerden yürüyebilirsin;if strmatch(*nightmare*,<argo.tag0.uid>)
if strmatch(*forest*,<argo.tag0.uid>)
if strmatch(*desert*,<argo.tag0.uid>)
if strmatch(*shire*,<argo.tag0.uid>)
if strmatch(*mustang*,<argo.tag0.uid>)
..// ek: şu an resleyenin olur. eski sahibinin olsun derseniz deathcorpse altına;on=@deathcorpse
if <src.brain> == 1
argo.tag0.uid <src.baseid>
if <src.owner>
argo.tag0.owner <src.owner>
endif
endifdeed kısmındaki şu bölüm de;if <argo.tag0.owner>
new.link=<argo.tag0.owner>
else
new.link=<src>
endif
|
|
| Konu | Kategori | Son cevap | Son yazan | Mesaj | Görüntüleme | |
|---|---|---|---|---|---|---|
|
|
Save esnasında item silinmesi
Son cevap: 26-05 00:02 · Son yazan: mahsuni · Mesaj: 2 · Görüntü: 3066
|
Konsol Hataları | 26-05 00:02 | 2 | 3066 | |
|
|
world save yardımı
Son cevap: 24-05 19:03 · Son yazan: M.CANILIK · Mesaj: 4 · Görüntü: 5147
|
Sphere Releases | 24-05 19:03 | 4 | 5147 | |
|
|
Save yazısının rengini değiştirmek
Son cevap: 02-05 16:30 · Son yazan: MirroR · Mesaj: 23 · Görüntü: 18743
|
ITEM Script Yardımı | 02-05 16:30 | 23 | 18743 | |
|
|
sphere 56b save sorunu
Son cevap: 25-03 15:28 · Son yazan: Tehliqely · Mesaj: 4 · Görüntü: 5602
|
Konsol Hataları | 25-03 15:28 | 4 | 5602 | |
|
|
Save yazısı orjinal font
Son cevap: 12-09 17:54 · Son yazan: Ney · Mesaj: 5 · Görüntü: 5646
|
Script Yardımı | 12-09 17:54 | 5 | 5646 |