[Rezolvat]problema quest

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
Geo.RO
Nivel 3

Nivel 3
Mesaje: 424
Membru din: 05 Oct 2014, 18:32
Server: Metin2AnyLas
Regat: Jinno
Aprecieri: 0
Mulţumiri: 1  
 Contact:
Medalii

Salut
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
Avatar utilizator
Cryptex
Utilizator interzis !

Utilizator interzis !
Mesaje: 838
Membru din: 12 Mar 2014, 22:53
Server: SF CryptexV2 comming
Regat: Shinsoo
Aprecieri: 131  
Mulţumiri: 535  
Discord: Copiază ID
 Contact:
Medalii

Incearca acuma sa vezi, daca nu iti merge sa imi arati ce erori da !

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
				pc.removeitem(70021, 1)
									end
                            end
                    end
            end
    end
Imagine
Afișează semnătura
Avatar utilizator
DaRealPain
Fost Helper

Fost Helper
Mesaje: 1044
Membru din: 05 Oct 2014, 01:38
Server: Shiro2
Regat: Shinsoo
Aprecieri: 106  
Mulţumiri: 252  
Medalii

@Cryptex: las-o balta ~x(

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)
			pc.removeitem(70021, 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)
			pc.removeitem(70021, 1)
			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
Afișează semnătura
Avatar utilizator
Cryptex
Utilizator interzis !

Utilizator interzis !
Mesaje: 838
Membru din: 12 Mar 2014, 22:53
Server: SF CryptexV2 comming
Regat: Shinsoo
Aprecieri: 131  
Mulţumiri: 535  
Discord: Copiază ID
 Contact:
Medalii

DaRealPain scrie:@Cryptex: las-o balta ~x(

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)
				pc.removeitem(70021, 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)
				pc.removeitem(70021, 1)
        else
                return
                                end
                        end
                end
        end
Nu ma pricep la questuri :)) am incercat macar
Imagine
Afișează semnătura
Avatar utilizator
Geo.RO
Nivel 3

Nivel 3
Mesaje: 424
Membru din: 05 Oct 2014, 18:32
Server: Metin2AnyLas
Regat: Jinno
Aprecieri: 0
Mulţumiri: 1  
 Contact:
Medalii

Multumesc DaRealPain
Problema rezolvata.
Închis
Răspunsuri
5
Vizualizări
1374
Răspunsuri
4
Vizualizări
288
Răspunsuri
6
Vizualizări
343
Răspunsuri
3
Vizualizări
526

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 21 vizitatori