wizinx
Active Member
Hello everyone, I have a script to add an addon when using the item, but my problem is that I want to make it take an amount of X of items to add it.
example: for the druid outfit ---> 100 wolf paw and bear paws.
this is the script i currently have, i have tried but give up, thanks.
example: for the druid outfit ---> 100 wolf paw and bear paws.
this is the script i currently have, i have tried but give up, thanks.
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
player:sendTextMessage(MESSAGE_INFO_DESCR, "You received the Bear Paw outfit.")
player:getPosition():sendMagicEffect(13)
player:addOutfitAddon(169, 3)
player:addOutfitAddon(168, 3)
Item(item.uid):remove(1)
return true
end