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

Get name of vendor.
http://forum.yoko.com.ua/viewtopic.php?f=3&t=6027
Page 1 of 1

Author:  Josh [ 2006-02-23 15:45:47 ]
Post subject:  Get name of vendor.

What i need is target the vendor and get his name for shoping.Uo.getname doesn't working and uo.getstatus show me name hp/hp <xx> ,this can be used from journal, but i don't know how :oops: .I'm playing on sphere 55b.Thank you.

Author:  LordTom [ 2006-02-23 18:37:13 ]
Post subject:  медики не разрешают кировчанам купаться

Текст не мой, автор мне не известен, к сожалению. Война против России идет уже очень давно и очень, очень успешно. Разумеется, не на полях сражений, где мы всех вс
Все с вами ясно разгалагольствовать о том что в мире нет ничего ненормального - это нормально а как до дела доходит так начинается старая песня и это плохо и то плохо неужели вы не понимае

Author:  flake [ 2006-02-23 18:42:30 ]
Post subject: 

Or you may also try to find the vendor by type, and get his name by uo.getname('finditem'), like here:

Code:
# покупка регов по списку
Sub buyregs()
  var f=0, name
  uo.ignore( 'self' )
  uo.set( 'finddistance', '2' )
  uo.findtype( '0x0190', '-1', 'ground' )
    if uo.findcount() == 0 then
      uo.findtype( '0x0191', '-1', 'ground' )   
       if uo.findcount() == 0 then
         uo.print( 'нет вендоров!' )
        else
         f = 1
        endif
    else
     f = 1
    endif
   
  if f ==1 then
   name = uo.getname( 'finditem' )
   uo.say( ',buy reg '+name )
  endif
endsub

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