Line 2: Parse error

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
VlastV
Posts: 37
Joined: 2005-02-07 19:28:26
Contact:

Line 2: Parse error

Post 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.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

if X then Y
не допускаются скриптовым модулем
только
if X then
Y
end if
Post Reply