EL_TYCHO
04-15-2007, 10:07 AM
Hi, im making a script and it needs to buy something of the general shop, do something with it, and then buy new ones, I got a bitmap of the thing it needs to buy and one of the "Trade shopkeeper/shopassistant", but i just cxant figure out how to let it find the general shop guy and then let it buy the logs.
Can someone give me a hand on that?
I got this out of an other one of my scripts, this is for when the trade screen is open and it buys the items:
begin
if(Slot = '1')then
begin
repeat
Wait(500 + Random(500));
MouseBox(85, 76, 104, 96, 2);
Wait(500 + Random(100));
ChooseOption(x, y, '10');
Bought := Bought + 10;
until(Bought >= AmountToBuy) or (InChat('out of stock.')) or
(InChat('have enough coins.'));
end;
where should I edit it to use the bitmap instead of using the mouse to go there?Of course ill have to edit it some.
Can someone give me a hand on that?
I got this out of an other one of my scripts, this is for when the trade screen is open and it buys the items:
begin
if(Slot = '1')then
begin
repeat
Wait(500 + Random(500));
MouseBox(85, 76, 104, 96, 2);
Wait(500 + Random(100));
ChooseOption(x, y, '10');
Bought := Bought + 10;
until(Bought >= AmountToBuy) or (InChat('out of stock.')) or
(InChat('have enough coins.'));
end;
where should I edit it to use the bitmap instead of using the mouse to go there?Of course ill have to edit it some.