Yoko

All sides of Injection
It is currently 2026-01-16 17:04:47

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2010-03-10 10:30:20 
Offline
User avatar

Joined: 2010-03-10 09:58:20
Posts: 2
Location: Saint-Peretburg
Hi there, i'm writing at this moment a script for sorting sos bottle messages. But i have a huge knowledge leak at basic (or what language is it). So can someone help me with syntaxes in this part of code:

Code:
if (coord[0] >= "5") and (coord[0] <= "7") then [color=#000000]#####this part is temp version sorts 1st number in coordinates[/color]
               
   for i = 0 to (STRLEN(testo)-1) [color=#000000]#####here i look for " ' " to sort by direction S or N [/color]
           if (testo[i] == ",") and (testo[i+2]== "S") then [color=#000000]#### This part does not work when i run script[/color]
           uo.grab(1,"finditem")
                   wait(500)
   endif

end if


edit: Array testo consist of
Code:
var testo = UO.lastgump("text",1) 

Its like "Blabalabalba 63o 15' N 85o 55' W"

So can somebody give me an advice what i'm doing wrong?


Top
   
PostPosted: 2010-03-11 00:23:48 
Offline
User avatar

Joined: 2010-03-10 09:58:20
Posts: 2
Location: Saint-Peretburg
solved.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited