Bug sosete

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

Nivel 6
Mesaje: 952
Membru din: 17 Dec 2013, 15:03
Server: Metin2Andromeda
Regat: Jinno
Aprecieri: 294  
Mulţumiri: 183  
Medalii

Buna ziua j4m , am un bug la mos craciun cu sosetele , trebuie sa ii duc 5 sosete si cand i le duc , nu le ia ... imi raman in inventar sosetele , o rezolvare?
Afișează semnătura
Avatar utilizator
Braxy
Quest Creator

Quest Creator
Mesaje: 293
Membru din: 04 Mai 2016, 17:13
Regat: Jinno
Aprecieri: 7  
Mulţumiri: 228  
Medalii

Posteaza questul aici , am sa il rezolv eu.
Avatar utilizator
Kirige
Utilizator interzis !

Utilizator interzis !
Mesaje: 102
Membru din: 23 Noi 2016, 13:41
Server: Standby
Regat: Shinsoo
Aprecieri: 0
Mulţumiri: 538  
Medalii

darkallience3 scrie:Buna ziua j4m , am un bug la mos craciun cu sosetele , trebuie sa ii duc 5 sosete si cand i le duc , nu le ia ... imi raman in inventar sosetele , o rezolvare?
Dar iti da ceva daca le duci , sau nu zice nimic , si nici nu le ia sosetele ?
pune questul aici si te ajut eu
Avatar utilizator
darkallience3
Nivel 6

Nivel 6
Mesaje: 952
Membru din: 17 Dec 2013, 15:03
Server: Metin2Andromeda
Regat: Jinno
Aprecieri: 294  
Mulţumiri: 183  
Medalii

iBraxy scrie:Posteaza questul aici , am sa il rezolv eu.

Cod: Selectaţi tot

quest santa begin 
    state start begin 
        when 20031.chat."Event de Craciun: Panoul de control" with pc.is_gm() begin 
            say_title("Eventul de craciun:") 
            if game.get_event_flag("xmas")==0 then 
                say("Eventul de craciun este oprit.") 
                say("Vrei sa il pornesti?") 
                local s1 = select("Da", "Nu") 
                if s1 == 1 then 
                    say("Eventul a fost oprit!") 
                    game.set_event_flag("xmas", 1) 
                    notice_all("Eventul de craciun tocmai ce a inceput") 
                    notice_all("Incepand de acum puteti dropa") 
                    notice_all("Sosete si cadouri de la toti monstrii")
               notice_all("Sarbatori fericite tuturor")
               command("e xmas_snow 1")
               command("e xmas_song 1")
                else 
                    return 
                end 
            else 
                say("Eventul de craciun este pornit") 
                say("Vrei sa il opresti?") 
                local s2 = select("Da", "Nu") 
                if s2 == 1 then 
                    say("Eventul a fost pornit!") 
                    game.set_event_flag("xmas", 0) 
                    notice_all("Eventul de craciun a luat sfarsit")
               notice_all("Speram ca ati castigat premii folositoare")
               command("e xmas_snow 0")
               command("e xmas_song 0")
                end 
            end 
        end 
        when kill with game.get_event_flag("xmas")==1 and not npc.is_pc() begin 
            local drop = number(1, 75) 
            if drop == 1 then 
                game.drop_item_with_ownership(50125, 1) 
            elseif drop == 2 then 
                game.drop_item_with_ownership(50115, 1) 
            elseif drop == 3 then 
                game.drop_item_with_ownership(50010, 1) 
            end 
        end 
        when 20031.chat."Sosete" begin 
            say_title("Mos Craciun") 
            if pc.count_item(50010) <= 4 then 
                say("Salut ".. pc.get_name()) 
                say("Am o mica problema ... nu stiu cum sa iti spun") 
                say("dar din greseala mi-am pierdut toate sosetele!") 
                say("De fapt vroiam sa le umplu cu cadouri si sa") 
                say("le dau copiilor ... dar acum ...")  
                wait() 
                say("Daca gasesti sosetele te rog sa mi le aduci.") 
                say("Vei primi si o recompensa pentru ele!")
            say("")
            say_reward("Iti voi da o recompensa in schimbul a 5 sosete!")
            else 
                say("Ach mi-ai gasit sosetele?") 
                say("Ce frumos!Mi le poti da?") 
                say("Vei primi o recompensa") 
                say("in schimb!") 
                local s3 = select("Poftim sosetele", "Nu iti dau nimic") 
                if s3 == 1 then 
                    say_title("Mos craciun:") 
                    say("Iti multumesc mult!") 
                    say("Stai sa caut in sac") 
                    say("sa vad ce am pentru") 
               say("tine ...")
                    wait() 
                    local beutel = number(1, 5) 
                    if beutel == 1 then 
                        say("Ce frumos!Ai primit Costum de Craciun F ") 
                        pc.give_item2(41138, 1) 
                    elseif beutel == 2 then 
                        say("Ce frumos!Ai primit Costum de Craciun M") 
                        pc.give_item2(41137, 1) 
                    elseif beutel == 3 then 
                        say("Ce frumos!Ai primit Costum de Craciun(verde)") 
                        pc.give_item2(41139, 1) 
                    elseif beutel == 4 then 
                        say("Ce frumos!Ai primit Rochie de Craciun(verde)") 
                        say("Succes") 
                        pc.give_item2(41140, 1) 
                    end 
                end 
            end 
        end 
    end 
