Arkadaşlar bir hazine sistemim var 6 tane yaratık cıkıyor, ama içlerinden sadece dragon öldüğünde kasa çıkıyor hepsi öldüğünde cıkmasını istiyorum ne yapmalıyım_?
script'i atarsan daha iyi yardımcı oluruz.

serv.newnpc=c_rottin
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 4
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.timer=2800

serv.newnpc=c_orc_hazine
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 4
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.timer=2800

serv.newnpc=c_orc_hazine
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 4
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.timer=2800

serv.newnpc=c_dragon_hazine6
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 4
new.events +e_tesouro_chefe
local.npc1=<new.uid>
new.message @58,,1 Hazinemi almakmi ?
new.tag.tpx=<tag.tpx>
new.tag.tpy=<tag.tpy>
new.tag.prizemoney=<eval <src.cartography>*10>
new.tag.prizeitem=<hval <def.random_treasure_prize>>
new.effect 1,i_gold,20,20
local.container=<new.uid>
serv.newitem=i_tesouro_monstro
new.timer=3000

[events e_tesouro_chefe]
ON=@DEATHCORPSE
serv.newitem=i_kasa_hazine
new.color=07ad
new.attr=attr_decay|attr_move_never
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>,<eval <p.z>>
new.timer=360
try uid.<uid.<argo.uid>.more2>.sysmessage @0482,1,1,1 Hazine sahibi dragon'u oldurdun, hazineyi alabilirsiniz.
try uid.<uid.<argo.uid>.more2>.arrowquest
src.var.okcikartti 0

Bu bölümüyle ilgili herhalde

haritaya tıklayınca hazineyi açılıyor, yaratıklar çıkıyor.Çıkan dragona bir event veriyor ölünce kasa cıkartıyor ben bütün yaratıklar öldükten sonra kasanın çıkmasını istiyorum

Bu konu ycihangir tarafından düzenlendi(2011-08-10 17:13, 12 yıl önce)
sana şöyle bi hazine sistemi veriyim bunun içinde çözümün var ister bak incele çöz ister kullan :)

[itemdef i_cont_define]
NAME=Treasure Container
ID=i_box_brass
TYPE=t_normal
weight 0.1

ON=@CREATE
COLOR 070d

ON=@CLICK
MESSAGE @58 Belirsiz Sandik
return 1

ON=@DCLICK
if (<topobj.uid> != <src.uid>)
src.sysmessage @037 Bunu kullanabilmeniz icin cantanizda olmali.
return 1
endif
SRC.SAYUA 920,6,6,0 * Sandigi kirar *
src.newitem i_define_haritasi
src.act.equip
src.sysmessage @0482 Bilinmeyen bir kagit parcasi cikti
remove
return 1

[itemdef i_bottle_define]
NAME=SOS Bottle
ID=i_bottle_ale
TYPE=t_normal
weight 0.1
value 9

ON=@CREATE
COLOR 070d

ON=@CLICK
MESSAGE @58 SOS Bottle
return 1

ON=@DCLICK
if (<topobj.uid> != <src.uid>)
src.sysmessage @37 Bunu kullanabilmeniz icin cantanizda olmali.
return 1
endif
SRC.SAYUA 920,6,6,0 * Siseyi Kirar *
src.newitem i_define_haritasi
src.act.equip
src.sysmessage @0482 Bilinmeyen bir kagit parcasi cikti
remove
return 1

[itemdef i_define_haritasi]
NAME=Treasure Map
ID=i_map_rolled
TYPE=t_normal
SKILLMAKE=SKILL_CARTOGRAPHY 95.0, Skill_Magery 70.0
RESOURCES=20 i_scroll_blank, 1000 i_gold

ON=@Create
tag.status="Cozulmemis"
tag.tachado=0
tag.decifrado=0
color=07a1
f_selecionar_local_tesouro

on=@click
message @68 <name>
message @48 (<tag.status>)
return 1

