| Yoko http://forum.yoko.com.ua/ |
|
| from finditem to lasttarget http://forum.yoko.com.ua/viewtopic.php?f=20&t=10045 |
Page 1 of 1 |
| Author: | sovereign [ 2006-11-26 03:28:07 ] |
| Post subject: | from finditem to lasttarget |
Hi everyone, i have a problem with my script. I´m searching for some kind types in my script through findtype. If i find some targets i want to cast spells from scrolls or fire from cavalry crossbow on the target, but i can´t even if i stare the target through finditem. I need to switch the target from finditem to lasttarget, but don´t know why |
|
| Author: | CONDOMchick [ 2006-11-26 03:37:54 ] |
| Post subject: | |
Well.... if i understood u... Code: UO.Set('lasttarget')
|
|
| Author: | GrandMaster Ranger [ 2006-11-26 12:54:56 ] |
| Post subject: | |
can't understand what you need, but try it next time write source codes Code: sub main() |
|
| Author: | sovereign [ 2006-11-27 06:43:42 ] |
| Post subject: | |
sub main() var n Dim A[4] A[1] = 0x0000; A[2] = 0x0000; A[3] = 0x0000; A[4] = 0x0000; FOR n=1 TO 4 UO.FindType(A[n],"-1",'ground') UO.AddObject("cil","finditem") UO.UseObject('finditem') uo.msg(".stare") UO.WaitTargetObject("cil") wait(100) UO.msg('.cast_lt 105') End if NEXT end sub sub para() If UO.Count("0x1F52") >= 1 then uo.waittargetobject("cil") uo.usetype("0x1F52","0x054A") else UO.msg('.cast_lt 138') endif end sub OK, guys. There is my searching skript and my skript for paralyze casting from silent scrolls if is any of them equipped. As you can see i´m searching for targets through findtype, but i´m casting paralyze on lasttarget and there is a difference between findtype target and lasttarget. I solve that problem using uo.addobject. Now it´s working, but i´d love to know if it can be transfered somehow from findtype object to lasttarget object. |
|
| Author: | GrandMaster Ranger [ 2006-11-27 14:22:09 ] |
| Post subject: | |
If you cast a spell on object ( for example finditem ) , it automatically become lasttarget....... it's working? yes... need something else? |
|
| Author: | sovereign [ 2006-11-27 16:01:41 ] |
| Post subject: | |
GrandMaster Ranger wrote: If you cast a spell on object ( for example finditem ) , it automatically become lasttarget.......
it's working? yes... need something else? It´s quite weird, but i can´t. If i stare for example rune to teleport and then i find target through findtype macro i can cast easily spells on that target, but if i want to cast spells from scrolls i cast at that rune, thats the problem i just wanna solve. |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|