end
Afișează semnătura
Avatar utilizator
Kirige
Utilizator interzis !

Utilizator interzis !
Mesaje: 102
Membru din: 23 Noi 2016, 13:41
Server: Standby
Regat: Shinsoo
Aprecieri: 0
Mulţumiri: 538  
Medalii

baga-le astea ale mele
quest brad :
quest christmas_tree begin
    state start begin
   when 20032.click or 20033.click or 20034.click begin
       say_title("Pom de Craciun:")
      say("")
       local s = select("Sosete", "Informatii..", "De unde pot lua sosete", "Inchide")
       if s==1 then
      -- Socke aufhängen:
         if pc.level >= 30 then
            if pc.getqf("put_sock_count") >= 50 then
            say("Dispui de 50 de sosete?")
            say("in caz contrar..imi pare rau!")  
            else
            if pc.countitem("50010") >= 1 then
               pc.setqf("put_sock_count", pc.getqf("put_sock_count") + 1)
               pc.removeitem("50010", 1)
               say("Ai atasat o soseta corespunzator")
               say("Inchide ochii pentru 3 secunde,")
               say("si pune-ti o dorinta")
               say("[DELAY value;400]. . .[/DELAY]")
               say("Dorinta ta e indeplinita?")
               say("")
               say("Numarul maxim de sosete pe care")
               say("le poti aduce este : 50")

               pc.give_item_from_special_item_group("50010")
            else
               say("Nu ai adus sosete? Foarte rau..")
            end
            end
         else
            say("Salut micutule..")
            say("Ce mai faci?")
            say("Vad ca inca nu esti de matur")
            say("Ai nevoie de nivel 30 minim")
            say("revino cand ai nivel 30...")
            say("In orice caz,iti urez:")
            say_title("Craciun Fericit!")
         end
       elseif s==2 then
            -- Informationen über den Baum:
            say("Ai nevoie de INFO ...")
            say("in privinta pomului?")
            say("Ok,asculta-ma")
            say("Lumea spune ca el nu lipseste ")
            say("in ajunul Craciunului atunci cand")
            say("lumea este fericita.")
            
       elseif s==3 then
            -- Wo bekommt man socken?:
            say("Ho Ho Ho")
            say("Cred ca vrei sa stii de ce sunt aici")
            say("Stai linistit micutule,am sa-ti explic:")
            say("")
            say("Te duci intr-o mapa cu moobi")
            say("apropiati de nivelul tau.")
            say("Omori cat de multi poti,")
            say("strangi sosete si le aduci la mine.")
            say("Eu drept rasplata te voi recompensa")
            say("cu premii pe masura")
            say("cadouri,arme,armuri..iteme in general.")
            say("")
            say("Sper ca am fost destul de clar.")
            say_title("Echipa Metin2Limit iti ureaza Craciun Fericit!")

       elseif s==4 then
         return
      end
   end
    end
