SRL Archive - Help

Inventory help.


NexPB

2012-02-17 14:50:28

(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

2012-02-17 14:55:09

Is the script mem or non-mem?

NexPB

2012-02-17 14:58:52

From: klit rs
Is the script mem or non-mem?

Mem why…

x[Warrior]x3500

2012-02-17 15:41:19

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

2012-02-17 16:17:55

From: x[Warrior]x3500
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

2012-02-17 17:14:56

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

2012-02-17 17:35:03

From: x[Warrior]x3500
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.