| Yoko http://forum.yoko.com.ua/ |
|
| two script at the same time http://forum.yoko.com.ua/viewtopic.php?f=3&t=1677 |
Page 1 of 1 |
| Author: | clagio [ 2004-10-21 13:31:50 ] |
| Post subject: | two script at the same time |
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.. |
|
| Author: | Edred [ 2004-10-21 15:04:29 ] |
| Post subject: | 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' ) |
|
| Author: | clagio [ 2004-10-22 13:19:02 ] |
| Post subject: | |
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 |
|
| Author: | Edred [ 2004-10-22 16:36:26 ] |
| Post subject: | |
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() Well. You must have all scripts what you want use in one file. |
|
| Author: | clagio [ 2004-10-23 06:00:09 ] |
| Post subject: | |
ok but each script don't make any action right? action as move item, use potion, ecc |
|
| Author: | Lem [ 2004-10-24 19:24:46 ] |
| Post subject: | |
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. |
|
| Author: | clagio [ 2004-10-25 10:50:02 ] |
| Post subject: | |
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.. |
|
| Author: | Edred [ 2004-10-25 16:30:24 ] |
| Post subject: | |
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 |
|
| Author: | Yoko [ 2004-10-25 16:59:36 ] |
| Post subject: | |
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) |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|