Jump to content
Forumu Destekleyenlere Katılın ×
Paticik Forumları
2000 lerden beri faal olan, çok şukela bir paylaşım platformuyuz. Hoşgeldiniz.

makelast tag siliniyor :(


Maki

Öne çıkan mesajlar

Arkadaslar biliyorum cok sik mesaj yaziyorum bu 3ncu sorunum ama aratiriyorum birkac gundurde kafami kirdigim problemlerden bi yardim ederseniz cok sevinirim
56b de makelast komutunu kullaniyorum gayet guzel isliyor ama save alinca consolede 1 unplaced object deleted diyor ve makelast komutu bozuluyor 0 itemini yapmak icin 0 reg falan lazim diyor yane hafizasi siliniyor ben bu komutu bir menude kullaniyorum ve acemiligimden cozemedim :(
scriptin kisaltilmisi bu

[spo][Function makelasta]
makeitem

[dialog d_skill]
100 100
page 0
resizepic 0 0 5054 461 341

dtext 170 7 55 sunucu
for 9
if !(strmatch('0>sec>>','0')
button 20 *25)> 210 211 1 0 1>
dtext 45 *25)> 55 >sec>>
endif
end
resizepic 120 30 3500 320 285
dtext 20 30 55
page 1
dtext 20 55 55 .name>
if (0.rescount>>)
if (.rescount>-1> < 4)
for 0 .rescount>-1>
button 140 *50)> 210 211 1 0 +1>
tilepic 160 *50)> .findcont.>.id>
dtext 140 *50)> 55 .findcont.>.name>
//dtext 280 *50)> 55 .findcont.>.resmake>
end
else
for 0 4
button 140 *50)> 210 211 1 0 +1>
tilepic 160 *50)> .findcont.>.id>
dtext 140 *50)> 55 .findcont.>.name>
//dtext 280 *50)> 55 .findcont.>.resmake>
end
if (.rescount>-1> > 4)
for 5 .rescount>-1>
button 290 -5)*50)> 210 211 1 0 +1>
tilepic 310 -5)*50)> .findcont.>.id>
dtext 290 -5)*50)> 55 .findcont.>.name>
//dtext 280 -5)*50)> 55 .findcont.>.resmake>
end
endif
endif

[dialog d_skill button]
on=1
tag.makelast=.findcont.0>
makelast
return 1
dialog d_skill
on=2
tag.makelast=.findcont.1>
makelast
return 1
dialog d_skill
on=3
tag.makelast=.findcont.2>
makelast
return 1
dialog d_skill
on=4
tag.makelast=.findcont.3>
makelast
return 1
dialog d_skill
on=5
tag.makelast=.findcont.4>
makelast
return 1
dialog d_skill
on=6
tag.makelast=.findcont.5>
makelast
return 1
dialog d_skill
on=7
tag.makelast=.findcont.6>
makelast
return 1
dialog d_skill
on=8
tag.makelast=.findcont.7>
makelast
return 1
dialog d_skill
on=9
tag.makelast=.findcont.8>
makelast
return 1
dialog d_skill
on=10
tag.makelast=.findcont.9>
makelast
return 1
dialog d_skill
on=11

skillm > 1
on=12

skillm > 2
on=13

skillm > 3
on=14

skillm > 4
on=15

skillm > 5
on=16

skillm > 6
on=17

skillm > 7
on=18

skillm > 8
on=19

skillm > 9

