Yoko

All sides of Injection
It is currently 2025-12-26 16:22:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2007-06-05 17:12:13 
Offline

Joined: 2007-05-26 17:37:00
Posts: 44
Сам пробовал не че не получалось! Не мае это)) Помогите пожалуста переделать чтоб он глазики скупал на оскоме лажил их домой после законченого круга ждал и потом опять летел помогите пожалуста!
Code:
sub CheckNPC() 
VAR a, x, y, vendor1, vendor2, vendor3, select = 1, done = 0, find = 0, name
uo.set('finddistance', '5')
uo.ignore('self', 'on')
DIM Chars[2]
Chars[0] = '0x0190' #тип игрока мужского пола#
Chars[1] = '0x0191' #тип игрока женского пола#
repeat
  for a = 0 to 1       
    uo.findtype(Chars[a], '-1', '1') 
    if uo.findcount() > 0 then
      if uo.getnotoriety('finditem') < 5 then
        if uo.getz('finditem') == uo.getz('self') then
          if select = 1 then
            vendor1 = uo.getserial('finditem')
            find = 1
          else
            wait(50)
          endif
          if select = 2 then
            vendor2 = uo.getserial('finditem')
            find = 2
          else
            wait(50)
          endif
          if select = 3 then
            vendor3 = uo.getserial('finditem')
            find = 3
          else
            wait(50)
          endif
          select = select + 1
          if select > 3 then
            done = 1
          else
            wait(50)
          endif
        else
          wait(50)
        endif
      else
        uo.exec('exec RegTeleport')
        return
      endif
    else
      wait(50)
    endif
  next
until done == 1 or uo.findcount() == 0
if find > 0 then
  x = uo.getx('vendor1')
  y = uo.gety('vendor1')
  go(x,y)
  name = uo.getname('vendor1')
  uo.say(name+' buy')
  wait(500)
  checklag()
  uo.buy('regi')
  wait(500)
  uo.say('bye')
  if uo.weight > 600 then
    uo.exec('exec GoHome')
    return
  else
    wait(50)
  endif
  if find == 2 then
    x = uo.getx('vendor2')
    y = uo.gety('vendor2')
    go(x,y)
    name = uo.getname('vendor2')
    uo.say(name+' buy')
    wait(500)
    checklag()
    uo.buy('regi')
    wait(500)
    uo.say('bye')
    if uo.weight > 600 then
      uo.exec('exec GoHome')
      return
    else
      wait(50)
    endif
    if find == 3 then
      x = uo.getx('vendor3')
      y = uo.gety('vendor3')
      go(x,y)
      name = uo.getname('vendor3')
      uo.say(name+' buy')
      wait(500)
      checklag()
      uo.buy('regi')
      wait(500)
      uo.say('bye')
      if uo.weight > 600 then
        uo.exec('exec GoHome')
        return
      else
        wait(50)
      endif
    else
      wait(50)
    endif
  else
    wait(50)
  endif
endif
uo.exec('exec RegTeleport')
end sub

за ранее спосибо!


Top
   
 Post subject:
PostPosted: 2007-06-08 17:34:35 
Offline
User avatar

Joined: 2004-12-30 18:13:16
Posts: 175
Location: Russia
Есть у меня один могильничег(скрипт)

_________________
Design, webdev, coding, c#, php, asp.net, xml, perl, sql, ajax, drawing, illustrating, restoration, photo, photoshop, schedule, pron, guitar, lead-guitar, js, jsp, java, dom, html, *nix, struts, cs, etc


Top
   
 Post subject:
PostPosted: 2007-06-09 13:38:14 
Offline
User avatar

Joined: 2005-07-17 15:30:52
Posts: 308
Location: www.drw.ru
Скрипт этот писал я, только не помню чтобы я его на форум выкладывал, да и ты отпостил только его небольшую часть + я его ни разу не тестил.


Top
   
 Post subject:
PostPosted: 2007-06-19 16:10:49 
Offline

Joined: 2007-05-26 17:37:00
Posts: 44
3Jlo6Hblu' u0ry®T wrote:
Есть у меня один могильничег(скрипт)


Дай пожалуста!!


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 3 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