Ir para conteúdo

Featured Replies

Postado
function onUse(cid, item, frompos, item2, topos)


if item.uid == 3010 then
queststatus = getPlayerStorageValue(cid,30010)
if queststatus == -1 then

if doPlayerRemoveItem(cid,5903,1) == TRUE then

doPlayerSendTextMessage(cid,22,"You have found Mage Addons.")
doPlayerAddOutfit(cid,138,1)
doPlayerAddOutfit(cid,138,2)
doPlayerAddOutfit(cid,130,1)
doPlayerAddOutfit(cid,130,2)
doSendMagicEffect(topos,12)
setPlayerStorageValue(cid,30010,1)
else
doPlayerSendTextMessage(cid, 22, "You need Ferumbras Hat to get this addons.")
end
else
doPlayerSendTextMessage(cid, 22, "You already have this addons.")

end


else
return 0
end

return 1
end

Eu quero remover dois itens não um, qualquer ajuda?

www.kalimawar.com Dedicate Server Canada 24H Online 8.60 Map Custom
 
1560441_1.png
 
 
Hosted By
 
logo.png
  • Respostas 5
  • Visualizações 212
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • local items = {{5903, 1}, {itemid, count}}      --Troque itemid pelo ID do item e count pela quantidade. function onUse(cid, item, frompos, item2, topos)     if item.uid == 3010 then         if getPla

Postado

local items = {{5903, 1}, {itemid, count}}      --Troque itemid pelo ID do item e count pela quantidade.
function onUse(cid, item, frompos, item2, topos)
    if item.uid == 3010 then
        if getPlayerStorageValue(cid, 30010) < 1 then
            for i = 1, #items do
                if getPlayerItemCount(cid, items[i][1]) < items[i][2] then
                    return doPlayerSendCancel(cid, "You do not have "..items[i][2].." "..getItemNameById(items[i][1])..".")
                end
            end
            doPlayerSendTextMessage(cid, 22, "You have found Mage Addons.")
            for i = 1, 2 do
                doPlayerAddOutfit(cid, 138, i)
                doPlayerAddOutfit(cid, 130, i)
            end
            for i = 1, #items do
                doPlayerRemoveItem(cid, items[i][1], items[i][2])
            end
            doSendMagicEffect(topos, 12)
            setPlayerStorageValue(cid, 30010, 1)
        else
            doPlayerSendTextMessage(cid, 22, "You already have this addons.")
        end
    end
    return true
end

não respondo pms solicitando suporte em programação/scripting

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo