random!

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
motxu
Posts: 48
Joined: 2005-04-13 16:01:09
Contact:

random!

Post 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
Ururu
Posts: 479
Joined: 2007-02-21 20:15:57

Post 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
Шард Антарес
Ururu
motxu
Posts: 48
Joined: 2005-04-13 16:01:09
Contact:

Post by motxu »

thanks man :D
DerMeister =)
Expert!
Posts: 1032
Joined: 2006-02-25 21:48:38

Post by DerMeister =) »

Code: Select all

Loot[uo.random(3)]
DerMeister сейчас на нейрале!
Post Reply