antiblock
Elveron
  • Chatbox

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

[Quest] Preciso de uma quest

Question

Preciso de uma quest que exclua TODOS os itens(independente da quantidade) de um determinado  ID quando eu clicar em um outro item ou NPC.

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

"todos os items de um determinado ID quando eu clicar em um outro item ou NPC"

 

Ficamos em quê?

 

- Remover todos os itens com um ID dado

- Remover todos os itens de um utilizador com o ID dado

- Remover todos os itens com o ID igual àquele que foi clicado

- Remover todos os itens com um ID imaginário ao clicar num NPC

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0
5 horas atrás, Cσяvσ⋆ disse:

"todos os items de um determinado ID quando eu clicar em um outro item ou NPC"

 

Ficamos em quê?

 

- Remover todos os itens com um ID dado

- Remover todos os itens de um utilizador com o ID dado

- Remover todos os itens com o ID igual àquele que foi clicado

- Remover todos os itens com um ID imaginário ao clicar num NPC

- Remover todos os itens com um ID dado

Share this post


Link to post
Share on other sites
  • 0

Quest remover begin

State start begin

When iddoitem.use begin

item.remove(iddoitem)

end

end

end

 

Ou então isto 

 

Share this post


Link to post
Share on other sites
  • 0

 

        essa quest estava a funcionar na file  happinnes, eu desativei pois não quero esse sistema ....

ela funciona da seguinte maneira , você clica no npc ele te da opções de 4 inventarios , 

caso não queira ou tenha todos inventarios , basta tirar .  então , ele limpa todo o inventario selecionado ou

os 4 inventarios .

Ah precisa traduzir .

 

 

 

 

 

quest clean_inventory_happ begin
    state start begin
        when 20041.chat."Curãþã Inventarul" begin
            local f = "BlockItem"
            if pc.getf(f,"Enable") == 1 then
                say_title2("Protecþie Iteme[ENTER]")
                say2("Protecþia pentru iteme este activatã.")
                say2("Dezactiveaz-o pentru a putea face acest lucru![ENTER]")
                return
            end
            say_title("Prostul Satului")
            say_size(350, 350)
            say("La mine, îþi poþi face ordine ºi curãþenie printre lucruri!")
            say("Doreºti sã îþi goleºti o paginã sau mai multe din inventar?[ENTER]")
            say_reward("Alege pagina inventarului pe care doreºti sã o goleºti.[ENTER]")
            local clean = select("Inventarul - I","Inventarul - II","Inventarul - III","Inventarul - IV","Sterge-mi toate itemele","Închide")
            if clean == 1 then
                say_title("Prostul Satului[ENTER]")
                say("Eºti sigur cã doreºti sã ºtergi toate itemele din Inventar I?[ENTER]")
                local aprob = select("Da","Nu")
                if aprob == 2 then
                    return
                else
                    clean_inventory_happ.empty(0,44)
                end
            end
            if clean == 2 then
                say_title("Prostul Satului[ENTER]")
                say("Eºti sigur cã doreºti sã ºtergi toate itemele din Inventar II?[ENTER]")
                local aprob = select("Da","Nu")
                if aprob == 2 then
                    return
                else
                    clean_inventory_happ.empty(45,89)
                end
            end
            if clean == 3 then
                say_title("Prostul Satului[ENTER]")
                say("Eºti sigur cã doreºti sã ºtergi toate itemele din Inventar III?[ENTER]")
                local aprob = select("Da","Nu")
                if aprob == 2 then
                    return
                else
                    clean_inventory_happ.empty(90,134)
                end
            end
            if clean == 4 then
                say_title("Prostul Satului[ENTER]")
                say("Eºti sigur cã doreºti sã ºtergi toate itemele din Inventar IV?[ENTER]")
                local aprob = select("Da","Nu")
                if aprob == 2 then
                    return
                else
                    clean_inventory_happ.empty(135,179)
                end
            end
            if clean == 5 then
                say_title("Prostul Satului[ENTER]")
                say("Eºti sigur cã doreºti sã ºtergi toate itemele?")
                say("Itemele echipate nu vor fi ºterse![ENTER]")
                local aprob = select("Da","Nu")
                if aprob == 2 then
                    return
                else
                    clean_inventory_happ.empty(0,179)
                end
            end
        end

        function empty(a,b)
            for i=a, b do
            item.select_cell(i)
            item.remove()
            end
        end
    end
end

Edited by Renanhideki (see edit history)

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