care ma ajuta si pe mine in legatura cu un quest de vip
Vreau ca dupa ce foloseste acel item pentru vip sa dispara din inventar.
Am incercat si eu dar nu reusesc
Cod: Selectaţi tot
quest premium_user begin
state start begin
when login with pc.getqf("premium_user")==1 and not npc.is_pc() begin
end
when 70021.use with pc.getqf("premium_user")==0 begin
say_title("Metin2AnyLas")
say("")
say("Cu acest obiect iti poti activa gradul de")
say("premium user.")
say("Gradul de premium user va ramane permanent.")
say("Poti dispune de urmatoarele:")
say("5000 HP + 10% Rezistente, Semi-Om, Patrundere, Critic")
say("daca iti activezi premium user.")
say_title("Esti sigur ca vrei sa fi premium user?")
local s = select("Da", "Nu")
if s == 1 then
pc.setqf("premium_user", 1)
affect.add_collect(apply.MAX_HP, 5000, 60*60*24*365*60)
affect.add_collect(apply.ATTBONUS_HUMAN, 10, 60*60*24*365*60)
affect.add_collect(apply.RESIST_SWORD, 10, 60*60*24*365*60)
affect.add_collect(apply.RESIST_TWOHAND, 10, 60*60*24*365*60)
affect.add_collect(apply.RESIST_DAGGER, 10, 60*60*24*365*60)
affect.add_collect(apply.RESIST_BELL, 10, 60*60*24*365*60)
affect.add_collect(apply.RESIST_FAN, 10, 60*60*24*365*60)
affect.add_collect(apply.RESIST_BOW, 10, 60*60*24*365*60)
affect.add_collect(apply.RESIST_FIRE, 10, 60*60*24*365*60)
affect.add_collect(apply.RESIST_MAGIC, 10, 60*60*24*365*60)
else
return
end
end
when 70021.use with pc.getqf("premium_user")==1 begin
say_title("Metin2AnyLas")
say("")
say("Vrei sa iti dezactivezi statutul de vip ? ")
local d = select("Da", "Nu")
if d == 1 then
pc.setqf("premium_user", 0)
affect.remove_collect(apply.MAX_HP, 5000, 60*60*24*365*60)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*24*365*60)
affect.remove_collect(apply.RESIST_SWORD, 10, 60*60*24*365*60)
affect.remove_collect(apply.RESIST_TWOHAND, 10, 60*60*24*365*60)
affect.remove_collect(apply.RESIST_DAGGER, 10, 60*60*24*365*60)
affect.remove_collect(apply.RESIST_BELL, 10, 60*60*24*365*60)
affect.remove_collect(apply.RESIST_FAN, 10, 60*60*24*365*60)
affect.remove_collect(apply.RESIST_BOW, 10, 60*60*24*365*60)
affect.remove_collect(apply.RESIST_FIRE, 10, 60*60*24*365*60)
affect.remove_collect(apply.RESIST_MAGIC, 10, 60*60*24*365*60)
else
return
end
end
end
end


