Yoko

All sides of Injection
It is currently 2025-10-15 15:57:10

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2009-10-20 11:18:17 
Offline

Joined: 2009-10-20 11:00:59
Posts: 3
Ребята помогите со скриптом, а то у меня нечего не получается :(
Скрипт состоит в следующем!!!
Есть сундук в котором много одинаковых мешочков и в кажом мешочке очень много вещей 2х типов!
И надо сделать так что бы персонаж открывал сундук, потом сумку в которой есть вещи и перекладывал ее на НПЦ который принимает эти вещи!!!
(сундук в котором лежат сумки
Quote:
ID=0x410E510C Type=0x09AA
Colour: 0x0000
(Сумки
Quote:
Type=0x0E76 Colour: 0x0000

(изделие номер 1
Quote:
Type=0x1EFF Colour: 0x0000
(изделие номер 2
Quote:
Type=0x1F03 Colour: 0x0000
( НПЦ на которого кидать вещи
Quote:
ID=0x003EBFDD Type=0x0190 Name=Leif Colour: 0x0403


Помогите пожалуйста кто сможет!!!
А то мне так их и за год не перекинуть :(


Top
   
 Post subject:
PostPosted: 2009-10-20 17:39:28 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub MoveALotOfItems()
  var idSundukWithBags='0x410E510C'
  var tBag='0x0E76'
  var idNpc='0x003EBFDD'
  var idTmpBag
  var movedelay=750
  var i

  Dim tItem[2]
  tItem[0]='0x1EFF'
  tItem[1]='0x1F03'

  uo.UseObject(idSundukWithBags)
  wait(1000)
  uo.FindType(tBag,'-1',idSundukWithBags)
  if uo.FindCount() then
    idTmpBag=uo.GetSerial('finditem')
    uo.UseObject(idTmpBag)
    wait(1000)
    for i = 0 to 1
      uo.FindType(tItem[i],'-1',idTmpBag)
      repeat
        uo.MoveItem('finditem','all',idNpc)
        wait(movedelay)
        uo.FindType(tItem[i],'-1',idTmpBag)
      until uo.FindCount() == 0 
    next
  else
    uo.Print('There are not any Bags with Items.')
  endif 
end sub


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

All times are UTC+02:00


Who is online

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