[FUNCTION makelast]
if !(0)
sysmessage @60,0,1 En Son Yaptiginiz Esya Belli Degil.
return 1
endif
if !(.baseid>>)
sysmessage @60,0,1 .name> yapmak icin .skillmake>, .resmake> gerekli.
return 1
endif
if !(.resources>>)
sysmessage @60,0,1 .name> yapmak icin .skillmake>, .resmake> gerekli.
return 1
endif
if (strmatch('.baseid>','i_scroll_blank')
consume i_kindling
if (rand(5) > 1)
newitem i_scroll_blank
act.bounce
else
src.sysmessage Malzeme heba oldu.
endif
return 1
endif
makeitem .baseid>

[DEFNAME skills]
menu1name=Inscription
menu1sec1=Circle 1
menu1sec1item1=i_scroll_clumsy
menu1sec1item2=i_scroll_create_food
menu1sec1item3=i_scroll_feeblemind
menu1sec1item4=i_scroll_heal
menu1sec1item5=i_scroll_magic_arrow
menu1sec1item6=i_scroll_night_sight
menu1sec1item7=i_scroll_reactive_armor
menu1sec1item8=i_scroll_weaken
menu1sec2=Circle 2
menu1sec2item1=i_scroll_agility
menu1sec2item2=i_scroll_cunning
menu1sec2item3=i_scroll_cure
menu1sec2item4=i_scroll_harm
menu1sec2item5=i_scroll_magic_trap
menu1sec2item6=i_scroll_magic_untrap
menu1sec2item7=i_scroll_protection
menu1sec2item8=i_scroll_strength
menu1sec3=Circle 3
menu1sec3item1=i_scroll_bless
menu1sec3item2=i_scroll_fireball
menu1sec3item3=i_scroll_magic_lock
menu1sec3item4=i_scroll_poison
menu1sec3item5=i_scroll_telekinesis
menu1sec3item6=i_scroll_teleport
menu1sec3item7=i_scroll_unlock
menu1sec3item8=i_scroll_wall_of_stone
menu1sec4=Circle 4
menu1sec4item1=i_scroll_archcure
menu1sec4item2=i_scroll_archprotection
menu1sec4item3=i_scroll_curse
menu1sec4item4=i_scroll_fire_field
menu1sec4item5=i_scroll_greater_heal
menu1sec4item6=i_scroll_lightning
menu1sec4item7=i_scroll_mana_drain
menu1sec4item8=i_scroll_recall
menu1sec5=Circle 5
menu1sec5item1=i_scroll_blade_spirits
menu1sec5item2=i_scroll_dispel_field
menu1sec5item3=i_scroll_incognito
menu1sec5item4=i_scroll_magic_reflection
menu1sec5item5=i_scroll_mind_blast
menu1sec5item6=i_scroll_paralyze
menu1sec5item7=i_scroll_poison_field
menu1sec5item8=i_scroll_summon_creature
menu1sec6=Circle 6
menu1sec6item1=i_scroll_dispel
menu1sec6item2=i_scroll_energy_bolt
menu1sec6item3=i_scroll_explosion
menu1sec6item4=i_scroll_invisibility
menu1sec6item5=i_scroll_mark
menu1sec6item6=i_scroll_mass_curse
menu1sec6item7=i_scroll_paralyze_field
menu1sec6item8=i_scroll_reveal
menu1sec7=Circle 7
menu1sec7item1=i_scroll_chain_lightning
menu1sec7item2=i_scroll_energy_field
menu1sec7item3=i_scroll_flamestrike
menu1sec7item4=i_scroll_gate_travel
menu1sec7item5=i_scroll_mana_vampire
menu1sec7item6=i_scroll_mass_dispel
menu1sec7item7=i_scroll_meteor_swarm
menu1sec7item8=i_scroll_polymorph
menu1sec8=Circle 8
menu1sec8item1=i_scroll_earthquake
menu1sec8item2=i_scroll_energy_vortex
menu1sec8item3=i_scroll_resurrection
menu1sec8item4=i_scroll_summon_elem_air
menu1sec8item5=i_scroll_summon_daemon
menu1sec8item6=i_scroll_summon_elem_earth
menu1sec8item7=i_scroll_summon_elem_fire
menu1sec8item8=i_scroll_summon_elem_water

[FUNCTION skillm]
try uid..remove
tag.menun=
tag.menutitle=>name>
if (0==0)
argn2=1
endif
SRC.NEWITEM i_bag
SRC.ACT.NAME =>sec>>
SRC.ACT.ATTR=010
SRC.TAG.MENUM=
SRC.TAG.TUID=
for 10 1
SRC.NEWITEM >sec>item>>
SRC.ACT.CONT=
end
dialog d_skill [/spo]
Link to comment
Sosyal ağlarda paylaş

Dialog içindeki FOR sıralamasını soyle yaparsan daha iyi olur obur turlu sorun cıkar.Hatta soyle diyeyim if, esle,if seklinde if sorgularını kullanamazsın.
[spo]
if (0val .rescount>>)
if (val .rescount>-1> < 4)
for 0 val .rescount>-1>
button 140 val(60+*50)> 210 211 1 0 val +1>
tilepic 160 val(50+*50)> .findcont.val >.id>
dtext 140 val(80+*50)> 55 .findcont.val >.name>
//dtext 280 val(65+*50)> 55 .findcont.val >.resmake>
endfor
elseif (val .rescount>-1> > 4)
for 5 val .rescount>-1>
button 290 val(60+(-5)*50)> 210 211 1 0 val +1>
tilepic 310 val(50+(-5)*50)> .findcont.val >.id>
dtext 290 val(80+(-5)*50)> 55 .findcont.val >.name>
//dtext 280 val(65+(-5)*50)> 55 .findcont.val >.resmake>
endfor
else
for 0 4
button 140 val(60+*50)> 210 211 1 0 val +1>
tilepic 160 val(50+*50)> .findcont.val >.id>
dtext 140 val(80+*50)> 55 .findcont.val >.name>
//dtext 280 val(65+*50)> 55 .findcont.val >.resmake>
endfor
endif
endif
[/spo]

Button kısımlarını su sekilde kullanabilirsin.

[spo]
[dialog d_skill button]
onbutton=1,10
tag.makelast=.findcont.>
makelast
return 1
dialog d_skill

on=11,19
skillm val()> val(-10)>
[/spo]

SAVE sırasında silinen seyler item veya memoryler olabilir garbage collect acık ise INI den o da onun dışında tag,ctag,var gibi şeylerin silinmemesi gerekiyor. Direk kodu calıstırıp bakmadım da gözüme ilişenler boyle fikir verebilir.

edit: bbcode larının neden araya girdigi konusunda bi fikrim yok :)

[ Mesaj 11 Mayıs 2007, Cuma - 17:19 tarihinde, jonq tarafından güncellenmiştir ]
Link to comment
Sosyal ağlarda paylaş

×
×
  • Yeni Oluştur...