Yoko
http://forum.yoko.com.ua/

Помогите с масивами немогу два масива паставить -(((
http://forum.yoko.com.ua/viewtopic.php?f=20&t=11051
Page 1 of 1

Author:  The's is Ghost [ 2007-01-10 10:29:04 ]
Post subject:  Помогите с масивами немогу два масива паставить -(((

Помогите с масивами немогу два масива паставить -(((

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

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'


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

Author:  Savage [ 2007-01-10 12:00:19 ]
Post subject: 

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

Author:  mez [ 2007-01-10 12:13:31 ]
Post subject: 

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:

Author:  Dimage [ 2007-01-10 12:36:20 ]
Post subject: 

Code:
 uo.FindType(loot[i],'-1','bonescontainer')


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

Author:  Nmy [ 2007-01-10 12:37:40 ]
Post subject: 

Code:
  loot[0]= 
  loot[1]=

Author:  Savage [ 2007-01-10 17:44:33 ]
Post subject: 

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

Author:  mez [ 2007-01-10 22:22:00 ]
Post subject: 

Savage wrote:
Человек спросил как ему лутить разные трупы, я ответил. Скрипт и не должен работать так как недоделан.


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

Author:  Savage [ 2007-01-11 08:08:17 ]
Post subject: 

Нет.

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/