1
ayudaa !!! Jue Nov 23, 2017 2:42 am
joe123123

Miembro

tengo esta linea no se si sea aqui y si es me gustaria que me la modificaran para que los players no guarden nada en store inbox !! GRACIAS.
- Código:
-- If offer is item.
if offer.type == GameStore.OfferTypes.OFFER_TYPE_ITEM then
local inbox = player:getSlotItem(CONST_SLOT_STORE_INBOX)
if inbox and inbox:getEmptySlots() > offer.count then
for t = 1,offer.count do
inbox:addItem(offer.thingId, offer.count or 1)
end
else
return addPlayerEvent(sendStoreError, 250, player, GameStore.StoreErrors.STORE_ERROR_NETWORK, "Please make sure you have free slots in your store inbox.")
end
-- If offer is Stackable.
elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_STACKABLE then
local inbox = player:getSlotItem(CONST_SLOT_STORE_INBOX)
if inbox and inbox:getEmptySlots() > 0 then
local parcel = inbox:addItem(2596, 1)
local packagename = ''.. offer.count..'x '.. offer.name ..' package.'
if parcel then
parcel:setAttribute(ITEM_ATTRIBUTE_NAME, packagename)
for e = 1,offer.count do
parcel:addItem(offer.thingId, 1)
end
end
else
return addPlayerEvent(sendStoreError, 250, player, GameStore.StoreErrors.STORE_ERROR_NETWORK, "Please make sure you have free slots in your store inbox.")