Ir para conteúdo

Featured Replies

Postado

@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
		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
    else
	doPlayerSendCancel(cid, "apenas a vocacao XX pode usar esse item.")
    end
end

 

  • 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

  • 6 months later...

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.6k

Informação Importante

Confirmação de Termo