Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

AutoBuy

тут можно задать вопрос по скриптингу
Post Reply
duque777
Posts: 3
Joined: 08.10.2008 10:33

AutoBuy

Post by duque777 »

I'm not able to make a script to buy a particular item, but to sell worked perfectly.

Я не в состоянии сделать сценария купить определенный пункт, а продавать работали прекрасно.

Sell:
[code]Program Sell;

{$Include 'all.inc'}

uosay('Tak Sell');
AutoSell($1F03,$0000,10);
wait(2000);[/code]

Buy:
[code]Program Buy;

{$Include 'all.inc'}

begin
if not GetAutoBuyMode then SetAutoBuyMode(true);
SetAutoBuyDelay(400);
AutoBuy($175D,$0000,20);
UOSay('Chiin buy'); [/code]

Where is the problem?

Где ошибка?

thanks.
Last edited by duque777 on 01.12.2009 18:13, edited 1 time in total.
WladL
Apprentice
Apprentice
Posts: 240
Joined: 27.07.2009 17:21
Location: DRW
Contact:

Post by WladL »

Why You use AutoBuy function in Sell programm?
procedure AutoSell(ItemType: Word; ItemColor: Word; Quantity: Word);
function GetAutoSellMode: Boolean;
procedure SetAutoSellMode(Value: Boolean);
function GetAutoSellDelay: Word;
procedure SetAutoSellDelay(Value: Word);
Last edited by WladL on 01.12.2009 19:07, edited 1 time in total.
"Как хочешь ты трудись;
Но приобресть не льстись
Ни благодарности, ни славы,
Коль нет в твоих трудах ни пользы, ни забавы. (с) С.Крылов."
duque777
Posts: 3
Joined: 08.10.2008 10:33

Post by duque777 »

error when I put in the forum.
but the problem is on BUY program.
WladL
Apprentice
Apprentice
Posts: 240
Joined: 27.07.2009 17:21
Location: DRW
Contact:

Re: AutoBuy

Post by WladL »

duque777 wrote: SetAutoBuyDelay(400);
SetAutoBuyDelay(Sekond:Word);
You are set 400 sekond = 6,7 minute? it's correct?
"Как хочешь ты трудись;
Но приобресть не льстись
Ни благодарности, ни славы,
Коль нет в твоих трудах ни пользы, ни забавы. (с) С.Крылов."
duque777
Posts: 3
Joined: 08.10.2008 10:33

Post by duque777 »

this is not the problem, as already modified it and still not buying.
WladL
Apprentice
Apprentice
Posts: 240
Joined: 27.07.2009 17:21
Location: DRW
Contact:

Post by WladL »

1)check second param($0000), it's must be strong a color of item.
2)after UOSay('Chiin buy') insert wait-function with BuyDelay argument

Code: Select all

SetAutoBuyDelay(5);
...
UOSay('Chiin buy');
wait(5000);

3)try set SetSilentMode(false) before buy and find in list your item.
4)Your server type?
"Как хочешь ты трудись;
Но приобресть не льстись
Ни благодарности, ни славы,
Коль нет в твоих трудах ни пользы, ни забавы. (с) С.Крылов."
Post Reply