| Yoko http://forum.yoko.com.ua/ |
|
| targetnext "filtering" http://forum.yoko.com.ua/viewtopic.php?f=1&t=3929 |
Page 1 of 1 |
| Author: | bl4ck [ 2005-05-06 13:15:06 ] |
| Post subject: | targetnext "filtering" |
hi guys! im looking for a script that do this: when i press nexttarget, IF the target appointed is "Bob" or "Tiny", it ignore that guys, and go for nexttarget avaiable! something like that: sub targetfilter() uo.press (123) ; target next key " IGNORE Bob and Tiny and keep going! " end if end sub :/ any idea ? |
|
| Author: | Beyonder [ 2005-05-06 13:26:19 ] |
| Post subject: | |
Dunno if UO.Ignore has any influence on targetnext but you can try it. Just set : Code: if (UO.GetName('lasttarget')=='Timmy') then
|
|
| Author: | bl4ck [ 2005-05-07 01:20:27 ] |
| Post subject: | humm |
thank you man, it may work, but i dont get the full idea.. how i can put to more than one guy to be ignored? help me out with the full code looks: sub targetfilter() uo.press (123) ; target next key if (UO.GetName('lasttarget')=='Timmy' or 'Doug' or 'Duckhead') then UO.Ignore('lasttarget') then uo.press (123) ; target next key ( AND IF IT GET DOUG AGAIN, IT WILL IGNORE AGAIN?) end if UO.IgnoreReset() end sub help me out, im lost =O |
|
| Author: | Beyonder [ 2005-05-07 07:11:15 ] |
| Post subject: | |
Better make it through recursy: Code: sub IgnoreLast(Name) # Functions looks if last target had a name=Name and ignores it then. |
|
| Author: | Yoko [ 2005-05-09 00:00:39 ] |
| Post subject: | |
what do your recursion function do when just no man around? |
|
| Author: | Beyonder [ 2005-05-09 08:48:19 ] |
| Post subject: | |
The same the nexttarget does when there is no people around i guess... |
|
| Author: | bl4ck [ 2005-05-11 11:08:43 ] |
| Post subject: | oops |
man, thank you very much, but when i use, it displays that: Line 461: Bad operation for this type of variable - IGCNT |
|
| Author: | Beyonder [ 2005-05-11 12:43:28 ] |
| Post subject: | |
Sorry, my mistake ;D. Change this: var IgCnt; //Ignore count to: var IgCnt=0; //Ignore count |
|
| Author: | bl4ck [ 2005-05-11 13:25:01 ] |
| Post subject: | :D |
all right, i changed, but it seems to dont work, the character name of my friend is "Derrubadinha" need i to change sub IgnoreLast(Name) # Functions looks if last target had a name=Name and ignores it then. if (UO.GetName('lasttarget')==Name) then to sub IgnoreLast(Derrubadinha) # Functions looks if last target had a name=Name and ignores it then. if (UO.GetName('lasttarget')==Derrubadinha) then ? i've tried both ways and it just seens to dont work. the target names go changing.. but Derrubadinha keeps one of them! |
|
| Author: | Beyonder [ 2005-05-11 14:46:47 ] |
| Post subject: | |
No, the only thing you have to change is here: Code: IgCnt=IgCnt+IgnoreLast('Timmy') # Counting ignored people
Add as much people as you want there wit ha 1 line for 1 guy. Nothing more to change. |
|
| Author: | bl4ck [ 2005-05-12 00:26:44 ] |
| Post subject: | hum |
i tried it before make the question, dont works man, liek in the first example, i put "Derrubadinha" in IgCnt=IgCnt+IgnoreLast('Derrubadinha') # Counting ignored people but he keeps appearing like a normal target! have ya tested it? thank you very much |
|
| Author: | bl4ck [ 2005-05-12 06:07:19 ] |
| Post subject: | oh my |
really dont works! have ya tried? please help me out! any hope ?? |
|
| Author: | bl4ck [ 2005-05-13 08:11:42 ] |
| Post subject: | |
any guy have ideas? or anyone have used it and worked?? :/ |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|