Yoko

All sides of Injection
It is currently 2026-03-17 14:32:00

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2004-10-21 13:31:50 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
there is a way to run 2 script at the same time?
if i put UO:Say(",exec second_script") inside the first script they make conflict each other cause they have little delay..


Top
   
PostPosted: 2004-10-21 15:04:29 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
clagio wrote:
there is a way to run 2 script at the same time?
if i put UO:Say(",exec second_script") inside the first script they make conflict each other cause they have little delay..


UO.Exec( 'exec second_script' )


Top
   
 Post subject:
PostPosted: 2004-10-22 13:19:02 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
is the same as i said.. :(
i want to make 2 action at the same time.., if i run the 2° script it interfere with the first one..
but i don't know if it's possible


Top
   
 Post subject:
PostPosted: 2004-10-22 16:36:26 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
clagio wrote:
is the same as i said.. :(
i want to make 2 action at the same time.., if i run the 2° script it interfere with the first one..
but i don't know if it's possible


I use 4-5 scripts sumultaneously. For Example:

Code:
sub MiningStart()
...
      UO.Exec( 'exec ControlElem' )
      UO.Exec( 'exec ControlPK' )
      UO.Exec( 'exec MiningFile' )
...
      If UO.GetGlobal( 'FlagStatus' ) == 'stop' Then
         wait(1000)
         UO.Exec( 'terminate PermResend' )
         UO.Exec( 'terminate ControlElem' )
         UO.Exec( 'terminate ControlPK' )
      Endif
      If UO.GetGlobal( 'FlagStatus' ) == 'pk' Then
         UO.Exec( 'terminate PermResend' )
         UO.Exec( 'terminate MiningFile' )
         UO.Exec( 'terminate ControlElem' )
         wait(500)
         UO.Exec( 'exec RunOut' )
      Endif
...
endsub


Well. You must have all scripts what you want use in one file.


Top
   
 Post subject:
PostPosted: 2004-10-23 06:00:09 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
ok but each script don't make any action right? action as move item, use potion, ecc


Top
   
 Post subject:
PostPosted: 2004-10-24 19:24:46 
Offline

Joined: 2004-05-23 18:31:26
Posts: 49
synchronizing subroutines so that they don't try to commit
actions before the 'delay to perform another action' set by server
is elapsed? mmm i don't think it's possible.
if there is a way, it's not easy.


Top
   
 Post subject:
PostPosted: 2004-10-25 10:50:02 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
sub example()
uo.findtype("0x0AAA")
uo.drop("1",STR(x),STR(y + 1),str(1),"finditem")
uo.drop("1",STR(x),STR(y - 1),str(1),"finditem")
end sub

if i run this example's script, i can put the first item on the ground, but when i try to the second drop injection say me "Can't pickup item".
I have 2 message, one from the server "you must wait before.." and one message from inject "Can't pickup item".
But if i try by hand to drag 2 item on the ground, i have no delay..


Top
   
 Post subject:
PostPosted: 2004-10-25 16:30:24 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
clagio wrote:
sub example()
uo.findtype("0x0AAA")
uo.drop("1",STR(x),STR(y + 1),str(1),"finditem")
uo.drop("1",STR(x),STR(y - 1),str(1),"finditem")
end sub

if i run this example's script, i can put the first item on the ground, but when i try to the second drop injection say me "Can't pickup item".
I have 2 message, one from the server "you must wait before.." and one message from inject "Can't pickup item".
But if i try by hand to drag 2 item on the ground, i have no delay..


sub example()
uo.findtype("0x0AAA")
uo.drop("1",STR(x),STR(y + 1),str(1),"finditem")
wait(500)
; 500 is 0.5 sec. Can you sensate it?
uo.findtype("0x0AAA" )
; you need in new search before second using. 'finditem' from first search is the serial of stack of objects. Serial stack will change if you move one object from stack.
uo.drop("1",STR(x),STR(y - 1),str(1),"finditem")
wait(500)
end sub


Top
   
 Post subject:
PostPosted: 2004-10-25 16:59:36 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
more widely pick up/drop down actions

when you get few item from a stack XXX, following procedures are processed by server:

1) deleting XXX object
2) creating new YYY object, quantity of rest of stock, old place
(XXX object virtually disappeares, server know you holding it "on mouse")
3) updated status (your new weight)
4) (when dropped object you picked) creating new XXX object, the place where you put it, quantity you picked up
5) updated status (your new weight)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 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