antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
GU1LH3RME

Bloquear o uso de um item especifico!!!

Question

Ola a todos, venho mais uma vez pedir a ajuda de vcs, estou querendo bloquear o uso do pergaminho do retorno em um mapa especifico, ou ate mesmo quando se teleportar para o mapa especifico o item seja excluído do inventario, pesquisei aqui no forum e vi umas quest mais não funcionou e venho pedir se alguém tem uma quest funcional que não permita o uso e que exclua o item caso for para o mapa e no inventario estiver o item.

 

Desde já agradeço qualquer ajuda!

 

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0
quest block_pergaminho begin

state start begin

when xxxx.use with pc.get_map_index() == xxx

syschat("Não podes usar o pergaminho neste mapa.")

end

end

end

Testa esta aqui...

Share this post


Link to post
Share on other sites
antiblock
https://arwen2.global/
  • 0
4 horas atrás, close2sky disse:

quest block_pergaminho begin

state start begin

when xxxx.use with pc.get_map_index() == xxx

syschat("Não podes usar o pergaminho neste mapa.")

end

end

end

Testa esta aqui...

Essa quest não irá funcionar em itens que não sejam usados por quests. Têm de ter o type ITEM_QUEST ou a flag QUEST_MULTIPLE qualquer coisa.

 

Para remover é:

when login with pc.get_map_index() == XX

if pc.count_item(XX) > 0 then

pc.remove_item(XX, pc.count_item(XX))

Share this post


Link to post
Share on other sites
  • 0

Sabe como bloqueia o uso de cavalos em encruzilhada?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now