| Yoko http://forum.yoko.com.ua/ |
|
| how to get an automatic SERIAL http://forum.yoko.com.ua/viewtopic.php?f=3&t=1832 |
Page 1 of 1 |
| Author: | creaturez [ 2004-11-03 17:51:21 ] |
| Post subject: | how to get an automatic SERIAL |
i have this piece of code uo.addobject('corpose') while uo.targeting() wait(100) wend but I target every time the same type (a corpose) manually... now i'm trying to find an automatic method to get the serial of the corpose that's under me; is there a function like uo.getserialfromground(obj_type) or are ther any triks to do this? ciao ciao andre |
|
| Author: | AGRS [ 2004-11-03 18:31:09 ] |
| Post subject: | |
Code: Sub GetSerialFromGround() Code: Sub GetSerialFromGround() |
|
| Author: | creaturez [ 2004-11-03 19:16:33 ] |
| Post subject: | |
i'm trying to use your function in a simple way but doesn't work where is the mistake? sub main() var SERIAL SERIAL=GetSerialFromGround() UO.Print(STR(SERIAL)) end sub it prompts "0" every time UO.FindType('0x0000','0x0000','ground') what's ground? i put there 0x2006 (type of corpose) but doesn't work |
|
| Author: | AGRS [ 2004-11-03 20:02:29 ] |
| Post subject: | |
UO.Print(STR(SERIAL)) --> UO.Print(SERIAL) |
|
| Author: | creaturez [ 2004-11-03 20:08:06 ] |
| Post subject: | |
thanks : ) |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|