Yoko
http://forum.yoko.com.ua/

Line 2: Parse error
http://forum.yoko.com.ua/viewtopic.php?f=20&t=3029
Page 1 of 1

Author:  VlastV [ 2005-02-08 20:39:17 ]
Post subject:  Line 2: Parse error

Code:
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.

Author:  Yoko [ 2005-02-08 21:08:57 ]
Post subject: 

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/