Yoko

All sides of Injection
It is currently 2025-11-16 17:56:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: random!
PostPosted: 2007-03-31 12:10:32 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
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


Top
   
 Post subject:
PostPosted: 2007-03-31 16:55:15 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
Ага очень интересно. Может так?

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

_________________
Шард Антарес
Ururu


Top
   
 Post subject:
PostPosted: 2007-04-01 12:24:55 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
thanks man :D


Top
   
 Post subject:
PostPosted: 2007-04-01 21:11:51 
Offline
Expert!
User avatar

Joined: 2006-02-25 21:48:38
Posts: 1032
Code:
Loot[uo.random(3)]

_________________
DerMeister сейчас на нейрале!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited