SRL Archive - Bugs

R_Withdrawitem fails


fre

2011-03-14 12:06:37

This procedure does not withdraw the item wanted.

In Debug box


[R_BankTab] Tab already open
5

Don't know what is wrong, i looked into the code for a few moments.
Could not find anything wrong.

Emaziz

2011-03-14 12:16:43

What item are you trying to withdraw? Are you using ID or name? I can try the same see if I figure out anything. Personally I haven't experienced any problems using that function, and I'm using it right now. :\

Harry

2011-03-14 12:20:58

Why don't you post how you're calling R_WithdrawItem ? You're probably calling it incorrectly. How many items are you trying to withdraw? R_WithdrawItem(ID,0) will remove all, and it works fine for me.

fre

2011-03-14 12:25:10

After testing some more, it seems to work for all items EXCEPT the item i want to withdraw.


R_WithdrawItem('Trout',1);

**BANNED The Man

2011-03-14 12:25:46

Try using the ID?

fre

2011-03-14 12:33:14

If i use te item ID the function works perfect.

But i am kinda like, if something works only for some items, i wnna know why.
The code below does not work.

R_WithdrawItem('Trout',1);

The code below works

R_WithdrawItem('Rune hatchet',1);

How the *** comes that it don't work for trout?
I tried it with anchovies, works too.

**BANNED The Man

2011-03-14 12:35:27

try lowercase?

Echo_

2011-03-14 12:37:54

Incorrect item ID for trout in Items.simba perhaps?

mormonman

2011-03-14 12:44:53

I think its about time we add scrolling..

Emaziz

2011-03-14 12:48:49

From: Echo_
Incorrect item ID for trout in Items.simba perhaps?


Items.simba is not used when withdrawing.

It reads the name or ID directly from the bankitem. I really have no clue why it won't withdraw Trout. :\

Bad Boy JH

2011-03-15 04:34:15

Is it possible that you are looking for RAW trout, not trout?

Yago

2011-03-15 17:24:22

noted/Unnoted? Does it matter when in the bank?