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
Online members
No members currently online