///Maker:By Tuqi///
///[email protected]///

[chardef c_spotion]
id c_man
armor 60
dam 80,90
CATEGORY=Monsters
SUBSECTION=Miscellaneous
DESCRIPTION=Aile

on=@click
message @38,,1 [Other Potion's]
message @0492,,1 Seller Vendor
return 1

on=@dclick
IF ( <DISTANCE> < 4 )
SRC.SFX 555
DIALOG d_potion
ELSE
SRC.sysmessage @38,,1 Uzaksin!
RETURN 1
ENDIF
RETURN 1

on=@create
color 01
str 450
maxhits 1600
dex 0
int 500
stam 0
invul 1

itemnewbie i_robe
attr 010
color 07a1
itemnewbie i_hat_floppy
attr 010
color 0481
itemnewbie i_apron_half
attr 010
color 0481
itemnewbie i_staff_black
attr 010
color 0481

[dialog d_potion]
5,5
nomove
resizepic 50 0 9250 510 570
resizepic 60 10 9250 490 550

resizepic 80 65 9250 430 30 // 
resizepic 80 105 9250 430 30 // 
resizepic 80 145 9250 430 30 // 
resizepic 80 185 9250 430 30 // 
resizepic 80 225 9250 430 30 // 
resizepic 80 265 9250 430 30 // 
resizepic 80 305 9250 430 30 // 
resizepic 80 345 9250 430 30 // 
resizepic 80 385 9250 430 30 // 
resizepic 80 425 9250 430 30 // 
resizepic 80 465 9250 430 30 // 
resizepic 80 505 9250 430 30 // 

button 100 69 4006 4005 1 0 1 
button 100 109 4006 4005 1 0 2 
button 100 149 4006 4005 1 0 3 
button 100 189 4006 4005 1 0 4
button 100 229 4006 4005 1 0 5
button 100 269 4006 4005 1 0 6
button 100 309 4006 4005 1 0 7
button 100 349 4006 4005 1 0 8
button 100 389 4006 4005 1 0 9
button 100 429 4006 4005 1 0 10
button 100 469 4006 4005 1 0 11
button 100 509 4006 4005 1 0 12


text 212 35 38 0
text 147 70 049 1
text 147 110 049 2
text 147 150 049 3
text 147 190 049 4
text 147 230 049 5
text 147 270 049 6
text 147 310 049 7
text 147 350 049 8
text 147 390 049 9
text 147 430 049 10
text 147 470 049 11
text 147 510 049 12


tilepic 455 66 <serv.itemdef.i_potion_heal.id>
tilepic 455 106 <serv.itemdef.i_potion_cure.id>
tilepic 455 146 <serv.itemdef.i_potion_agility.id>
tilepic 455 186 <serv.itemdef.i_potion_refresh.id>
tilepic 455 226 <serv.itemdef.i_potion_poison.id>
tilepic 455 266 <serv.itemdef.i_bleed_pot.id>
tilepic 455 306 <serv.itemdef.i_bandage.id>
tilepic 455 346 <serv.itemdef.i_tp.id>
tilepic 455 386 <serv.itemdef.i_rune_marker.id>
tilepic 455 426 <serv.itemdef.i_runebook.id>
tilepic 455 466 <serv.itemdef.i_full_spellbook.id>
tilepic 455 506 <serv.itemdef.i_magic_reg90.id>

[dialog d_potion text]
<serv.name> Other Potion's Seller
Greather Heal - 10 Adet
Greather Cure - 10 Adet
Greather Agility - 10 Adet
Total Refresh - 10 Adet
Deadly Poison - 10 Adet
Bleed Potion - 10 Adet
Bandaj - 100 Adet
Trapped Pouch(TP)  - 5 Adet
Rune Marker - 5 Adet
Rune Book - 1 Adet
Full Spell Book - 1 Adet
Reg Crystal(90) - 1 Adet

[dialog d_potion button]

onbutton=1
src.newitem=i_potion_healgreat,10
src.act.bounce
src.dialog d_potion

onbutton=2
src.newitem=i_potion_curegreat,10
src.act.bounce
src.dialog d_potion

onbutton=3
src.newitem=i_potion_agilitygreat,10
src.act.bounce
src.dialog d_potion

onbutton=4
src.newitem=i_potion_refreshtotal,10
src.act.bounce
src.dialog d_potion

onbutton=5
src.newitem=i_potion_poisondeadly,10
src.act.bounce
src.dialog d_potion

onbutton=6
src.newitem=i_bleed_pot,10
src.act.bounce
src.dialog d_potion

onbutton=7
src.newitem=i_bandage,100
src.act.bounce
src.dialog d_potion

onbutton=8
src.newitem=i_tp,5
src.act.bounce
src.dialog d_potion

onbutton=9
src.newitem=i_rune_marker,5
src.act.bounce
src.dialog d_potion

onbutton=10
src.newitem=i_runebook
src.act.bounce
src.act.attr 010
src.dialog d_potion

onbutton=11
src.newitem=i_full_spellbook
src.act.bounce
src.act.attr 010
src.dialog d_potion

onbutton=12
src.newitem=i_magic_reg90
src.act.bounce
src.act.attr 010
src.dialog d_potion


Oyundan Dialog Görüntüsü:


Bu konu ArnolD tarafından düzenlendi(2011-05-03 00:04, 12 yıl önce)
///Maker:By Tuqi///
///[email protected]///

[chardef c_spotion]
id c_man
armor 60
dam 80,90
CATEGORY=Monsters
SUBSECTION=Miscellaneous
DESCRIPTION=Aile

on=@click
message @38,,1 [Other Potion's]
message @0492,,1 Seller Vendor
return 1

on=@dclick
IF ( <DISTANCE> < 4 )
SRC.SFX 555
DIALOG d_potion
ELSE
SRC.sysmessage @38,,1 Uzaksin!
RETURN 1
ENDIF
RETURN 1

on=@create
color 01
str 450
maxhits 1600
dex 0
int 500
stam 0
invul 1

itemnewbie i_robe
attr 010
color 07a1
itemnewbie i_hat_floppy
attr 010
color 0481
itemnewbie i_apron_half
attr 010
color 0481
itemnewbie i_staff_black
attr 010
color 0481

[dialog d_potion]
5,5
nomove
resizepic 50 0 9250 510 570
resizepic 60 10 9250 490 550

resizepic 80 65 9250 430 30 //
resizepic 80 105 9250 430 30 //
resizepic 80 145 9250 430 30 //
resizepic 80 185 9250 430 30 //
resizepic 80 225 9250 430 30 //
resizepic 80 265 9250 430 30 //
resizepic 80 305 9250 430 30 //
resizepic 80 345 9250 430 30 //
resizepic 80 385 9250 430 30 //
resizepic 80 425 9250 430 30 //
resizepic 80 465 9250 430 30 //
resizepic 80 505 9250 430 30 //

button 100 69 4006 4005 1 0 1
button 100 109 4006 4005 1 0 2
button 100 149 4006 4005 1 0 3
button 100 189 4006 4005 1 0 4
button 100 229 4006 4005 1 0 5
button 100 269 4006 4005 1 0 6
button 100 309 4006 4005 1 0 7
button 100 349 4006 4005 1 0 8
button 100 389 4006 4005 1 0 9
button 100 429 4006 4005 1 0 10
button 100 469 4006 4005 1 0 11
button 100 509 4006 4005 1 0 12


text 212 35 38 0
text 147 70 049 1
text 147 110 049 2
text 147 150 049 3
text 147 190 049 4
text 147 230 049 5
text 147 270 049 6
text 147 310 049 7
text 147 350 049 8
text 147 390 049 9
text 147 430 049 10
text 147 470 049 11
text 147 510 049 12


tilepic 455 66 <serv.itemdef.i_potion_heal.id>
tilepic 455 106 <serv.itemdef.i_potion_cure.id>
tilepic 455 146 <serv.itemdef.i_potion_agility.id>
tilepic 455 186 <serv.itemdef.i_potion_refresh.id>
tilepic 455 226 <serv.itemdef.i_potion_poison.id>
tilepic 455 266 <serv.itemdef.i_bleed_pot.id>
tilepic 455 306 <serv.itemdef.i_bandage.id>
tilepic 455 346 <serv.itemdef.i_tp.id>
tilepic 455 386 <serv.itemdef.i_rune_marker.id>
tilepic 455 426 <serv.itemdef.i_runebook.id>
tilepic 455 466 <serv.itemdef.i_full_spellbook.id>
tilepic 455 506 <serv.itemdef.i_magic_reg90.id>

[dialog d_potion text]
<serv.name> Other Potion's Seller
Greather Heal - 10 Adet
Greather Cure - 10 Adet
Greather Agility - 10 Adet
Total Refresh - 10 Adet
Deadly Poison - 10 Adet
Bleed Potion - 10 Adet
Bandaj - 100 Adet
Trapped Pouch(TP) - 5 Adet
Rune Marker - 5 Adet
Rune Book - 1 Adet
Full Spell Book - 1 Adet
Reg Crystal(90) - 1 Adet

[dialog d_potion button]

onbutton=1
src.newitem=i_potion_healgreat,10
src.act.bounce
src.dialog d_potion

onbutton=2
src.newitem=i_potion_curegreat,10
src.act.bounce
src.dialog d_potion

onbutton=3
src.newitem=i_potion_agilitygreat,10
src.act.bounce
src.dialog d_potion

onbutton=4
src.newitem=i_potion_refreshtotal,10
src.act.bounce
src.dialog d_potion

onbutton=5
src.newitem=i_potion_poisondeadly,10
src.act.bounce
src.dialog d_potion

onbutton=6
src.newitem=i_bleed_pot,10
src.act.bounce
src.dialog d_potion

onbutton=7
src.newitem=i_bandage,100
src.act.bounce
src.dialog d_potion

onbutton=8
src.newitem=i_tp,5
src.act.bounce
src.dialog d_potion

onbutton=9
src.newitem=i_rune_marker,5
src.act.bounce
src.dialog d_potion

onbutton=10
src.newitem=i_runebook
src.act.bounce
src.act.attr 010
src.dialog d_potion

onbutton=11
src.newitem=i_full_spellbook
src.act.bounce
src.act.attr 010
src.dialog d_potion

onbutton=12
src.newitem=i_magic_reg90
src.act.bounce
src.act.attr 010
src.dialog d_potion

Code satırları içine alıp düzenlemeni tavsiye ediyorum. Eline sağlık
Novice
12.5
Madem ilk scriptin önce tebrik edeyim sonrada biraz öneride bulunalımda hatalarını görebilesin.

on=@dclick
IF ( <DISTANCE> < 4 )
SRC.SFX 555
DIALOG d_potion
ELSE
SRC.sysmessage @38,,1 Uzaksin!
RETURN 1
ENDIF
RETURN 1

Öncelikle hata olayını ilk başa almanı öneririm.56b'de bir kaç kez başıma gelmişti hata başa onay sonradan yazılırsa daha rahat olur.En sondaki return 1 gereksiz olmuş bunuda belirteyim.

onbutton=1
src.newitem=i_potion_healgreat,10
src.act.bounce
src.dialog d_potion

Bu kod eskiden kalma bir olay.56b'de şu şekilde değiştirebilirsin.

serv.newitem i_potion_healgreat,10,<src.findlayer.21.uid>
src.sdialog d_potion

şeklinde yapabilirsin."sdialog" dialogun sadece bir kere açılmasını sağlar ikincisi açılırsa eskini kapatır yenisini açar (dialog güncellemek tarzı bir şey).Ayrıca senin verdiğin kodun sonunda "return 1" yok sürekli dialog kapanmadan açar bu da bir hatadır.

birazda bir kaç ek bilgi söyleyebilirim.

- onbutton=0 yaparsan dialogun kapatılmasını halinde aktif hale gelir.Dialog ekranına sağ tıklarsan bu aktif olur yani.
- onbutton=1 yerine on=1 yapabilirsin.yazarken boşuna uzatmana gerek kalmaz
- eğer meraklıysan bu işe for döngüsünü kesinlikle öğrenmem lazım.script yazımını kısaltmasından ziyade onun mantığını öğrenirsen çok daha fazla işine gelir çünkü o for döngüsü hemen hemen tüm script dallarında vardır çok işine yarayacaktır.

not: ilk scriptin ise ve dialogu sen yaptıysan tebrik ederim.ben ilk yazmaya başladığımda dialog yazamıyordum =)
- onbutton=0 yaparsan dialogun kapatılmasını halinde aktif hale gelir.Dialog ekranına sağ tıklarsan bu aktif olur yani.
- onbutton=1 yerine on=1 yapabilirsin.yazarken boşuna uzatmana gerek kalmaz
- eğer meraklıysan bu işe for döngüsünü kesinlikle öğrenmem lazım.script yazımını kısaltmasından ziyade onun mantığını öğrenirsen çok daha fazla işine gelir çünkü o for döngüsü hemen hemen tüm script dallarında vardır çok işine yarayacaktır.

not: ilk scriptin ise ve dialogu sen yaptıysan tebrik ederim.ben ilk yazmaya başladığımda dialog yazamıyordum =)

Benim için sorun olmuyo kardeşim sonuçta elim alışmış :)

-Evet birde ilk scriptim ilk dialogum :)
Paylaşım güzel ama bence böyle direk script yayınlamamalısın.Çünki direk kopyala yapıştır yapacaklar.Fakat kendi sistemlerinde hata olanlar hiç degilse biraz uğraş çaba gösterip araştırırlar.
Hyperion : Paylaşım güzel ama bence böyle direk script yayınlamamalısın.Çünki direk kopyala yapıştır yapacaklar.Fakat kendi sistemlerinde hata olanlar hiç degilse biraz uğraş çaba gösterip araştırırlar.

Yapsınlar canları sağolsun ben onlar için emek harcayıp koyuyorum buraya onlar bukadar insafsızlık yapıp bi teşekür etmeden kullanıyolarsa diycek bişey bulamıyorum
Nasıl yapsınlar arkadaşım.Ondan sonra işi bilen bilmeyen herkez server açıyor sanıyor kendini.Peki bu uğraşan arkadaşlara yazık değilmi.Kınıyorum sizi.

Üye Ol veya Giriş Yap

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