Jump to content
Sign in to follow this  
Magician

[Quest] Limpar Inventário

Recommended Posts

quest clean_inventory begin

state start begin

when 9005.chat."Limpar Inventário " begin

say_title(mob_name(npc.get_race()))

say("O Inventário que Escolheres será limpo.")

say("Presta atenção quando tomares a tua decisão.")

say_reward("Escolhe o Inventário que desejas Limpar.")

local s = select("Inventário - I","Inventário - II","Remover todos os items","Cancelar")

if s == 1 then

say("Desejas mesmo Limpar o Inventário I?")

if select("Sim","Não") == 2 then

return

end

clean_inventory.empty(0,44)

elseif s == 2 then

say("Desejas Mesmo Limpar o Inventário II?")

if select("Sim","Não") == 2 then

return

end

clean_inventory.empty(45,89)

elseif s == 3 then

say("Desejas Mesmo Eliminar todos os Items?")

say("equipments?")

if select("Sim","Não") == 2 then

return

end

clean_inventory.empty(0,89)

else

return

end

end

 

function empty(a,b)

for i=a, b do

item.select_cell(i)

item.remove()

end

end

end

end

 

Creditos : Metin2dev pela Publicação

 

DevelopeGames.esy.es Pela Tradução

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
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.