Bio 1 Posted May 7, 2017 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
0 Cσяvσ⋆ 1,804 Posted May 7, 2017 "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
0 Bio 1 Posted May 7, 2017 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 .тιαgσ 624 Posted May 7, 2017 Quest remover begin State start begin When iddoitem.use begin item.remove(iddoitem) end end end Ou então isto 1 Bio reacted to this Share this post Link to post Share on other sites
0 Renanhideki 3 Posted June 28, 2017 (edited) 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 June 28, 2017 by Renanhideki (see edit history) Share this post Link to post Share on other sites
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