Log in

View Full Version : Inventory help.



NexPB
02-17-2012, 07:50 PM
(I tried to explain this as good I can.)

at the moment my script uses "not InvEmpty" to start the procedure DepositArmour; but now it will also start to DepositArmour when there is noted items or a hammer in inv, I need a fuction wich will return true when inv contains something else than noted items or the hammer.


procedure Loop;
begin
AntiRandoms;

if (BarInInv) then
begin
SmithArmour;
end else
if not (InvEmpty) then
begin
DepositArmour;
end else
WithdrawBars;
end;

klit rs
02-17-2012, 07:55 PM
Is the script mem or non-mem?

NexPB
02-17-2012, 07:58 PM
Is the script mem or non-mem?
Mem why...

x[Warrior]x3500
02-17-2012, 08:41 PM
why not just say something like

dropallexcept([27,28]);
Deposit(1, 26, false);

just make sure your tool/note is in the 27th or 28th slot.

NexPB
02-17-2012, 09:17 PM
x3500;933193']why not just say something like

dropallexcept([27,28]);
Deposit(1, 26, false);

just make sure your tool/note is in the 27th or 28th slot.
DepositArmour is not banking but its clicking on something (from Artisans workshop) and the armours will go in it.

x[Warrior]x3500
02-17-2012, 10:14 PM
oh, i wrote an artisan workshop smither also. umm well 1. why noted items? and 2. why are u using invempty if you will have items in ther?

why not just find the dtm of the bar in the last inventory slot example: if(not(FindDTM(IronDTM,x,y,690, 432,733, 463)))then

thats wat i did

NexPB
02-17-2012, 10:35 PM
x3500;933263']oh, i wrote an artisan workshop smither also. umm well 1. why noted items? and 2. why are u using invempty if you will have items in ther?

why not just find the dtm of the bar in the last inventory slot example: if(not(FindDTM(IronDTM,x,y,690, 432,733, 463)))then

thats wat i did
Because it will always try to deposit in the thingy when you have
if(not(FindDTM(IronDTM,x,y,690, 432,733, 463))) and also I made this script while using golden hammer so there was nothing else in my inv. The noted items are for the ore if we run out.