on=@dclick
if (<src.distance> > 5)
src.sysmessage @0482 Defineye Cok uzaktasin nasil kazmayi planliyosun ?
return 1
elseif !(<cont>)
src.sysmessage @0482 Bu haritayi herkesin icinde okumayi dusunmuyosun heralde...
return 1
elseif (0<tag.asilsiz>==1)
src.sysmessage @0482 Harita asilsiz cikti biri senle dalga gecmis olmali..
return 1
elseif (<tag.tachado>==1)
src.sysmessage @0482 Bu harita biri tarafindan cozulmus coktan defineyi almistir.
return 1
elseif (<tag.decifrado>==1) && (<src.isnextp <eval <tag.tpx>> <eval <tag.tpy>> 10>) && !(<src.findid.i_shovel>)
src.sysmessage @0482 Kazi yapabilmek icin Shovel (Kurek) a ihtiyaciniz var
return 1
elseif (<tag.decifrado>==1) && (<src.isnextp <eval <tag.tpx>> <eval <tag.tpy>> 10>) && (<src.findid.i_shovel>)
IF (<src.str> > 99) && (<src.dex> > 99) && (<src.int> > 99) && (<src.skilltotal> > 1000)
serv.newnpc=c_rotting
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.cont=<local.npc1>
new.timer=2800
serv.newnpc=c_rotting
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.cont=<local.npc1>
new.timer=2800
serv.newnpc=c_rotting
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.cont=<local.npc1>
new.timer=2800
serv.newnpc=c_m_efreet
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.cont=<local.npc1>
new.timer=2800
serv.newnpc=c_m_cyclops_king
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.cont=<local.npc1>
new.timer=2800
serv.newnpc=c_m_dragon_crystal
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
new.events +e_tesouro_chefe
local.npc1=<new.uid>
new.say @07ad Kim Benim Hazinemi Almaya Kalkisti ?
new.tag.tpx=<tag.tpx>
new.tag.tpy=<tag.tpy>
new.tag.prizemoney=<eval <src.cartography>*10>
new.tag.prizeitem=<hval <def.random_treasure_prize>>
new.effect 1,i_gold,20,20
local.container=<new.uid>
serv.newitem=i_tesouro_monstro
new.cont=<local.npc1>
new.timer=3000
ELSE
serv.newnpc=c_rotting
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.timer=2800
serv.newnpc=c_rotting
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.timer=2800
serv.newnpc=c_orc
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
local.npc1=<new.uid>
serv.newitem=i_tesouro_monstro
new.timer=2800
serv.newnpc=c_m_cyclops_king
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
new.fix
new.home=<new.p>
new.homedist 10
new.events +e_tesouro_chefe
local.npc1=<new.uid>
new.say @0482 Hazinemi Almakmi ? KACMAYIN Gelin....
new.tag.tpx=<tag.tpx>
new.tag.tpy=<tag.tpy>
new.tag.prizemoney=<eval <src.cartography>*10>
new.tag.prizeitem=<hval <def.random_treasure_prize>>
new.effect 1,i_gold,20,20
local.container=<new.uid>
serv.newitem=i_tesouro_monstro
new.timer=3000
ENDIF
src.sysmessage @0482 Hazineye el koyabilmek icin yaratiklari oldurmen gerekiyor.
tag.tachado=1
remove
return 1
elseif (0<tag.decifrado>==0) && (0<tag.asilsiz>==0) && (<eval RAND(6)>==1) && (<src.cartography> > 99.9)
tag.decifrado=1
src.message @0482 Haritayi cozmeyi basardiniz.
tag.status="<src.name> Tarafindan Cozulmus"
dispid=i_map
update
return 1

elseif !(0<tag.decifrado>==1) && (0<tag.asilsiz>==0) && (<eval RAND(8)>==1) && (<src.cartography> > 99.9)
tag.asilsiz=1
src.sysmessage @0482 Haritadaki bilgiler asilsiz cikti haritada belirtildigi gibi bir yer yok.
tag.status="Asilsiz cikmis"
dispid=i_map
update
return 1

elseif !(<src.cartography> > 99.9)
src.sysmessage @037 Haritadaki bilgileri anlicak kadar yetenekli degilsiniz.
return 1

elseif (<tag.decifrado>==0) && (<cont>==<src.findlayer.21.uid>)
src.sysmessage @0482 Harita hakkinda bilgi edinemediniz!
update
return 1
elseif (<src.var.okcikartti> == 2)
src.sysmessage @0482 Defineyi aramaktan vaz gectiniz
src.var.okcikartti 0
src.arrowquest
return 1
elseif (<cont>==<src.findlayer.21.uid>) && (<src.var.okcikartti> == 0)
src.arrowquest <eval <tag.tpx>>,<eval <tag.tpy>>
src.sysmessage @88 Haritaya gore hazine <tag.lugar> civarlarinda ,cikan ok u takip et...
src.var.okcikartti 2
return 1
elseif (<cont>==0)
return 1
endif

///////////////////

[function isnextp]
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <argn1>>,<eval <argn2>>
IF (<new.distance> < <argn3>) || (<new.distance>==<argn3>)
new.remove
return 1
else
new.remove
return 0
ENDIF

/////////////////

[DEFNAME premios_tesouro]
random_treasure_prize &&#35123; RANDOM_PLATEMAIL_INVULNERABILITY 1 RANDOM_PLATEMAIL_DEFENSE 1 RANDOM_PLATEMAIL_FORTIFICATION 1 RANDOM_PLATEMAIL_GUARDING 1 RANDOM_PLATEMAIL_HARDENING 1 RANDOM_WEAPON_FORCE 1 RANDOM_WEAPON_MIGHT 1 RANDOM_WEAPON_POWER 1 RANDOM_WEAPON_RUIN 1 RANDOM_WEAPON_vanq 1 RANDOM_SHIELD_INVULNERABILITY 1 RANDOM_SHIELD_DEFENSE 1 RANDOM_SHIELD_FORTIFICATION 1 RANDOM_SHIELD_GUARDING 1 RANDOM_SHIELD_HARDENING 1 }

/////////////////

[ITEMDEF i_tesouro_monstro]
NAME=Monstros Tesouro Mem
ID=i_memory
TYPE=t_eq_script
LAYER=30

ON=@Timer
cont.remove

//////////////////

