adc essa função na lib
function doRemoveItemsFromList(cid,items) -- by vodka local count = 0 if table.maxn(items) > 0 then for i = 1, table.maxn(items) do if getPlayerItemCount(cid,items[i][1]) >= items[i][2] then count = count + 1 end end end if count == table.maxn(items) then for i = 1, table.maxn(items) do doPlayerRemoveItem(cid,items[i][1],items[i][2]) end else return false end return true end
dps só usar assim:
function onSay(cid, words, param)
local remove = {{8262,1},{8263,1},{8264,1},{8265,1}}
if not doRemoveItemsFromList(cid, remove) then
doPlayerSendCancel(cid, 'Voce Precisa Das 4 Partes Do Amuleto Para Conseguir Formalo.') return true
end
doPlayerAddItem(cid,8266,1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doCreatureSay(cid, "!ShadownStaffQuest", TALKTYPE_ORANGE_1)
return true
end
exemplo:
local items = {{ID DO ITEM,QUANTIDADE}}
dá para adc mais
local items = {{2123,5},{2160,10},{2494,1}}



info
Grupo: Campones
Registrado: 12/06/12
Posts: 99
Reputação: +8
AI GALERA DO XTIBIA ESTOU CRIANDO UMA TALK QUE REMOVE ALGUNS ITENS E DA PARA O PLAYER UM OUTRO ITEM EU FIS CERTINHO QUANDO O PLAYER TEM OS QUATRO ITEMS ELE REMOVE CERTIN QUANDO NAO TEM NAO REMOVE E ELE NAO GANHA O NOVO ITEM ETC...
POREM QUANDO O PLAYER TEM APENAS A PRIMEIRA PARTE NA BAG O COMANDO FUNFA CERTINHO MSM ELE NAO TENDO AS 3 ULTIMAS PARTES
MINHA TALK AKI EMBAIXO SE ALGUEM PUDER AJUDAR VLW REP+
function onSay(cid, words, param)
if doPlayerRemoveItem(cid, 8262, 1) then
doPlayerRemoveItem(cid, 8263, 1)
doPlayerRemoveItem(cid, 8264, 1)
doPlayerRemoveItem(cid, 8265, 1)
doPlayerAddItem(cid,8266,1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doCreatureSay(cid, "!ShadownStaffQuest", TALKTYPE_ORANGE_1)
else
local str = "Voce Precisa Das 4 Partes Do Amuleto Para Conseguir Formalo."
doPlayerPopupFYI(cid, str)
doPlayerSendCancel(cid, 'Voce Precisa Das 4 Partes Do Amuleto Para Conseguir Formalo.')
return FALSE
end
end
DESDE JA AGRADECIDO
SHADOWNZINHO