Yoko

All sides of Injection
It is currently 2025-10-26 00:18:02

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: vazmozhnoe li takoe?
PostPosted: 2008-01-14 17:10:20 
Offline

Joined: 2007-12-03 20:11:19
Posts: 26
vazmozhno li takoe.zdelat hotkey naprimer kogda nazhimaesh ALT+A vkluchaetsa script loot.sc ?


Top
   
 Post subject: Re: vazmozhnoe li takoe?
PostPosted: 2008-01-14 17:32:24 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
kapatuct wrote:
vazmozhno li takoe.zdelat hotkey naprimer kogda nazhimaesh ALT+A vkluchaetsa script loot.sc ?


Все возможно, но проще сделать скрипт autoload.sc, сохранить в дире инжы, туда вставить нужные тебе процедуры и за тем забиндить на нужные клавиши.


Top
   
 Post subject:
PostPosted: 2008-01-14 19:19:25 
Offline

Joined: 2007-12-03 20:11:19
Posts: 26
ja ochen izveniajus mozhete napisat kakoi nebud primer kak pravelno nado delat etot autoload.sc .


Top
   
 Post subject:
PostPosted: 2008-01-14 20:45:28 
Offline
User avatar

Joined: 2005-04-05 04:13:24
Posts: 139
Location: DRW
это просто текстовый файл со скриптами, как и любой другой.
сохраняешь в него все нужные тебе скрипты, биндишь и вперед

Например:
Code:
#############################

sub resbint()
VAR Exit=0, i
DIM Gost[2]
Gost[0]=0x0192 ;Man GHOSTTYPE
Gost[1]=0x0193 ;Woman GHOSTTYPE
For i=0 to 1
UO.SetArm("1")
uo.set('finddistance','2')
uo.findtype(Gost[i],'-1','ground')
UO.WaitTargetobject('finditem')
UO.usetype('0x0E21')
wait (500)
      next
wait (500)
      UO.Arm("1")
      UO.UnSetArm("1")
end sub

#############################
sub Equipt()
VAR i
dim weapon[4]
weapon[1]=0x143e ; Halberd
weapon[2]=0x0f4d ; Bardiche
weapon[3]=0x0e87 ; PitchFork
weapon[4]=0x0f62 ; Spear
For i=1 to 4
uo.findtype(weapon[i])
uo.equip('Rhand','finditem')
next
End sub

############################
Sub Sword()
Var Svord='0x13B9'
Var Sheld='0x1B76'
UO.Equipt('Rhand',Svord)
UO.Equipt('Lhand',Sheld)
Endsub

############################
Sub Bow()
Var i
dim bow[2]
bow[1]=0x13B1
bow[2]=0x13B2
For i=1 to 2
uo.findtype(bow[i])
UO.Equip('Lhand','finditem')
next
Endsub

############################
Sub Ataka_Last()
UO.Attack('laststatus')
end sub

###########################AnOrt таргет
Sub Ort()
If UO.Mana>=17 AND UO.BP>0 AND UO.NS>0 Then
   uo.cast('Dispel')
Else
   UO.Print("#############")
   UO.Print("## No mana ##")
   UO.Print("#############")
Endif
end sub

###########################ParalyzeField laststatus
Sub PF()
UO.Set('lasttarget','laststatus')
uo.waittargettile("400",str(uo.getx("lasttarget")),str(uo.gety("lasttarget")),str(uo.getz("lasttarget")))
uo.cast("Paralyze Field")
end sub

############################AnOrt на себя
Sub AnOrt()
If UO.Mana>=17 AND UO.BP>0 AND UO.NS>0 Then
   uo.cast('Dispel','self')
Else
   UO.Print("#############")
   UO.Print("## No mana ##")
   UO.Print("#############")
Endif
endsub

############################хилинг бинтами
Sub Heal()
   If UO.STR==UO.Life Then
      UO.Print("Life is full")
   Else
      UO.SetArm("1")
           
      UO.BandageSelf()
      wait(1100)
      UO.Arm("1")
      UO.UnSetArm()
   Endif
end sub

###########################выпивание МАНКИ
Sub Manka()
Var Type='0x0F0E'
Var Color='0x09DF'
UO.FindType(Type, Color, 2)
UO.UseObject('finditem')
End sub

###########################выпивание ГХ
Sub GreaterHeal()
Var Type='0x0F0E'
Var Color='0x09BB'
UO.FindType(Type, Color, 2)
UO.UseObject('finditem')
End sub

###########################hiding
Sub Hiding()
UO.WarMode(0)
UO.UseSkill('Hiding')
End sub

###########################meditation
Sub Meditation()
UO.WarMode(0)          
UO.UseSkill('Meditation')
End sub

###########################ARROW laststatus
Sub Arrow()
If UO.Mana>=11 AND UO.BP>0 AND UO.NS>0 Then
   UO.Cast('Magic Arrow','laststatus')
Else
   UO.Print("#############")
   UO.Print("## No mana ##")
   UO.Print("#############")
Endif
End sub

###########################ПАРАЛИЗ laststatus
Sub Paralyze()
   UO.Set('lasttarget','laststatus')
   UO.FindType('0x1F52',-1,'my')
   If UO.GetQuantity('finditem')>0 then
      if UO.Mana>=14 then
         UO.WaitTargetObject('lasttarget')
         UO.UseObject('finditem')
         UO.Print("Scroll")
      else
         UO.Print("Low mana!!! Scroll!")
      endif
   else
      if UO.Mana>=28 then
         UO.Cast('Paralyze','laststatus')
         UO.Print("Spell")
      else
   UO.Print("#############")
   UO.Print("## No mana ##")
   UO.Print("#############")
      endif
   endif
end sub

и т.д. и т.п.


Top
   
 Post subject:
PostPosted: 2008-01-14 22:41:08 
Offline

Joined: 2007-12-03 20:11:19
Posts: 26
plin nu ne mogu ... pazorno tak sprashivat :oops: a kak bindit ja ne kak razobratsa ne mogu . scripting bolemenije uzhe ponemaju koe chto nauchilsia a vot auto run nekak :/


Top
   
 Post subject:
PostPosted: 2008-01-14 23:13:34 
Offline

Joined: 2007-12-03 20:11:19
Posts: 26
Sposibo Kynep i stickman bez vas ja bi tochno nekogda bi ne rozobralsia :) !!!


Top
   
 Post subject:
PostPosted: 2008-01-15 00:16:29 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
kapatuct wrote:
Sposibo Kynep i stickman bez vas ja bi tochno nekogda bi ne rozobralsia :) !!!


Достаточно почитать хелп и уроки что бы во всем разобраться. Про бинды в разделе FAQ написано.


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 7 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