[events e_tesouro_chefe]
ON=@DEATHCORPSE
serv.newitem=i_hazine1
new.color=07ad
new.attr=attr_decay|attr_move_never
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>,<eval <p.z>>
new.timer=360
try uid.<uid.<argo.uid>.more2>.sysmessage @0482 Hazine Gardiyanlarini Oldurdun, Kasayi Alabilirsin.
try uid.<uid.<argo.uid>.more2>.arrowquest
src.var.okcikartti 0



///////////////////

[function f_selecionar_local_tesouro]
DORAND 28
BEGIN
tag.tpx=1250
tag.tpy=2581
tag.lugar="West from Trinsic"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=1899
tag.tpy=2375
tag.lugar="Northwest from Trinsic"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=<eval &&#35123;792 1336}>
tag.tpy=<eval &&#35123;640 2432}>
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
tag.lugar="at <new.region.name>"
END
BEGIN
tag.tpx=1479
tag.tpy=1881
tag.lugar="Southeast of Britain, where ocean meets land"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=1177
tag.tpy=2156
tag.lugar="South from Britain, where travellers get lost"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=1856
tag.tpy=861
tag.lugar="at sands of Compassion"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>,8
END
BEGIN
tag.tpx=<eval &&#35123;792 1336}>
tag.tpy=<eval &&#35123;640 2432}>
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
tag.lugar="at <new.region.name>"
END
BEGIN
tag.tpx=2636
tag.tpy=889
tag.lugar="next to Vesper, next to the mountains"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=5139
tag.tpy=970
tag.lugar="in Destard at the third lava pool"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=627
tag.tpy=1487
tag.lugar="next to Yew, where Orcs are born"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=<eval &&#35123;792 1336}>
tag.tpy=<eval &&#35123;640 2432}>
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
tag.lugar="at <new.region.name>"
END
BEGIN
tag.tpx=1652
tag.tpy=2894
tag.lugar="next to Trinsic at the Hidden Vale"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=4585
tag.tpy=3613
tag.lugar="at the first lava pool, on the left of the Avatar Isle"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=2447
tag.tpy=3612
tag.lugar="at the left shore of a marble island"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=<eval &&#35123;792 1336}>
tag.tpy=<eval &&#35123;640 2432}>
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
tag.lugar="at <new.region.name>"
END
BEGIN
tag.tpx=1323
tag.tpy=544
tag.lugar="at the Waterfall of Justice"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>,30
END
BEGIN
tag.tpx=<eval &&#35123;792 1336}>
tag.tpy=<eval &&#35123;640 2432}>
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
tag.lugar="at <new.region.name>"
END
BEGIN
tag.tpx=5519
tag.tpy=673
tag.lugar="at the last steps of the downest stair of Despise"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=2190
tag.tpy=1409
tag.lugar="at the first bone pile of the dock of the home of the orcs at Cove"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=5703
tag.tpy=639
tag.lugar="at the center of a room, in the most wrong dungeon"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=<eval &&#35123;792 1336}>
tag.tpy=<eval &&#35123;640 2432}>
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
tag.lugar="at <new.region.name>"
END
BEGIN
tag.tpx=6119
tag.tpy=219
tag.lugar="at the biggest of all dungeons, inside a room full of blood."
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=2006
tag.tpy=2933
tag.lugar="next to the left entrance of Trinsic"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=1606
tag.tpy=3531
tag.lugar="at the beach next to the Hidden Vale"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=5758
tag.tpy=2908
tag.lugar="at the entrance of the hottest dungeon, almost like hell"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=5209
tag.tpy=2322
tag.lugar="at the most hidden entrance of the coldest dungeon"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>,33
END
BEGIN
tag.tpx=733
tag.tpy=1152
tag.lugar="next to Yew cemitery"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
BEGIN
tag.tpx=<eval &&#35123;792 1336}>
tag.tpy=<eval &&#35123;640 2432}>
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
tag.lugar="at <new.region.name>"
END
BEGIN
tag.tpx=5199
tag.tpy=616
tag.lugar="in Deceit, where Orcs have lunch"
serv.newitem=i_gold
new.attr=attr_invis|attr_decay
new.p=<eval <tag.tpx>>,<eval <tag.tpy>>
END
ENDDO
new.fix
new.timer=1
IF (<new.region.flags>==<new.region.flags>|region_flag_guarded) || (<new.region.flags>==<new.region.flags>|region_flag_safe) || (<new.region.flags>==0892) || (0<uid.<new.region.uid>.type>==t_multi) || (<new.isneartype t_rock>) || (<new.isneartype t_tree>) || (<new.isneartype t_door>) || (<new.isneartype t_wall>) || (<new.isneartype t_water>)
f_selecionar_local_tesouro
ENDIF

[EOF]


böylece script yazma yeteneğinde artıcak
Bu benimkinden daha kötü durumda bi hazine scripti ben sadece bütün yaratıklar ölünce kasa nasıl cıkacak onu soruyorum sadece dragon ölünce degilde
senin bahsettiğin hazine scp'ni nowauo dan taygun denen beleşçiden mi aldın

Üye Ol veya Giriş Yap

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