Postado Fevereiro 23, 2015 11 anos 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?
Postado Fevereiro 23, 2015 11 anos 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
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.