Yoko

All sides of Injection
It is currently 2026-01-19 05:44:15

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2005-05-01 18:11:57 
Offline

Joined: 2005-04-28 19:46:27
Posts: 3
:lol: чёт пашет но както странно :D
помогите плиз
можно зделать такую штуку :?
вобщем нужно 50 штук каждого
чтоб он отнимал от 50 остаток на момент проверки и покупал разницу :)
ото я зделал какуето глупость :))
Code:
sub SR()
UO.Print("SELECT VENDOR")
UO.Exec('addobject Vendor')
While UO.Targeting()
wait(500)
Wend
var name='Vendor'
UO.Click('Vendor')
wait(1500)
name=UO.GetName('Vendor')
   wait(1000)
   if UO.Bm<50 then
   UO.buy('bm','name')
   wait(1000)
   UO.Say(name + " buy")
   UO.DeleteJournal()
   end if     
   if UO.Bp<50 then
   UO.buy('bp','name')
   wait(1000)
   UO.Say("buy") 
   UO.DeleteJournal()
   end if     
   if UO.Mr<50 then
   UO.buy('mr','name')
   wait(1000)
   UO.Say("buy")
   UO.DeleteJournal()
   end if
    if UO.Ga<50 then
   UO.buy('ga','name')
   wait(1000)
   UO.Say("buy")
   UO.DeleteJournal()
   end if
    if UO.Ns<50 then
   UO.buy('ns','name')
   wait(1000)
   UO.Say("buy")
   UO.DeleteJournal()
   end if
    if UO.Sa<50 then
   UO.buy('sa','name')
   wait(1000)
   UO.Say("buy")
   UO.DeleteJournal()
   end if
    if UO.Ss<50 then
   UO.buy('ss','name')
   wait(1000)
   UO.Say("buy")
   UO.DeleteJournal()
   end if
   if UO.Gs<50 then
   UO.buy('gi','name')
   wait(1000)
   UO.Say("buy")
   UO.DeleteJournal()
   end if
End sub

плиз хелп :roll:


Top
   
PostPosted: 2005-05-01 18:28:30 
Offline
Expert!
User avatar

Joined: 2004-10-15 22:38:04
Posts: 1396
Location: Moscow City.
matroskin wrote:
вобщем нужно 50 штук каждого
чтоб он отнимал от 50 остаток на момент проверки и покупал разницу :)

Лист покупки статичен ты никак несможеш этого сделать тоесть если у тебя 37 регов а тебе надо чтобы их было 50 то придется покупать по 1 до тех пор пока их количество небудет равно 50.
Могу ошибаться но если неизменяет память то так все ;)


Top
   
 Post subject:
PostPosted: 2005-05-01 18:38:58 
Offline

Joined: 2005-04-28 19:46:27
Posts: 3
ясненько :D спасиб
а как постоянно обращатся к вендору по имени ??
ото после первой покупки он вместо имени пишет какуето бурду =(
помоему пофторяет слова вендора :)
какнеть чтоб он брал один раз имя вендора и юзал только его
а он у меня после каждой покупки обращается к вендору и заного берёт его имя
тоесть при покупки 8 видов регов он 8 раз смотрит имя =(
а оно там меняется :(
и иза етого пишет какуето бурду :(


Top
   
 Post subject:
PostPosted: 2005-05-03 23:10:42 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
getname()

_________________
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.
Skype: d119060


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: No registered users and 7 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited