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..
two script at the same time
Moderators: Murderator+, Murderator
Re: two script at the same time
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' )
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: Select all
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.
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..
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..
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
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)
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)