end
Quest Mos:
quest christmas_santa begin
    state start begin
   when santa.click begin
       local intro_msg = locale.christmas_santa.intro_msg

       local skill_book_buy_cost = locale.christmas_santa.skill_book_buy_cost
       local skill_book_msg = locale.christmas_santa.skill_book_msg
       local skill_book_sold_out_msg = locale.christmas_santa.skill_book_sold_out_msg

       local hairdye_buy_cost = locale.christmas_santa.hairdye_buy_cost
       local hairdye_msg = locale.christmas_santa.hairdye_msg
       local hairdye_sold_out_msg = locale.christmas_santa.hairdye_sold_out_msg

       local not_enough_money = locale.christmas_santa.not_enough_money

       local SKILL_BOOK_GROUP = 50300
       local HAIRDYE_GROUP = 70201

       say(intro_msg)
       local s = select(locale.christmas_santa.want_skillbook,locale.christmas_santa.want_hairdye,locale.christmas_santa.no_need)   
       if s==1 then
      local r = npc.get_remain_skill_book_count();
      if r>0 then
          say(skill_book_msg)
          local s = select(locale.christmas_santa.select_buy, locale.christmas_santa.select_stop)
          if s==1 then
         if npc.get_remain_skill_book_count()>0 then
             if pc.gold >= skill_book_buy_cost then
            npc.dec_remain_skill_book_count()
            pc.changegold(-skill_book_buy_cost)
            pc.give_item_from_special_item_group(SKILL_BOOK_GROUP)
             else
            say(not_enough_money)
             end
         else
             say(skill_book_sold_out_msg)
         end
          end
      else
          say(skill_book_sold_out_msg)
      end
       elseif s==2 then
      local r = npc.get_remain_hairdye_count();
      if r>0 then
          say(hairdye_msg)
          local s = select(locale.christmas_santa.select_buy, locale.christmas_santa.select_stop)
          if s==1 then
         if npc.get_remain_hairdye_count()>0 then
             if pc.gold >= hairdye_buy_cost then
            npc.dec_remain_hairdye_count()
            pc.changegold(-hairdye_buy_cost)
            pc.give_item_from_special_item_group(HAIRDYE_GROUP)
             else
            say(not_enough_money)
             end
         else
             say(hairdye_sold_out_msg)
         end
          end
      else
          say(hairdye_sold_out_msg)
      end
       elseif s==3 then
      say(locale.christmas_santa.bye_msg)
       end
   end
    end
end
Le instalam si dupa instalarea acestora le putem modifica dropul din "special_item_group"
vnum soseta : 50010
Cadourile date de Mos Craciun le modificam din:
vnum : 50300 / 70201
Eventul il Activam in felul urmator:
/e xmas_tree 1 (Event activat )
/e xmas_tree 0 (Event dezactivat)
/e xmas_santa 1 (Activare Mos Craciun) 
/e xmas_santa 0 (Dezactivare Mos Craciun)
Query Mos Craciun / Pom de Craciun
20031   ?????   Moº Crãciun   5   1   0   1      NOMOVE   0      STUN,SLOW,CURSE,TERROR   0      2   0   0   0   0   10   20   120   3   1   4   8   7   4   100   100   0   2000   150   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0                     0   0   0   0   0
20032   ????? ??   Brad de Craciun   5   1   0   1      NOMOVE   0      STUN,SLOW,CURSE,TERROR   0      2   0   0   0   0   10   20   120   3   1   4   8   7   4   100   100   0   2000   150   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0                     0   0   0   0   0
20033   ????? ??   Brad de Craciun   5   1   0   1      NOMOVE   0      STUN,SLOW,CURSE,TERROR   0      2   0   0   0   0   10   20   120   3   1   4   8   7   4   100   100   0   2000   150   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0                     0   0   0   0   0
20034   ????? ??   Brad de Craciun   5   1   0   1      NOMOVE   0      STUN,SLOW,CURSE,TERROR   0      2   0   0   0   0   10   20   120   3   1   4   8   7   4   100   100   0   2000   150   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0                     0   0   0   0   0
Avatar utilizator
Braxy
Quest Creator

Quest Creator
Mesaje: 293
Membru din: 04 Mai 2016, 17:13
Regat: Jinno
Aprecieri: 7  
Mulţumiri: 228  
Medalii

Cod: Selectaţi tot

