say Buy "vendor name"

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Mazer
Posts: 125
Joined: 2007-11-13 00:39:14

say Buy "vendor name"

Post by Mazer »

Hello,
i have tryed to write script with add object and say buy targeted vendor name

maybe some one know how to do this
uo.addobject('vendor')
uo.say('Buy' + uo.getname('vendor'))
or something ?
thanks for help ;)
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Code: Select all

uo.addobject("vendor")
while uo.targeting()
    wait( 100 )
wend
uo.msg( "buy " + uo.getName( "vendor" ) )
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
kahe
Posts: 25
Joined: 2009-11-14 12:48:27

Post by kahe »

что этот скрипт у меня то говорит buy vendorname то просто говорит buy
на DRW не получается помогите пожалуйста
kahe
Posts: 25
Joined: 2009-11-14 12:48:27

Post by kahe »

походу лень всем подредоктировать( спс
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Напрямую зависит от галочки в UO - Show names of approaching players.

Косвенно зависит от галочки в Injection - Track World Items.

В конечном счете - можно написать так:

Code: Select all

uo.addobject("vendor") 
while uo.targeting()
    wait( 100 )
wend
if uo.getName( "vendor" ) == "" then
    uo.click( "vendor" )
    checklag()
endif
uo.msg( "buy " + uo.getName( "vendor" ) )
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
kahe
Posts: 25
Joined: 2009-11-14 12:48:27

Post by kahe »

ок
Post Reply