Yoko http://forum.yoko.com.ua/ |
|
[HELP] I Need script for target http://forum.yoko.com.ua/viewtopic.php?f=17&t=15107 |
Page 1 of 1 |
Author: | Azt [ 2009-09-18 11:11:35 ] |
Post subject: | [HELP] I Need script for target |
Hi! I need a script that if I Say "Destroyer" in game, or Destr, or Des, the script search a player called like that ad add it to objects. it's possible? |
Author: | CuHTpoH [ 2009-10-05 21:28:08 ] |
Post subject: | |
before start scripts delete journal text with destr by uo.deletejournal() or by deljournal() (custom func, find it in this forum, also find checklag()) ... if uo.injournal('des') then ... check that Track world items is ON find players (0x0190 and 0x0191) on the ground click and get their names use 2 funcs - Code: sub getnam(id) Code: # finds one string in another so if findentry() gives number bigger than -1 - there is des in name, than get it's serial |
Author: | Nmy [ 2009-10-05 23:00:06 ] |
Post subject: | Re: [HELP] I Need script for target |
Azt wrote: Hi!
I need a script that if I Say "Destroyer" in game, or Destr, or Des, the script search a player called like that ad add it to objects. it's possible? I would search the journal, get the serial and set laststatus/lastattack/lasttarget with this serial so you can attack imediatly. To filter it from regular speech you can make it work using some symbol - for example :Nickname - would trigger the script. Why do you need such thing anyway? For PvP? That's a lame pvp if you ask me. |
Author: | CuHTpoH [ 2009-10-06 07:57:53 ] |
Post subject: | |
indeed it is |
Author: | Azt [ 2009-10-06 13:32:16 ] |
Post subject: | |
Sub Checklag() deljournal('a backpack') uo.click('backpack') repeat wait(50) until uo.injournal('a backpack') endsub Sub deljournal(msg) while uo.injournal(msg) uo.setjournalline(uo.injournal(msg)-1,"") wend endsub found this! thanks |
Author: | CuHTpoH [ 2009-10-06 14:19:12 ] |
Post subject: | |
Try to never use wait(X) where X<100 MUCH bigger chance of crash or unhandled exception in parser |
Author: | CuHTpoH [ 2009-10-06 14:21:42 ] |
Post subject: | |
string of check will be like that: IF uo.findentry('Destroyer',getnam(uo.getserial('finditem'))) then |
Page 1 of 1 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |