Yoko

All sides of Injection
It is currently 2025-11-05 23:44:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2008-07-13 02:20:58 
Offline

Joined: 2008-03-03 02:16:35
Posts: 45
Code:
sub Kryss()
uo.setdressspeed(600)
Var Weapon='0x40117D46' ;Мой крисс
If not UO.GetSerial( UO.ObjAtLayer( 'Rhand' ) ) == Weapon then
   If not UO.GetSerial( UO.ObjAtLayer( 'Rhand' ) ) == 0x00000000 then
   uo.unequip("Rhand")
   wait(600)
   Else
   wait(100)
   Endif
   wait(600)
   uo.equip("Rhand", Weapon)
Else
   uo.print("Weapon already equipped")
Endif
end sub


Мой скрипт, в принципе нормально работает.
Вот этими строчками я хочу, чтобы если в руке ничего нету, то скрипт не пытался делать дисарм и терять на это время.
Code:
If not UO.GetSerial( UO.ObjAtLayer( 'Rhand' ) ) == 0x00000000 then
   uo.unequip("Rhand")
   wait(600)
   Else
   wait(100)
Endif


Но скрипт пытается делать дисарм независимо, есть ли в руке другое оружие или она пуста.


Top
   
 Post subject:
PostPosted: 2008-07-13 14:11:14 
Offline

Joined: 2008-03-03 02:16:35
Posts: 45
В общем покумекал, сделал нормально :) мож кому пригодится.

Code:
sub Kryss()
uo.setdressspeed(600)
Var Weapon='0x40117D46'
Var Empty=''
If not UO.GetSerial( UO.ObjAtLayer( 'Rhand' ) ) == Weapon then
   If not UO.ObjAtLayer( 'Rhand' ) == Empty then
   uo.unequip("Rhand")
   wait(600)
   Endif
   uo.equip("Rhand", Weapon)
Else
   uo.print("Weapon already equipped")
Endif
end sub


Top
   
PostPosted: 2008-07-13 14:12:20 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
А бинды типа:

Code:
usetype 'тип криса'


Уже не в моде?


Top
   
 Post subject:
PostPosted: 2008-07-13 14:45:58 
Offline

Joined: 2008-03-03 02:16:35
Posts: 45
А зачем, я всегда с 1 и тем же криссом бегаю.


Top
   
 Post subject:
PostPosted: 2008-07-13 17:47:46 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Jaraa wrote:
А зачем, я всегда с 1 и тем же криссом бегаю.


Еще раз мой пост прочти, тем более если с одни и тем же бегаешь. В смысл всмотрись повнимательней.


Top
   
 Post subject:
PostPosted: 2008-07-14 09:38:58 
Offline
User avatar

Joined: 2005-04-04 18:23:12
Posts: 187
Купер, не на всех шардах оружие одеваеться, если ты его "используеш".


Top
   
 Post subject:
PostPosted: 2008-07-14 22:03:44 
Offline

Joined: 2008-03-03 02:16:35
Posts: 45
Kynep wrote:
Jaraa wrote:
А зачем, я всегда с 1 и тем же криссом бегаю.


Еще раз мой пост прочти, тем более если с одни и тем же бегаешь. В смысл всмотрись повнимательней.


А, я понял про че ты, я на ранке играю, там токо эквипом надевается оружие.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 11 guests


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