Yoko

All sides of Injection
It is currently 2025-12-28 14:04:01

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2007-09-29 03:48:14 
Offline

Joined: 2007-05-26 17:37:00
Posts: 44
sub delta(n1, n2)
var t=0
t=n1-n2
if t < 0 then
return -t
end if
return t
end sub
sub isMax(n1, n2)
if n2 > n1 then
return 1
end if
return 0
end sub
sub krest()
var f=0
f=isMax(delta(uo.GetX(), uo.GetX('laststatus')),delta(uo.GetY(), uo.GetY('laststatus')))
StoneField()
while f == isMax(delta(uo.GetX(), uo.GetX('laststatus')),delta(uo.GetY(), uo.GetY('laststatus')))
wait(100)
wend
StoneField()
end sub
Sub StoneField()
if uo.waiting() then
uo.canceltarget()
end if
uo.waittargettile(0,uo.getX('laststatus'),uo.getY('laststatus'),uo.getZ('laststatus'))
uo.cast('Wall of Stone')
end sub



можете переделать чтоб он со свитков пускал?
заранее спосибо!


Top
   
 Post subject:
PostPosted: 2007-09-29 09:49:26 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub delta(n1, n2) 
var t=0
t=n1-n2
if t < 0 then
return -t
end if
return t
end sub
sub isMax(n1, n2)
if n2 > n1 then
return 1
end if
return 0
end sub

sub krest()
var f=0
f=isMax(delta(uo.GetX(), uo.GetX('laststatus')),delta(uo.GetY(), uo.GetY('laststatus')))
StoneField()
while f == isMax(delta(uo.GetX(), uo.GetX('laststatus')),delta(uo.GetY(), uo.GetY('laststatus')))
wait(100)
wend
StoneField()
end sub

Sub StoneField()
var Scroll='input type of your scroll'
if uo.waiting() then
  uo.canceltarget()
end if

uo.FindType(Scroll,'-1','backpack')
if uo.FindCount() then
  uo.waittargettile(0,uo.getX('laststatus'),uo.getY('laststatus'),uo.getZ('laststatus'))
  uo.UseObject('finditem')
  uo.Print('Scroll!')
else
  uo.waittargettile(0,uo.getX('laststatus'),uo.getY('laststatus'),uo.getZ('laststatus'))
  uo.Cast('Wall')
  uo.Print('Spell!!!')
end if

end sub


Top
   
 Post subject:
PostPosted: 2007-09-29 21:10:28 
Offline

Joined: 2007-05-26 17:37:00
Posts: 44
Scripts Writer wrote:
Code:
sub delta(n1, n2) 
var t=0
t=n1-n2
if t < 0 then
return -t
end if
return t
end sub
sub isMax(n1, n2)
if n2 > n1 then
return 1
end if
return 0
end sub


большое спосибо!!
sub krest()
var f=0
f=isMax(delta(uo.GetX(), uo.GetX('laststatus')),delta(uo.GetY(), uo.GetY('laststatus')))
StoneField()
while f == isMax(delta(uo.GetX(), uo.GetX('laststatus')),delta(uo.GetY(), uo.GetY('laststatus')))
wait(100)
wend
StoneField()
end sub

Sub StoneField()
var Scroll='input type of your scroll'
if uo.waiting() then
  uo.canceltarget()
end if

uo.FindType(Scroll,'-1','backpack')
if uo.FindCount() then
  uo.waittargettile(0,uo.getX('laststatus'),uo.getY('laststatus'),uo.getZ('laststatus'))
  uo.UseObject('finditem')
  uo.Print('Scroll!')
else
  uo.waittargettile(0,uo.getX('laststatus'),uo.getY('laststatus'),uo.getZ('laststatus'))
  uo.Cast('Wall')
  uo.Print('Spell!!!')
end if

end sub


Top
   
 Post subject:
PostPosted: 2007-09-29 21:11:00 
Offline

Joined: 2007-05-26 17:37:00
Posts: 44
большое спосибо!!!


Top
   
 Post subject:
PostPosted: 2007-09-30 22:23:38 
Offline

Joined: 2007-05-26 17:37:00
Posts: 44
Scripts Writer wrote:
Code:
sub delta(n1, n2) 
var t=0
t=n1-n2
if t < 0 then
return -t
end if
return t
end sub
sub isMax(n1, n2)
if n2 > n1 then
return 1
end if
return 0
end sub


чето не пашет твой скрипт не видит скролов ну все равно спосибо
sub krest()
var f=0
f=isMax(delta(uo.GetX(), uo.GetX('laststatus')),delta(uo.GetY(), uo.GetY('laststatus')))
StoneField()
while f == isMax(delta(uo.GetX(), uo.GetX('laststatus')),delta(uo.GetY(), uo.GetY('laststatus')))
wait(100)
wend
StoneField()
end sub

Sub StoneField()
var Scroll='input type of your scroll'
if uo.waiting() then
  uo.canceltarget()
end if

uo.FindType(Scroll,'-1','backpack')
if uo.FindCount() then
  uo.waittargettile(0,uo.getX('laststatus'),uo.getY('laststatus'),uo.getZ('laststatus'))
  uo.UseObject('finditem')
  uo.Print('Scroll!')
else
  uo.waittargettile(0,uo.getX('laststatus'),uo.getY('laststatus'),uo.getZ('laststatus'))
  uo.Cast('Wall')
  uo.Print('Spell!!!')
end if

end sub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 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:  
Powered by phpBB® Forum Software © phpBB Limited