quest santa begin 
    state start begin 
        when 20031.chat."Event de Craciun: Panoul de control" with pc.is_gm() begin 
            say_title("Eventul de craciun:") 
            if game.get_event_flag("xmas")==0 then 
                say("Eventul de craciun este oprit.") 
                say("Vrei sa il pornesti?") 
                local s1 = select("Da", "Nu") 
                if s1 == 1 then 
                    say("Eventul a fost oprit!") 
                    game.set_event_flag("xmas", 1) 
                    notice_all("Eventul de craciun tocmai ce a inceput") 
                    notice_all("Incepand de acum puteti dropa") 
                    notice_all("Sosete si cadouri de la toti monstrii")
               notice_all("Sarbatori fericite tuturor")
               command("e xmas_snow 1")
               command("e xmas_song 1")
                else 
                    return 
                end 
            else 
                say("Eventul de craciun este pornit") 
                say("Vrei sa il opresti?") 
                local s2 = select("Da", "Nu") 
                if s2 == 1 then 
                    say("Eventul a fost pornit!") 
                    game.set_event_flag("xmas", 0) 
                    notice_all("Eventul de craciun a luat sfarsit")
               notice_all("Speram ca ati castigat premii folositoare")
               command("e xmas_snow 0")
               command("e xmas_song 0")
                end 
            end 
        end 
		
        when kill with game.get_event_flag("xmas")==1 and not npc.is_pc() begin 
            local drop = number(1, 75) 
            if drop == 1 then 
                game.drop_item_with_ownership(50125, 1) 
            elseif drop == 2 then 
                game.drop_item_with_ownership(50115, 1) 
            elseif drop == 3 then 
                game.drop_item_with_ownership(50010, 1) 
            end 
        end 
		
        when 20031.chat."Sosete" begin 
            say_title("Mos Craciun") 
            if pc.count_item(50010) >= 5 then 
                say("Salut ".. pc.get_name()) 
                say("Am o mica problema ... nu stiu cum sa iti spun") 
                say("dar din greseala mi-am pierdut toate sosetele!") 
                say("De fapt voiam sa le umplu cu cadouri si sa") 
                say("le dau copiilor ... dar acum ...")  
                wait() 
                say("Daca gasesti sosetele te rog sa mi le aduci.") 
                say("Vei primi si o recompensa pentru ele!")
            say("")
            say_reward("Iti voi da o recompensa in schimbul a 5 sosete!")
            else 
                say("Ach mi-ai gasit sosetele?") 
                say("Ce frumos!Mi le poti da?") 
                say("Vei primi o recompensa") 
                say("in schimb!") 
                local s3 = select("Poftim sosetele", "Nu iti dau nimic") 
                if s3 == 1 then 
                    say_title("Mos craciun:") 
                    say("Iti multumesc mult!") 
                    say("Stai sa caut in sac") 
                    say("sa vad ce am pentru") 
               say("tine ...")
                    wait() 
                    local beutel = number(1, 5) 
                    if beutel == 1 then 
                        say("Ce frumos!Ai primit Costum de Craciun F ") 
                        pc.give_item2(41138, 1) 
						pc.remove_item(50010, 5)
                    elseif beutel == 2 then 
                        say("Ce frumos!Ai primit Costum de Craciun M") 
                        pc.give_item2(41137, 1) 
						pc.remove_item(50010, 5)
                    elseif beutel == 3 then 
                        say("Ce frumos!Ai primit Costum de Craciun(verde)") 
                        pc.give_item2(41139, 1) 
						pc.remove_item(50010, 5)
                    elseif beutel == 4 then 
                        say("Ce frumos!Ai primit Rochie de Craciun(verde)") 
                        say("Succes") 
                        pc.give_item2(41140, 1) 
						pc.remove_item(50010, 5)
                    end 
                end 
            end 
        end 
    end 
end
Avatar utilizator
darkallience3
Nivel 6

Nivel 6
Mesaje: 952
Membru din: 17 Dec 2013, 15:03
Server: Metin2Andromeda
Regat: Jinno
Aprecieri: 294  
Mulţumiri: 183  
Medalii

Vreau doar sa imi ia sosetele atata tot , ca nu ia sosetele mosul
Afișează semnătura
Avatar utilizator
Braxy
Quest Creator

Quest Creator
Mesaje: 293
Membru din: 04 Mai 2016, 17:13
Regat: Jinno
Aprecieri: 7  
Mulţumiri: 228  
Medalii

Ti-am dat rezolvare mai sus , exact asta i-am spus acelui baiat :3
Avatar utilizator
r_tw1x1
Membru Club

Membru Club
Mesaje: 2278
Membru din: 06 Mar 2015, 18:33
Server: Nirvana3
Regat: Jinno
Aprecieri: 228  
Mulţumiri: 3790  
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

Subiect marcat ca fiind rezolvat. Topic închis!
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
9
Vizualizări
366
Răspunsuri
5
Vizualizări
398
Răspunsuri
2
Vizualizări
246
Răspunsuri
3
Vizualizări
399

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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