Ir para conteúdo

Featured Replies

Postado
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?

  • Respostas 12
  • Visualizações 1.6k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • local magia = "test" function onUse(cid, item) if getPlayerLearnedInstantSpell(cid, magia) then doPlayerSendTextMessage(cid,25,"You already learned everything from this scroll.") elseif doPlayerL

  • @Zazeros  Usei o script do Way   local magia = "test" local voc = XX function onUse(cid, item) if getPlayerVocation(cid) == voc then if getPlayerLearnedInstantSpell(cid, magia) then doPl

Postado
  • 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) 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

@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
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 

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo