Merhaba arkadaşlar. Uzun aradan sonra tekrar script yazmak istedim canım ve tekrar başına koyuldum. Ancak ya unuttuğum ya da hatalı yaptığım şeyler olacak ki iki script konusunda özellikle ağır şekilde takıldım kaldım.

Elder Scroll oynayanlar bilir. Orada Conjured adlı bir skill ve belirli stonelardan conjured item alabiliyorduk. Ben Item Id. kullanımı için bunu item idle alakalı olarak conjured item süresini uzatabileceğim bir şey yapmaya çalıştım. Ancak ilk olarak, item çantaya düştüğünde tıklanarak tekrar bir item düşmesini sağlayabiliyorum. Bunu nasıl tıklar tıklar item id'e göre timer seviyesini ve armor seviyesini ayarlayabilirim ? Aynı zamanda Conjured itemi vermesini sağladığım Holly Man'ın (veya yerine yazılacak stone'un), belirli aralıklarla item vermesini sağlayabilirim. Spawn gibi olacak, belirli bir zaman dilimi sonrasında bu item aynı yerden dialogla alınabilecek, alındıktan sonra dialog açılmayacak uyarı yazısı verilecek. Bu nasıl yapılabilir ? Scripti çok karıştırıp yazmış olabilirim kusura bakmayın.
[ITEMDEF i_conjured_l_chest_100]
ID=i_studded_tunic
NAME=Conjured Leather Chest 100
TYPE=t_armor
RESOURCES=4 i_ingot_silver, 8 i_ingot_blackrock, 2 i_ingot_gold
WEIGHT=1
Armor=45
REQSTR=0

on=@create 
Color=0455

on=@click
		message @1153 [ <timer> ]
		message @1150 <name>
return 1
		


ON=@Death
remove
return 1

On=@equip
src.say @1153 Conjured item !!!
timer 36000
return 1

on=@timer 
remove
return 1

[ITEMDEF i_conjured_l_chest_75]
ID=i_studded_tunic
NAME=Conjured Leather Chest
TYPE=t_armor
RESOURCES=4 i_ingot_silver, 8 i_ingot_blackrock, 2 i_ingot_gold
WEIGHT=1
Armor=35
REQSTR=0

ON=@Death
remove
return 1

on=@create 
Color=0455

on=@click
		message @1153 [ <timer> ]
		message @1150 <name>
return 1
		



On=@equip
src.say @1153 Conjured item !!!
timer 5
return 1

on=@timer 
remove
return 1

[ITEMDEF i_conjured_l_chest_50]
ID=i_studded_tunic
NAME=Conjured Leather Chest
TYPE=t_armor
RESOURCES=4 i_ingot_silver, 8 i_ingot_blackrock, 2 i_ingot_gold
WEIGHT=1
Armor=25
REQSTR=0

ON=@Death
remove
return 1

on=@create 
Color=0455

on=@click
		message @1153 [ <timer> ]
		message @1150 <name>
return 1
		



On=@equip
src.say @1153 Conjured item !!!
timer 5
return 1

on=@timer 
remove
return 1

[ITEMDEF i_conjured_l_chest_25]
ID=i_studded_tunic
NAME=Conjured Leather Chest
TYPE=t_armor
RESOURCES=4 i_ingot_silver, 8 i_ingot_blackrock, 2 i_ingot_gold
WEIGHT=1
Armor=10
REQSTR=0

ON=@Death
remove
return 1

on=@create 
Color=0455

on=@click
		message @1153 [ <timer> ]
		message @1150 <name>
return 1
		



On=@equip
src.say @1153 Conjured item !!!
timer 5
return 1

on=@timer 
remove
return 1

[ITEMDEF i_conjured_l_chest]
ID=i_studded_tunic
NAME=Conjured Leather Chest
TYPE=t_armor
RESOURCES=4 i_ingot_silver, 8 i_ingot_blackrock, 2 i_ingot_gold
WEIGHT=1
Armor=10
REQSTR=0

ON=@Death
remove
return 1

on=@create 
Color=0455

on=@click
		message @1153 [ <timer> ]
		message @1150 <name>
return 1
		



On=@equip
src.say @1153 Conjured item !!!
if (<src.itemid> < 25.0)
remove
src.message @1153 Conjured itemler 25 item idenfitication alti ile giyilmeye calisildiginda yok olur.
elseif (<src.itemid> = 0) && (<src.itemid> < 25.0)
remove
src.newitem i_conjured_l_chest_25
src.act.cont = <src.findlayer.21.uid>
elseif (<src.itemid> > 49.9) && (<src.itemid> < 75.0)
remove
src.newitem i_conjured_l_chest_50
src.act.cont = <src.findlayer.21.uid>
elseif (<src.itemid> > 74.9) && (<src.itemid> < 100.0)
remove
src.newitem i_conjured_l_chest_75
src.act.cont = <src.findlayer.21.uid>
SRC.ACT.EQUIP
elseif (<src.itemid> = 100.0)
remove
src.newitem i_conjured_l_chest_100
src.act.cont = <src.findlayer.21.uid>
src.equip
endif
return 1

on=@timer 
remove
return 1


[EVENTS E_hollyman]
ON=@Dclick
IF (<DISTANCE> > 2)
SRC.SYSMESSAGE Cok uzaksin...
RETURN 1
ELSE
dialog d_conjured
timer 5
invis
return 1

on=@timer
invis
return 1





		

[CHARDEF c_holly_man]
NAME=Conjurer Holly Man
ID=c_man_gm
ARMOR=200

ON=@Create
COLOR=0060f
invul
NPC=brain_vendor
ITEM=i_robe_gm
COLOR=1153
events +e_hollyman

ON=@CLICK
message @1153 [ Holly Man ]
message @1152 Aisopos
return 1








ON=@DClick

dialog d_conjured
return 1
ENDIF
	


[DIALOG d_conjured]
150, 100
PAGE 0
nomove
noclose

resizepic 164 101 2520 450 180
text 350 136 1152 0
text 228 161 995 1
text 192 186 995 2
button 195 210 2151 2151 1 0 1
button 395 210 2472 2472 1 0 2

text 229 216 1152 3
text 429 216 1152 4

[DIALOG d_conjured TEXT]
	Holly Man
	Bir holly man buldun. Senin konusma istegine rag-
	men gozden kayboldu. Arkada biraktigi
	Conjured itemi al
	Conjured itemi alma


[DIALOG d_conjured button]
on=1
IF (<DISTANCE> > 2)
SRC.SYSMESSAGE Cok uzaksin...
RETURN 1
ELSE
src.newitem i_conjured_l_chest
src.act.cont = <src.findlayer.21.uid>
endif
on=2
src.sysmessage @1153 Conjured itemi almadin

[EOF]

Tailor Dialog'da (dtext falan bana göre yeni kalıyor, uğraşması zor geliyor, kafa basmıyor. Yuh hangi çağda kaldın falan olmasın :)) Buttonlara verdiğim işlevler olmuyor. Sphere'de herhangi bir hata da gözükmüyor ancak durum bu.
[DIALOG d_tailoring]
100, 100
noclose
nomove
PAGE 0
resizepic 67 73 5054 625 266
resizepic 257 78 3500 430 256
gumppic 66 47 1143
text 100 49 1152 0
button 87 85 4005 4006 0 1 0
button 87 125 4005 4006 0 2 0
button 87 165 4005 4006 0 3 0
button 87 205 4005 4006 0 4 0
button 87 245 4005 4006 0 5 0
text 121 85 1152 1
text 122 125 1152 2
text 122 165 1152 3
text 124 205 1152 4
text 125 245 1152 5
text 126 285 1152 6
button 87 285 4005 4006 0 6 0
button 180 306 243 241 1 0 0
text 297 96 1152 7
text 272 123 1152 8
text 270 169 1152 9
text 270 190 1152 10
text 331 274 1152 11
text 271 146 1152 12
PAGE 1
resizepic 257 78 3500 430 256
button 287 107 2151 2152 0 7 0 /Jester Hat
gumppic 267 112 50413
button 287 157 2151 2152 0 8 0 /Bribe
gumppic 267 57 50412
button 287 209 2151 2152 0 9 0 /fotr
gumppic 267 163 50411 
button 287 259 2151 2152 0 10 0 /magehat
gumppic 267 220 50409

button 400 107 2151 2152 0 11 0 /straw
gumppic 375 57 50408
button 400 157 2151 2152 0 12 0 /long straw
gumppic 375 112 50407
button 400 209 2151 2152 0 13 0 /basket
gumppic 375 163 50406
button 400 259 2151 2152 0 14 0 /long old
gumppic 375 220 50404

button 513 107 2151 2152 0 15 0
gumppic 483 57 50492
PAGE 2
resizepic 257 78 3500 430 256
button 287 107 2151 2152 0 16 0
button 287 157 2151 2152 0 17 0
button 287 209 2151 2152 0 18 0
button 287 259 2151 2152 0 19 0

button 400 107 2151 2152 0 20 0
PAGE 3
resizepic 257 78 3500 430 256
button 287 107 2151 2152 0 21 0
button 287 157 2151 2152 0 22 0
button 287 209 2151 2152 0 23 0
button 287 259 2151 2152 0 24 0
PAGE 4
resizepic 257 78 3500 430 256
button 287 107 2151 2152 0 25 0
button 287 157 2151 2152 0 26 0
button 287 209 2151 2152 0 27 0
button 287 259 2151 2152 0 28 0
PAGE 5
resizepic 257 78 3500 430 256
PAGE 6
resizepic 257 78 3500 430 256

[DIALOG d_tailoring TEXT]
<serv.name> Tailor Menu
Headwear
Shirts
Pants
Robes
Misc 1
Misc 2
<serv.name> ailesi olarak fikir ve onerilerinize her 
zaman acigiz. Serverda olmasini istediginiz craft itemleri
mak isteyen arkadaslarimizin fikirlerini cok degerli bul-
maktayiz.
 Bug ve oyun hatalari icin page atiniz.
lutfen forumumuzda oylamaya sununuz. Ozellikle RP yap-



[DIALOG d_tailoring BUTTON]
on=7
src.sysmessage button 1 e bastin
return 1

on=8
src.go britain
return 1

on=9
src.go britain

on=10
src.go britain

on=11
src.go britain

on=12
src.go britain

on=107
src.go britain

on=108
src.go britain

on=109
src.go britain

[EOF]

Burada hata nerede ?

Üye Ol veya Giriş Yap

Bu forum başlığına mesaj atmak istiyorsanız hemen üye olun veya giriş yapın.