|
İçerde : 1 misafir, 0 üye : ---
|
[FUNCTION f_B3LyRsy2]
DORAND 3
local.rand koor. 1
local.rand koor. 2
local.rand koor. 3
ENDDO
serv.newitem i_item
new.p <local.rand>
new.f_check
[FUNCTION f_check]
ref1 <id>
foritems 2
if (<id> != <ref1>)
if (<baseid> = <ref1.baseid>)
f_B3LyRsy2 <baseid>
endif
endif
endfor
[FUNCTION f_B3LyRsy2]
DORAND 5
local.rand 5351,2161,0 // <-- Kordinatlar
local.rand 5351,2162,0 // <-- Kordinatlar
local.rand 5351,2163,0 // <-- Kordinatlar
local.rand 5351,2164,0 // <-- Kordinatlar
local.rand 5351,2165,0 // <-- Kordinatlar
ENDDO
serv.newitem i_sec_bakalim_kaybet // <-- item burada.. bu itemin birde kazandıranı var onuda bu kare içine nasıl dahil edebilrim
new.p <local.rand>
new.f_check
[FUNCTION f_check]
ref1 <id>
foritems 4
if (<id> != <ref1>)
if (<basedid> = <ref1.basedid>)
f_B3LyRsy2 <basedid>
endif
endif
endfor
[FUNCTION f_check]
foritems 1
if strmatch(<basedid>,i_sec_bakalim_kaybet)
move n
f_check
endif
endfor
[FUNCTION f_B3LyRsy2]
list.B3LyRsy2.add 5351,2161,0
list.B3LyRsy2.add 5351,2162,0
list.B3LyRsy2.add 5351,2163,0
list.B3LyRsy2.add 5351,2164,0
list.B3LyRsy2.add 5351,2165,0
for 4
local._rand <r0,<eval <list.B3LyRsy2.count>-1>>
serv.newitem i_katana
new.p <list.B3LyRsy2.<local._rand>>
list.B3LyRsy2.<local._rand>.remove
endfor
serv.newitem i_dagger
new.p <list.B3LyRsy2.0>
list.B3LyRsy2.clear
|