Yoko

All sides of Injection
It is currently 2025-10-22 12:42:58

All times are UTC+02:00




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
PostPosted: 2006-07-23 01:07:14 
Offline
User avatar

Joined: 2005-06-19 19:21:28
Posts: 159
Вот немного изменил скрипт...
Не знаю чей! Он ресает госта, но не всех...
Просто бывают разные типы гостов...
Как сделать,чтобы он ресал по всем типам!

0x0192-тип госта

Code:
sub Ress()
 
uo.ignorereset()
uo.print('autoRess Started')
uo.DeleteJournal()
UO.Set('finddistance','2')
uo.findtype('0x0192',-1,'ground')
if uo.findcount() then
uo.waittargetobject('finditem')
uo.usetype('0x0E21')
uo.print(uo.getname('finditem')+' will be resurrecting')
else
uo.Print(uo.getname('finditem')+' (color: '+UO.JournalColor(UO.InJournal()+1)+')'+' is not guild member')
end if
end if
wait(500)
end sub


Top
   
 
 Post subject:
PostPosted: 2006-07-23 01:28:44 
Offline

Joined: 2004-12-14 14:55:12
Posts: 34
создать массив)
а вообще не типы гостов разные а чары и иды соответствено ресай по иду)


Top
   
 
 Post subject:
PostPosted: 2006-07-23 20:31:28 
Offline
User avatar

Joined: 2005-06-19 19:21:28
Posts: 159
Ты не понял...
Мне нужно ,ч тобы по разным типа ресал, а не по ID
По ID он только одного чара будет ресать...
У меня ресает только одно типа...
0x0192 Вот этого вот!
А есть ещё 0x0193...
Вот по этому типу не ресает =(


Top
   
 
 Post subject:
PostPosted: 2006-07-23 21:58:13 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
sub Ress()
VAR n
Dim ress[2]
ress[1] = '0x0192'
ress[2] = '0x0193'
uo.print('autoRess Started')
UO.Set('finddistance','2')
For n = 1 To 2
uo.findtype( ress[n] , -1 ,'ground')
if uo.findcount() then
uo.waittargetobject('finditem')
uo.usetype('0x0E21')
uo.print('resurrecting')
end if
Next
end sub

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Last edited by Nmy on 2009-09-21 15:35:07, edited 1 time in total.

Top
   
 
 Post subject:
PostPosted: 2006-07-23 23:42:18 
Offline
User avatar

Joined: 2005-06-19 19:21:28
Posts: 159
О! Во ... Спасииба...
Вот о таком же я и думал ;) Тока не знал как %)


Top
   
 
 Post subject:
PostPosted: 2006-07-23 23:44:26 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
kexwer wrote:
О! Во ... Спасииба...
Вот о таком же я и думал ;) Тока не знал как %)


велкам :wink:

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 
 Post subject:
PostPosted: 2006-07-25 17:46:55 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
скрипт был взят мой (ресал тока гостов-согильдийцев)
2 афтар - у тебя он обрезан и проще использывать:
Code:
sub Ress() 
var i
Dim a[2]
a[1] = '0x0192'
a[2] = '0x0193'
UO.Set('finddistance','2')
For i= 1 to 2
uo.findtype(a[i], -1, 'ground')
if uo.findcount() then
uo.waittargetobject('finditem')
uo.usetype('0x0E21')
#uo.cast('Resurrection') ; если надо ресать магией
else
uo.print('ghost not found')
end if
Next
end sub


Top
   
 
 Post subject:
PostPosted: 2006-07-25 20:17:47 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Mihail wrote:
скрипт был взят мой (ресал тока гостов-согильдийцев)
2 афтар - у тебя он обрезан и проще использывать:
Code:
sub Ress() 
var i
Dim a[2]
a[1] = '0x0192'
a[2] = '0x0193'
UO.Set('finddistance','2')
For i= 1 to 2
uo.findtype(a[i], -1, 'ground')
if uo.findcount() then
uo.waittargetobject('finditem')
uo.usetype('0x0E21')
#uo.cast('Resurrection') ; если надо ресать магией
else
uo.print('ghost not found')
end if
Next
end sub


Твой скрипт великолепен, я просто восхищаюсь им. Какие же умные люди порой бывают на белом свете, что создают такие творения исскуства. Спасибо тебе дорогой огромное, твоя помощь неоценима для всех нас-вечная память твоему скрипту.


Top
   
 
 Post subject:
PostPosted: 2006-07-25 23:45:33 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
нет проблем


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited