Sos bottle message sort script (syntaxes issues)

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
GhostStalker
Posts: 2
Joined: 2010-03-10 09:58:20
Location: Saint-Peretburg
Contact:

Sos bottle message sort script (syntaxes issues)

Post by GhostStalker »

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: Select all

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: Select all

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?
GhostStalker
Posts: 2
Joined: 2010-03-10 09:58:20
Location: Saint-Peretburg
Contact:

Re: Sos bottle message sort script (syntaxes issues)

Post by GhostStalker »

solved.
Post Reply