Yoko

All sides of Injection
It is currently 2024-03-29 00:44:10

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2012-06-16 15:51:27 
Offline

Joined: 2012-04-02 20:49:27
Posts: 14
Нужен скрипт на смену дивов с 1 кнопки.
как только не пытался не получается
Code:
sub Equipt()
var sword = '0x0f4e'
var fance = '0x0f63'
if uo.GetGraphic(uo.ObjAtLayer('Rhand'))==fance then
uo.disarm()
uo.Equipt('Rhand', sword)
else
uo.disarm()
uo.Equipt('Rhand', fance)
end if
end sub


так он просто меняет див на фенсу но при повторном нажатии обратно на сворду не меняет (дивый бардич и спира)

помогите пожалуйста :(


Top
   
PostPosted: 2012-06-16 16:56:38 
Offline

Joined: 2012-04-02 20:49:27
Posts: 14
Все сделал сам :D Рад до безумия!

Code:
var wep1=0x0f63  ; Type oruzhija 1
var wep2=0x0f4e  ; Type oruzhija 2
uo.findtype(wep1,'-1','backpack')
uo.disarm()
UO.equip("Rhand",'finditem')
if not uo.findcount() then
uo.findtype(wep2,'-1','backpack')
uo.disarm()
UO.equip("Rhand",'finditem')
else
uo.findtype(wep1,'-1','backpack')
uo.disarm()
UO.equip("Rhand",'finditem')
end if
end sub


Используйте на здоровье! :)


Top
   
PostPosted: 2012-06-16 19:37:14 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
А если в первом скрипте типы указать в верхнем регистре?.. )

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 19 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