продажа полных мешков
Moderators: Murderator+, Murderator
продажа полных мешков
смысл такой что я наделал такое количество стафоф что их теперь в ручную не продать скрипт у меня разложил их по мешкам, а как зделать так чтобы он на автомате брал мешок и продовал его содержимое вендору и так по кругу, ну и как всегда шард ДРВ
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
А расскажи, какие траблы с продажей на дрв? Buy/Sell чтоли не пашет?...
А то я ваще не врубаюсь..
А то я ваще не врубаюсь..
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
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
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Как понять из сейва брал мешки?..
Какая проблема просто uo.sell('listname') или из мешков вещи не продаются?
Какая проблема просто uo.sell('listname') или из мешков вещи не продаются?
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
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
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Все равно, проблема расписано не достаточно ясно.
Тебя как интересует - собрать все мешки и продать вендору или вынимать по определнному количеству палок из мешка и лететь их продавать?
Тебя как интересует - собрать все мешки и продать вендору или вынимать по определнному количеству палок из мешка и лететь их продавать?
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
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
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Ну набрасаем, мб будет работать даже, с учетом, что перс находится у дома и мешки досягаемы
Собсно поправь как надо, я же на дрв не играю и вообще это набросок написанный прямо в форме ответа, что жутко не удобно, такЮ, что обязаны быть опечатки

Code: Select all
sub sellbags()
var cont = контейнер с мешками
var bag = тип мешка
var r1 = номер руны к продавцу
var r2 = номер руны обратно
var book = ID рунбука
var kolvo = сколько мешков брать
var list = название листа
var vendor = имя вендора
var x1 = координаты по икс у дома
var y1 = аналогично по y
var x2 = координаты по x у вендора
var y2 = аналогично по y
var delay = пауза на подъем мешков
repeat
uo.findtype(bag,-1,cont)
if uo.findcount()>0 then
for(i=0;i<kolvo;i++)
uo.findtype(bag,-1,cont)
uo.grab(0,'finditem')
wait(delay)
next
uo.recall(book,r1)
repeat
wait(500)
until uo.getx()==x2 && uo.gety()==y2
for(i=0;i<kolvo/10*255)
uo.sell(list,vendor)
wait(3500)
next
uo.recall(book,r2)
repeat
wait(500)
until uo.getx()==x1 && uo.gety()==y1
endif
until uo.findcount()==0
endsub
Собсно поправь как надо, я же на дрв не играю и вообще это набросок написанный прямо в форме ответа, что жутко не удобно, такЮ, что обязаны быть опечатки

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
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
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
А как если не по координатам я должен организовать паузу пока твой чар переместится?
Какой нах полиморф в скрипт - ручками, ручками
Какой нах полиморф в скрипт - ручками, ручками

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
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
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Синтаксис учи - бестыдник!
Code: Select all
var list = 'PALKI'
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
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
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Хз, меня на яваскрипт тянет )
Эмм, люди, кого на яваскрипт не тянет - плиз фикс
Эмм, люди, кого на яваскрипт не тянет - плиз фикс

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
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
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
Попробуй юзать списки Buy/Sell
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
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