Yoko

All sides of Injection
It is currently 2025-12-22 23:02:12

All times are UTC+02:00




Post new topic  Reply to topic  [ 19 posts ] 
Author Message
PostPosted: 2005-04-30 11:32:39 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Скажите куда надо вставить в скрипт задержку, чтоб он поле того как купил реги, ждал 15 минут и опять летел?
Code:
var res 


sub main()
DIM rune[6]
DIM ven[6]
var i, n
rune[1]='0x40DA894A' ; Сюда вносятся IP рун к вендорам
rune[2]='0x40F0A772' ; 6 штук, можно сколько угодно
rune[3]='0x40F083BE' ; просто все шестерки в скрипте
rune[4]='0x40F0A773' ; заменяются на нужную цифру
rune[5]='0x40F083BC'
rune[6]='0x40F0A771'

ven[1]='0x00FE4E27' ; IP вендоров у которых скупаются реги
ven[2]='0x00FE5702'
ven[3]='0x00FE37AC'
ven[4]='0x00FE0A83'
ven[5]='0x00F7F766'
ven[6]='0x00FE83E0'

repeat
for i=1 to 6
recall(i,rune)
WalkN(0,0,ven[i])
UO.buy('sp','vendor')
wait(500)
UO.Say("bye")
UO.DeleteJournal()
UO.Click(rune[i])
repeat
wait(500)
until UO.InJournal('jumps left')
takenum()
if res < 10 then ; остаток зарядов на руне
Mark(i,rune)
endif
med()
next
until UO.Dead()
end sub
#####################################
sub takenum()
var ns, j, i, n
var str, num
num=''
ns=0
n=uo.InJournal('jumps left')-1
str=uo.Journal(n)
UO.Print(str)
j = len( str ) - 1
for i = 0 to j

if ns==1 and str[i]<>' ' then
num=num+str[i]
else
ns=0
endif
if str[i] =='(' then
ns=1
endif
next
res = val(num)
UO.Print(str(res))
end sub
#####################################
sub Recall(i,rune)
var b
uo.print('Recoll Rune '+str(i))
for b=1 to 10
uo.deletejournal()
uo.waittargetobject(rune[i])
uo.cast('Recall',rune[i])
if WaitForRecall()==1 then
return 1
end if
next
return 0
end sub
#####################################
sub Mark(i,rune)
uo.waittargetobject(rune[i])
uo.cast('Mark',rune[i])
end sub
#####################################
sub WaitForRecall()
var Text1=uo.getname()+": The spell fizzles."
var mess='',lastX=uo.getX(),lastY=uo.getY()
for var v=0 to 200
mess=uo.journal(0)
if uo.Journal(0)==Text1 then
return 0
end if
if uo.getX()<>lastX OR uo.getY()<>LastY then
return 1
end if
wait(50)
next
return 0
end sub
######################################
sub med()
VAR LastTimer
while UO.Mana<UO.Int
LastTimer=UO.Timer()
UO.UseSkill('Meditation')
repeat
wait(100)
until UO.InJournal("You are") OR UO.InJournal("You lose") OR UO.Timer()>LastTimer+200
UO.DeleteJournal()
wait(200)
wend
end sub
##############################
# WalkN(X,Y,Serial) - char is walking by dX and dY step
# sub using Home, End, PgUp, PgDown keys
# d'not rebind this key from default action!
# serial - Serial of target or "" - string
# walkwait - delay after keypress
# Example:
# WalkN(2080,2113,'') - go to coordinates
# WalkN(0,0,'0x12345678') - go to target position
#--------------------------------------------------------------
sub WalkN(x,y,Target)
VAR i,StepSucess
VAR dx,dy,Exit=0
While Exit<>1
If Target<>"" Then
dx=UO.GetX(Target)-UO.GetX()
dy=UO.GetY(Target)-UO.GetY()
If UO.GetDistance(Target)<2 Then
Exit=1
Endif
Else
dx=x-UO.GetX()
dy=y-UO.GetY()
If dx==0 AND dy==0 Then
Exit=1
Endif
Endif
If dx<>0 AND dy<>0 Then
If dx>0 AND dy>0 Then
StepSucess=Go(3,40,300) ;SE - DownArrow
If StepSucess==-1 Then
StepSucess=Go(7,38,300) ;WN - UpArrow
StepSucess=Go(1,39,300) ;NE - RightArrow
If StepSucess==-1 Then
StepSucess=Go(5,37,300) ;SW - LeftArrow
Endif
Endif
Endif
If dx>0 AND dy<0 Then
StepSucess=Go(1,39,300) ;NE - RightArrow
If StepSucess==-1 Then
StepSucess=Go(5,37,300) ;SW - LeftArrow
StepSucess=Go(3,40,300) ;SE - DownArrow
If StepSucess==-1 Then
StepSucess=Go(7,38,300) ;WN - UpArrow
Endif
Endif
Endif
If dx<0 AND dy>0 Then
StepSucess=Go(5,37,300) ;SW - LeftArrow
If StepSucess==-1 Then
StepSucess=Go(1,39,300) ;NE - RightArrow
StepSucess=Go(7,38,300) ;WN - UpArrow
If StepSucess==-1 Then
StepSucess=Go(3,40,300) ;SE - DownArrow
Endif
Endif
Endif
If dx<0 AND dy<0 Then
StepSucess=Go(7,38,300) ;WN - UpArrow
If StepSucess==-1 Then
StepSucess=Go(3,40,300) ;SE - DownArrow
StepSucess=Go(5,37,300) ;SW - LeftArrow
If StepSucess==-1 Then
StepSucess=Go(1,39,300) ;NE - RightArrow
Endif
Endif
Endif
Endif
If dx<>0 AND dy==0 Then
If dx>0 Then
StepSucess=Go(2,34,300) ;E - PgDown
If StepSucess==-1 Then
StepSucess=Go(3,40,300) ;SE - DownArrow
If StepSucess==-1 Then
StepSucess=Go(1,39,300) ;NE - RightArrow
Endif
StepSucess=Go(2,34,300) ;E - PgDown
Endif
Endif
If dx<0 Then
StepSucess=Go(6,36,300) ;W - Home
If StepSucess==-1 Then
StepSucess=Go(7,38,300) ;WN - UpArrow
If StepSucess==-1 Then
StepSucess=Go(5,37,300) ;SW - LeftArrow
Endif
StepSucess=Go(6,36,300) ;W - Home
Endif
Endif
Endif
If dx==0 AND dy<>0 Then
If dy>0 Then
StepSucess=Go(4,35,300) ;S - End
If StepSucess==-1 Then
StepSucess=Go(3,40,300) ;SE - DownArrow
If StepSucess==-1 Then
StepSucess=Go(5,37,300) ;SW - LeftArrow
Endif
StepSucess=Go(4,35,300) ;S - End
Endif
Endif
If dy<0 Then
StepSucess=Go(0,33,300) ;N - PgUp
If StepSucess==-1 Then
StepSucess=Go(1,39,300) ;NE - RightArrow
If StepSucess==-1 Then
StepSucess=Go(7,38,300) ;WN - UpArrow
Endif
StepSucess=Go(0,33,300) ;N - PgUp
Endif
Endif
Endif
Wend
end sub
sub Go(dir,key,walkwait)
VAR x,y, OldDir
x=UO.GetX()
y=UO.GetY()
OldDir=UO.GetDir()
If UO.GetDir()<>dir Then
UO.Press(key)
wait(walkwait)
If UO.GetDir()<>dir Then
CheckLag()
Endif
Endif
UO.Press(key)
wait(walkwait)
If x==UO.GetX() AND y==UO.GetY() Then
CheckLag()
Endif
If x==UO.GetX() AND y==UO.GetY() AND OldDir<>UO.GetDir() Then
UO.Press(key)
wait(walkwait)
Endif
If x==UO.GetX() AND y==UO.GetY() Then
CheckLag()
Endif
If x==UO.GetX() AND y==UO.GetY() Then
UO.Print("Zasada!")
return -1
Else
return 1
Endif
end sub
#########################################
sub CheckLag()
UO.DeleteJournal()
UO.Click('backpack')
repeat
wait(500)
until UO.InJournal('Backpack')
end sub

_________________
Image


Top
   
 Post subject:
PostPosted: 2005-04-30 12:02:38 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Code:
med() 
next
until UO.Dead()
end sub


