Yoko

All sides of Injection
It is currently 2026-01-18 15:10:41

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Line 2: Parse error
PostPosted: 2005-02-08 20:39:17 
Offline

Joined: 2005-02-07 19:28:26
Posts: 37
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.


Top
   
 Post subject:
PostPosted: 2005-02-08 21:08:57 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
if X then Y
не допускаются скриптовым модулем
только
if X then
Y
end if


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 1 guest


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