Postado Abril 27, 2018 7 anos 3 horas atrás, Zazeros disse: @gabriel28 @Luis360 Eu fiz umas modificadas e ta dando certo, exceto por uma coisa. Quando eu uso o item no meu inventario ele some (que é oq eu quero), mas se eu usa ele no chão, o item acaba não sumindo, vocês tem alguma ideia sobre isso? Passa o script. Qual TFS?
Postado Abril 27, 2018 7 anos Autor @yoroshigod Spoiler function onUse(cid, item) local magia = "test"local item_id = 1967 if getPlayerLearnedInstantSpell(cid, magia) then doPlayerSendTextMessage(cid,25,"You already learned everything from this scroll.")elseif doPlayerLearnInstantSpell(cid, magia) thenlocal pos = getCreaturePosition(cid) doSendMagicEffect(pos, 13) doPlayerRemoveItem(cid, item_uid, 1) doPlayerSendTextMessage(cid,19,"By reading this ancient scroll you learned the secrets of "..magia..".")endend
Postado Abril 27, 2018 7 anos @Zazeros function onUse(cid, item) local magia = "test" local item_id = 1967 if getPlayerLearnedInstantSpell(cid, magia) then doPlayerSendTextMessage(cid,25,"You already learned everything from this scroll.") elseif doPlayerLearnInstantSpell(cid, magia) then local pos = getCreaturePosition(cid) doSendMagicEffect(pos, 13) doPlayerRemoveItem(cid, item.uid, 1) doPlayerSendTextMessage(cid,19,"By reading this ancient scroll you learned the secrets of "..magia..".") end end
Postado Abril 27, 2018 7 anos local magia = "test" function onUse(cid, item) if getPlayerLearnedInstantSpell(cid, magia) then doPlayerSendTextMessage(cid,25,"You already learned everything from this scroll.") elseif doPlayerLearnInstantSpell(cid, magia) then local position = getCreaturePosition(cid) doSendMagicEffect(position, 13) doRemoveItem(item.uid) doPlayerSendTextMessage(cid,19,"By reading this ancient scroll you learned the secrets of "..magia..".") end end Nós somos aquilo que fazemos repetidamente. Excelência, não é um modo de agir, mas um hábito. Aristóteles
Postado Abril 27, 2018 7 anos Autor @gabriel28 Obrigado pela tentativa, mas continuava a não sumir o item no chão @Way20 Deu certo, o item é removido do chão, muito obrigado Se não for pedir muito..... Como eu colocaria uma restrição de vocação, que só uma especifica pode usar, e de lvl X
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.