--->

Code:
med() 
next
wait(15*60*1000)
until UO.Dead()
end sub


Top
   
 Post subject:
PostPosted: 2005-04-30 12:03:25 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Спс :D
То что надо :lol:

_________________
Image


Top
   
 Post subject:
PostPosted: 2005-04-30 13:21:50 
Offline

Joined: 2004-10-28 13:39:41
Posts: 32
етот скрипт на DRW мог бы заработать :roll:


Top
   
 Post subject:
PostPosted: 2005-04-30 15:06:53 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Конечно мог бы.

_________________
Image


Top
   
 Post subject:
PostPosted: 2005-04-30 15:14:30 
Offline

Joined: 2004-10-28 13:39:41
Posts: 32
Leo wrote:
Конечно мог бы.
а ты сам на каком шарде гонаеш?
[Я почти уверен что на Dr.W кстати это уже пошел офтоп I'm]


Top
   
 Post subject:
PostPosted: 2005-04-30 15:57:55 
Offline

Joined: 2004-10-28 13:39:41
Posts: 32
на drw непашеееееееет!!!!! реколнулса к первому вендору и стоит там как зомбик какойто.


Top
   
 Post subject:
PostPosted: 2005-04-30 17:11:47 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
kostya11 wrote:
на drw непашеееееееет!!!!! реколнулса к первому вендору и стоит там как зомбик какойто.

лол, Попробуй отключить status bar fix

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Last edited by Destruction on 2005-05-04 01:36:22, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2005-04-30 17:32:48 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
Destruction wrote:
kostya11 wrote:
на drw непашеееееееет!!!!! реколнулса к первому вендору и стоит там как зомбик какойто.

лол, Попробуй отключить status bar fix


Не зомби, а как зомби. :wink:


Top
   
 Post subject:
PostPosted: 2005-04-30 23:14:52 
Offline

Joined: 2004-10-28 13:39:41
Posts: 32
Destruction wrote:
kostya11 wrote:
на drw непашеееееееет!!!!! реколнулса к первому вендору и стоит там как зомбик какойто.

лол, Попробуй отключить status bar fix
а мне и есть он виклучен, пробовал и с вклученим - без измен.


Top
   
 Post subject:
PostPosted: 2005-05-01 16:14:59 
Offline

Joined: 2004-10-28 13:39:41
Posts: 32
я тут один сам с собой так и буду флудить?
пожолустооо ктото, помогите сделать этого скрипта на drw чтобы заработал. оочень прошу!


Top
   
 Post subject:
PostPosted: 2005-05-01 18:31:53 
Offline
Expert!
User avatar

Joined: 2004-10-15 22:38:04
Posts: 1396
Location: Moscow City.
Спроси поиск.


Top
   
 Post subject:
PostPosted: 2005-05-01 23:43:46 
Offline

Joined: 2004-10-28 13:39:41
Posts: 32
уже сколко раз смотрел, нечево ненащол. ето еденствинний которий хоть сколко работает. так что я оченй прошу, помогите сделать его рабочим на drw. :cry:


Top
   
 Post subject:
PostPosted: 2005-06-13 10:25:55 
Offline

Joined: 2005-06-13 10:20:53
Posts: 1
Ну пожалуста уважаемые помогите что нада сделать чтоб это заработало на ДРВ :?:


Top
   
 Post subject:
PostPosted: 2005-06-13 11:28:13 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
халявы не будет(с) ;)


Top
   
 Post subject:
PostPosted: 2005-06-13 12:55:30 
Offline

Joined: 2005-06-13 10:30:37
Posts: 2
Ну пожалуста :roll: !!!


Top
   
 Post subject:
PostPosted: 2005-06-13 15:02:23 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Что ты пристал?
Тебе же сказали, такой скрипт бесплатно писать не будут.


Top
   
 Post subject:
PostPosted: 2005-06-13 17:34:04 
Offline

Joined: 2005-06-13 10:30:37
Posts: 2
И сколько же это будет стоить?


Top
   
 Post subject:
PostPosted: 2005-07-04 09:05:42 
Offline

Joined: 2005-01-22 10:29:34
Posts: 138
Sfagnum wrote:
халявы не будет(с) ;)

будет будет еще как будет ;)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 6 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