antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
Tiago Gomes

[Quest] Da Item Por Gold

20 posts in this topic

Poderia fazer uma quest que da item por gold

 

por exemplo um npc que te pede dinheiro e da-te um item

Share this post


Link to post
Share on other sites
antiblock
Elveron

If pc.count_item(333) thenpc.remove_item(333, 1)pc.change_gold(500000)Provalvelmente é isto que queres, se tiver erros é normal, fiz no tablet kkk

Share this post


Link to post
Share on other sites

#Edit

 

Apaguem este post que escrevi.

Share this post


Link to post
Share on other sites

É dificil tou num tablet e ia dar merda xD

Share this post


Link to post
Share on other sites

Podes por a quest completa sff

quest nomedaquest begin    state start begin        when IDdeUmNPC.chat."blabla yang por bla bla item" begin            say_title("blabla yang por bla bla item")            say("")            say("Texto")            say("Texto")            say("Texto")            say("Texto")            say("")            say_reward("Tens a certeza que pretendes trocar o Yang pelo Item?")            local s = select("Sim", "Não")            if s == 1 then            pc.change_money(-yangquequeres)            pc.give_item(IDdoitem)            end                if s == 2 then            return            end        end    endend

Testa

Share this post


Link to post
Share on other sites
quest nomedaquest begin    state start begin        when IDdeUmNPC.chat."blabla yang por bla bla item" begin            say_title("blabla yang por bla bla item")            say("")            say("Texto")            say("Texto")            say("Texto")            say("Texto")            say("")            say_reward("Tens a certeza que pretendes trocar o Yang pelo Item?")            local s = select("Sim", "Não")            if s == 1 then            pc.change_money(-yangquequeres)            pc.give_item(IDdoitem)            end                if s == 2 then            return            end        end    endend
Testa
Corvo ele quer que se tiver um item o retire e lhe de gold

Edit: Fail pensei que fosse como fiz kkkkkk, usa a do corvo

Share this post


Link to post
Share on other sites

tira o gold mas nao da o item

quest nomedaquest begin    state start begin        when IDdeUmNPC.chat."blabla yang por bla bla item" begin            say_title("blabla yang por bla bla item")            say("")            say("Texto")            say("Texto")            say("Texto")            say("Texto")            say("")            say_reward("Tens a certeza que pretendes trocar o Yang pelo Item?")            local s = select("Sim", "Não")            if s == 1 then            pc.change_money(-yangquequeres)            pc.give_item2(IDdoitem)            end                if s == 2 then            return            end        end    endend

Agora já deve dar.

Share this post


Link to post
Share on other sites

Obrigado resulta perfeitamente

 

De nada, marca a minha ultima mensagem (com a quest a funcionar) como "Resolvido".

 

#Resolvido

#CloseRequest

Share this post


Link to post
Share on other sites

espera lá isto trabalha perfectamente mas mesmo que nao tenhas o dinheiro ele da-te o item

Share this post


Link to post
Share on other sites

espera lá isto trabalha perfectamente mas mesmo que nao tenhas o dinheiro ele da-te o item

quest nomedaquest begin    state start begin        when IDdeUmNPC.chat."blabla yang por bla bla item" begin            say_title("blabla yang por bla bla item")            say("")            say("Texto")            say("Texto")            say("Texto")            say("Texto")            say("")            say_reward("Tens a certeza que pretendes trocar o Yang pelo Item?")            local s = select("Sim", "Não")            if s == 1 and pc.get_gold()>=yangquequeres then            pc.change_money(-yangquequeres)            pc.give_item2(IDdoitem)            elseif s == 1 and pc.get_gold()<=yangquequeres then            say_title("blabla yang por bla bla item")            say("")            say("Não tens yang suficiente para a compra")            say("Volta quando tiveres yang suficiente.")            end                if s == 2 then            return            end        end    endend

Share this post


Link to post
Share on other sites

Poderia fazer uma quest que da item por gold

 

por exemplo um npc que te pede dinheiro e da-te um item

 

Chama-se loja amigo, já existe desde sempre no metin LAWL.

Share this post


Link to post
Share on other sites

Chama-se loja amigo, já existe desde sempre no metin LAWL.

 

Ele pode precisar dela para uma quest mais completa, assim fica de vez :D

Share this post


Link to post
Share on other sites
Sign in to follow this