Page 1 of 1

random!

Posted: 2007-03-31 12:10:32
by motxu
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

Posted: 2007-03-31 16:55:15
by Ururu
Ага очень интересно. Может так?

Code: Select all

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

Posted: 2007-04-01 12:24:55
by motxu
thanks man :D

Posted: 2007-04-01 21:11:51
by DerMeister =)

Code: Select all

Loot[uo.random(3)]