volcomfaria
New Member
- Joined
- Dec 30, 2008
- Messages
- 4
- Reaction score
- 1
Hey guys!
I would like to know how to add the weight of all items. Can someone help me?
In case I'm trying to do in this script:
I would like to know how to add the weight of all items. Can someone help me?
In case I'm trying to do in this script:
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local items = {}
if player:getVocation():getId() == 1 then
items = {2190,8820,8819}
end
for i= 1, #items do
player:addItem(items)
end
items = nil
return true
end