Yoko

All sides of Injection
It is currently 2026-03-04 09:47:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: separeting strings
PostPosted: 2009-03-12 19:56:38 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
How can i separete strings using ","
Something like that:
DIM A[10]
...
...
A[10] = 0x0F13,CONTAINER or A[8] = 0x0F13,ground

So i use A[n0] (to get first valor) and A[n1] (to get second valour):

n 1 to 10
UO.FindType('A[n0]','-1','my') ;
uo.moveitem('finditem', '0', 'A[n1]')
next


Top
   
 Post subject:
PostPosted: 2009-03-12 21:09:12 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
viewtopic.php?p=55737#55737

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-03-12 22:26:01 
Offline

Joined: 2009-03-10 09:43:01
Posts: 78
Thank you!!

So this is the best way?

Code:
sub droptest()
var n
DIM ID[7]
ID[0] = '0x0F16 CONTAINER'; amesthysts
ID[1] = '0x0F10 CONTAINER'; emerald
ID[2] = '0x0F0F ground'; star sapphire
ID[3] = '0x0F18 ground'; tourmaline
ID[4] = '0x0F26 ground'; diamond
ID[5] = '0x0F11 ground'; sapphire
ID[6] = '0x0F15 ground'; citrine
ID[7] = '0x0F13 ground'; rubi
For n=0 To 7
if uo.count(MID(ID[n], 0, 6)) >=1 then
wait(1600)
UO.FindType(MID(ID[n], 0, 6),'-1','my') ;
uo.moveitem('finditem', '0', MID(ID[n], 7, 9))
endif
Next
end sub


Top
   
 Post subject:
PostPosted: 2009-03-12 23:40:03 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Another way is two arrays.

All ways is best.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


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 2 guests


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