Log in

View Full Version : Problem making a script.



passiondrive
07-14-2007, 04:03 PM
Hi, I'm currently in the making of an unstrung bow maker. As the inventory is always full (either with the logs or bows) I need a way to detect when the char has finished making its bows so it can bank them. Any ideas?

PassionDrive (h)

JAD
07-14-2007, 04:07 PM
make it repeat until it does not find a DTM of the logs you are fletching or something =)

passiondrive
07-14-2007, 04:08 PM
Ok thanks JAD, by the way, you get my proggy?

JAD
07-14-2007, 04:16 PM
Ok thanks JAD, by the way, you get my proggy?

Yeah :) It was uber leet, thanks!

passiondrive
07-14-2007, 05:06 PM
Haha, lol, i'll try to get you a longer one sometime soon.

Hmm, I made a dtm of the logs... but now i'm struggling a bit with the code, anyone have any ideas it would search the inventory until there were no more logs, then bank.

JAD
07-14-2007, 08:03 PM
Haha, lol, i'll try to get you a longer one sometime soon.

Hmm, I made a dtm of the logs... but now i'm struggling a bit with the code, anyone have any ideas it would search the inventory until there were no more logs, then bank.

Have your fletch logs procedure, then have:


repeat
FletchLogs;
until(not(FindDTM(LogDTM,x,y,MIX1,MIY1,MIX2,MIY2)) );


Or something like that.. And it should work :p

Or, have in your FletchLogs procedure

if(not(FindDTM(LogDTM,x,y,MIX1,MIY1,MIX2,MIY2)))th en Exit;

Hope that helps some :)

passiondrive
07-14-2007, 08:05 PM
Testing now...

EDIT: Works Great!!! Thanks a lot JAD! Added to your rep!