- Joined
- Jan 4, 2009
- Messages
- 118
JASS:
function Test takes nothing reruns nothing
local unit u = GetManipulatingUnit()
local integer i
local integer quantity
loop
if(quantity < 3)then
RemoveItem(GetIndexItemOfTypeFromInventory(u, 'rat6')
set quantity = quantity + 1
endif
set i = i + 1
exitwhen i = bj_MAX_INVENTORY
endloop
endfunction
I try to coding jass to remove item equal 3 time on that above code ...
but It's not work ???
Tell me plz.