Yoko

All sides of Injection
It is currently 2025-10-11 14:50:15

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 2007-01-10 10:29:04 
Offline

Joined: 2006-05-25 11:42:33
Posts: 13
Помогите с масивами немогу два масива паставить -(((

скрипт на лут из костей а вот как паставить несколько тайпов кастей я непонимаю хелпаните плза )

Code:
sub LootFromBones() 
var Bones=' type '
var dagger=' type '
var i , bonescontainer
 DIM loot[2]

  loot[0]=''
  loot[1]=''

  uo.WaitTargetObject('lastcorpse')
  uo.UseType(dagger)
  uo.FindType(Bones,'-1','ground')
  if uo.FindCount() then
    bonescontainer = uo.GetSerial('finditem')
    uo.UseObject('bonescontainer')
    for i = 0 to 1
      uo.FindType(loot[i],'-1','bonescontainer')
      if uo.FindCount() then
        uo.moveitem('finditem','all')
        wait(750)
      end if
    next
    uo.Print(' There is nothing good in the corpse ')
  else
    uo.Print('You cant find any corpse around yourself')
  end if
end sub



а я хачу паставить вот ети тайпы кастей


Code:
'0x0ECA'
'0x0ECB'
'0x0ECC'
'0x0ECD'
'0x0ECE'
'0x0ECF'
'0x0ED0'
'0x0ED1'
'0x0ED2'


но невыходит чтота =(((


Top
   
 Post subject:
PostPosted: 2007-01-10 12:00:19 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Code:
sub LootFromBones() 
var dagger=' type '
var i, j, bonescontainer, Exit
 DIM loot[2]
 DIM Bones[8]

  Bones[0]='0x0ECA'
  Bones[1]='0x0ECB'
  Bones[2]='0x0ECC'
  Bones[3]='0x0ECE'
  Bones[4]='0x0ECF'
  Bones[5]='0x0ED0'
  Bones[6]='0x0ED1'
  Bones[7]='0x0ED2'

  loot[0]=
  loot[1]=


  uo.WaitTargetObject('lastcorpse')
  uo.UseType(dagger)

  Exit=0
  j=0
  While j<=7 OR Exit==1
    uo.FindType(Bones[j],'-1','ground')
    wait(300)
    if uo.FindCount() then
      bonescontainer = uo.GetSerial('finditem')
      Exit=1
      uo.UseObject('bonescontainer')
    for i = 0 to 1
      uo.FindType(loot[i],'-1','bonescontainer')
      if uo.FindCount() then
        uo.moveitem('finditem','all')
        wait(750)
      end if
    next
    uo.Print(' There is nothing good in the corpse ')
    endif
    j=j+1
  Wend
end sub


Top
   
 Post subject:
PostPosted: 2007-01-10 12:13:31 
Offline
User avatar

Joined: 2006-04-02 11:33:38
Posts: 91
Savage wrote:
Code:
sub LootFromBones() 
var dagger=' type '
var i, j, bonescontainer, Exit
 DIM loot[2]
 DIM Bones[8]

  Bones[0]='0x0ECA'
  Bones[1]='0x0ECB'
  Bones[2]='0x0ECC'
  Bones[3]='0x0ECE'
  Bones[4]='0x0ECF'
  Bones[5]='0x0ED0'
  Bones[6]='0x0ED1'
  Bones[7]='0x0ED2'

  loot[0]=
  loot[1]=


  uo.WaitTargetObject('lastcorpse')
  uo.UseType(dagger)

  Exit=0
  j=0
  While j<=7 OR Exit==1
    uo.FindType(Bones[j],'-1','ground')
    wait(300)
    if uo.FindCount() then
      bonescontainer = uo.GetSerial('finditem')
      Exit=1
      uo.UseObject('bonescontainer')
    for i = 0 to 1
      uo.FindType(loot[i],'-1','bonescontainer')
      if uo.FindCount() then
        uo.moveitem('finditem','all')
        wait(750)
      end if
    next
    uo.Print(' There is nothing good in the corpse ')
    endif
    j=j+1
  Wend
end sub


не хочет он работать резать режет а лутить не хочет! а еще можете в это скрипт вставить что бы он лутил даже если вы в варе? :lol:


Top
   
 Post subject:
PostPosted: 2007-01-10 12:36:20 
Offline
User avatar

Joined: 2006-12-04 00:23:37
Posts: 36
Code:
 uo.FindType(loot[i],'-1','bonescontainer')


Помойму тут ошибка


Top
   
 Post subject:
PostPosted: 2007-01-10 12:37:40 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
  loot[0]= 
  loot[1]=

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


Top
   
 Post subject:
PostPosted: 2007-01-10 17:44:33 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Человек спросил как ему лутить разные трупы, я ответил. Скрипт и не должен работать так как недоделан.


Top
   
 Post subject:
PostPosted: 2007-01-10 22:22:00 
Offline
User avatar

Joined: 2006-04-02 11:33:38
Posts: 91
Savage wrote:
Человек спросил как ему лутить разные трупы, я ответил. Скрипт и не должен работать так как недоделан.


блин а помочь можеш доделать?


Top
   
 Post subject:
PostPosted: 2007-01-11 08:08:17 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Нет.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 9 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:  
Powered by phpBB® Forum Software © phpBB Limited