Log in

View Full Version : General trade



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.

Hey321
04-15-2007, 10:42 AM
Perhaps make a dtm of his front (some of his apron and some of his head) and one of his back (head & clothes) then make it rotate till it finds one?

EL_TYCHO
04-16-2007, 02:45 PM
Aaaaah, thats a very good idea ;) Now I just have to search for the DTM tut cuz I'm not very experienced in that :p no need to post a link, ill find it myself:p
Ill first do that, but then can someone help me with the second question??

Ramage
04-16-2007, 10:22 PM
if(FindBitmap(bitmapname, x, y)) then
Mouse(x, y, 2, 2, true); Is that what you wanted for the second question?

EL_TYCHO
04-17-2007, 05:45 PM
yup :eek: so easy Lol im a real retard :p