Page 1 of 1

Line 2: Parse error

Posted: 2005-02-08 20:39:17
by VlastV

Code: Select all

sub Craft(tool, resource, minresource, delay, menu1, choice1, menu2, choice2, menu3, choice3)
if menu1<>"" then UO.Exec("automenu '"+menu1+"' '"+choice1+"'")
if menu2<>"" then UO.Exec("automenu '"+menu2+"' '"+choice2+"'")
if menu3<>"" then UO.Exec("automenu '"+menu3+"' '"+choice3+"'")
while UO.Count(resource)>minresource
 if UO.Count(tool) < 1 then
  UO.Print("Tool not found")
  return
 end if
 UO. Print("Resource "+STR(UO.Count(resource)))
 wait(delay)
 UO. waittargettype(resource)
 UO.usetype(tool)
wend
UO.Print("Out of resource ("+STR(UO.Count(resource))+")")
end sub
sub Tailoring()
Craft('kit','cloths',10,5000,'Choose','shirts',What',Plain','','')
end sub


Сабж...
Kit и Cloths естественно описаны в закладке Object.

Posted: 2005-02-08 21:08:57
by Yoko
if X then Y
не допускаются скриптовым модулем
только
if X then
Y
end if