Yoko
http://forum.yoko.com.ua/

random!
http://forum.yoko.com.ua/viewtopic.php?f=17&t=11712
Page 1 of 1

Author:  motxu [ 2007-03-31 12:10:32 ]
Post subject:  random!

Does injection has a random option?

Loot[0]=0x0EED ; gp
Loot[1]=0x0F7B ; BM
Loot[2]=0x0F7A ; BP
Loot[3]=0x0F84 ; GA

Imagine i would like to choose one of them but random.
Can anyone helps? thanks

Author:  Ururu [ 2007-03-31 16:55:15 ]
Post subject: 

Ага очень интересно. Может так?

Code:
sub Loot()
DIM Loot[4]
Loot[0]=0x0EED ; gp
Loot[1]=0x0F7B ; BM
Loot[2]=0x0F7A ; BP
Loot[3]=0x0F84 ; GA
VAR i
UO.Set('finddistance', '3')
For i = 0 To 3
UO.FindType(str(uo.random(Loot[ i ])), -1,'ground')
UO.Grab(str(0),'finditem')
end sub

Author:  motxu [ 2007-04-01 12:24:55 ]
Post subject: 

thanks man :D

Author:  DerMeister =) [ 2007-04-01 21:11:51 ]
Post subject: 

Code:
Loot[uo.random(3)]

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/