Yoko

All sides of Injection
It is currently 2025-12-25 18:25:42

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2005-03-05 03:59:30 
Offline
User avatar

Joined: 2005-01-16 17:25:54
Posts: 35
sub Main()
While not UO.Hidden()
UO.Useskill("Hiding")
Wait(10000)
Wend
var tk=25
UO.addtype('kirka1','0x0e85')
UO.addtype('kirka2','0x0e86')
Var X
Var Y
Var dX
Var dY
For dX = -2 To 2
For dY = -2 To 2
X = UO.GetX() + dX
Y = UO.GetY() +dY
kopat(x, y, tk)
tk=tk-1
Next
Next
end sub
########################################
###############################
sub kopat(x, y, tk)
var c=0
while not c>99000
UO.DeleteJournal()
UO.print(str(tk))
UO.Exec("waittargettile 0 " + STR(X) + " " + STR(Y) + " 1")
if UO.count('kirka1')>0 then
UO.Usetype('kirka1')
else
UO.Usetype('kirka2')
end if
c=0
wait(50)
while not c>10000
if UO.InJournal("loosen") Then
c=10000; on
wait(250)
endif
if UO.InJournal("far") Then
c=100000; off
wait(1500)
endif
if UO.InJournal("else") Then
c=100000; off
wait(1500)
endif
if UO.InJournal("mine") Then
c=100000; off
wait(1500)
endif
if UO.InJournal("Proto") Then
c=100000; off
wait(1500)
endif
if UO.InJournal("Luxury") Then
c=10000; on
wait(250)
endif
if UO.InJournal("Common") Then
c=10000; on
wait(250)
endif
if UO.InJournal("Arch") Then
c=10000; on
wait(250)
endif
if UO.InJournal("Elemental") Then
c=10000; on
wait(250)
endif
c=c+1
wait(50)
wend
wait(50)
wend
end sub

=============================
Все что мне нада ето зделать его чюток по Проще - переделать Все (IF) На While -помогите ))


Top
   
PostPosted: 2005-03-09 23:35:31 
Offline

Joined: 2004-07-14 22:56:46
Posts: 82
Location: Украина, Одесса
Vija [ XAOC ] wrote:
Code:
sub Main()
 While not UO.Hidden()
   UO.Useskill("Hiding")
   Wait(10000)
  Wend
var tk=25
UO.addtype('kirka1','0x0e85')
UO.addtype('kirka2','0x0e86')
Var X, Y, dX, dY
For dX = -2 To 2
For dY = -2 To 2
X = UO.GetX() + dX
Y = UO.GetY() +dY
kopat(x, y, tk)
tk=tk-1
Next
Next
end sub
########################################
###############################
sub kopat(x, y, tk)
while not UO.InJournal("far") OR not UO.InJournal("else") OR not UO.InJournal("mine") OR not UO.InJournal("Proto")
   UO.DeleteJournal()
   UO.print(str(tk))
   UO.Exec("waittargettile 0 " + STR(X) + " " + STR(Y) + " 1")
      if UO.count('kirka1')>0 then
         UO.Usetype('kirka1')
      else
         UO.Usetype('kirka2')
      end if
      while not UO.InJournal("loosen") OR not UO.InJournal("Luxury") OR not UO.InJournal("Common") OR not UO.InJournal("Arch") OR not UO.InJournal("Elemental")
         wait(250)
      wend
wend
end sub

не пробовал, но по идее все должно работать (не уверен в правильности синтаксиса "while not *** OR not *** ......."


Top
   
PostPosted: 2005-03-12 11:48:27 
Offline
User avatar

Joined: 2005-01-16 17:25:54
Posts: 35
Denton wrote:
Vija [ XAOC ] wrote:
Code:
sub Main()
 While not UO.Hidden()
   UO.Useskill("Hiding")
   Wait(10000)
  Wend
var tk=25
UO.addtype('kirka1','0x0e85')
UO.addtype('kirka2','0x0e86')
Var X, Y, dX, dY
For dX = -2 To 2
For dY = -2 To 2
X = UO.GetX() + dX
Y = UO.GetY() +dY
kopat(x, y, tk)
tk=tk-1
Next
Next
end sub
########################################
###############################
sub kopat(x, y, tk)
while not UO.InJournal("far") OR not UO.InJournal("else") OR not UO.InJournal("mine") OR not UO.InJournal("Proto")
   UO.DeleteJournal()
   UO.print(str(tk))
   UO.Exec("waittargettile 0 " + STR(X) + " " + STR(Y) + " 1")
      if UO.count('kirka1')>0 then
         UO.Usetype('kirka1')
      else
         UO.Usetype('kirka2')
      end if
      while not UO.InJournal("loosen") OR not UO.InJournal("Luxury") OR not UO.InJournal("Common") OR not UO.InJournal("Arch") OR not UO.InJournal("Elemental")
         wait(250)
      wend
wend
end sub

не пробовал, но по идее все должно работать (не уверен в правильности синтаксиса "while not *** OR not *** ......."

=============================================
=============================================
==============================================
Не работает ((((
народ поправте его плиз


Top
   
PostPosted: 2005-03-12 12:57:08 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Denton wrote:
не пробовал, но по идее все должно работать (не уверен в правильности синтаксиса "while not *** OR not *** ......."
"while not *** AND not *** ......."


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


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:  
Powered by phpBB® Forum Software © phpBB Limited