probleme oua de paste

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Avatar utilizator
DjFly
Utilizator interzis !

Utilizator interzis !
Mesaje: 286
Membru din: 13 Iul 2016, 07:53
Server: www.metin2suprem.ro
Regat: Jinno
Aprecieri: 36  
Mulţumiri: 2  
 Contact:
Medalii

Care ma ajuta si pe mine cu o problema exemplu am 100 oua de paste dau clik pe ele si dispar toate cum fac sa nu mai dispar toate ?

quest oua begin
state start begin
when 50160.use begin
local box = {
--treeee --
45139, 45140, 45141, 45142, 71135, 71136, 71137, 71138, 71139, 71140, 71141, 71158, 80005, 71143, 50123, 31019, 31045,
}
local give,a = number(1, 1),{}
local items
for i = 1, give do
items = number(1, table.getn(box))
table.insert(a,i,box[items])
end
table.foreach(a,
function(i,l)
pc.give_item2(l)
end
)
item.remove()
end
end
end
Ultima oară modificat 18 Mar 2017, 22:40 de către DjFly, modificat de 3 ori în total.
Intra si tu pe Metin2 Suprem PvM-PvP By [OwN]Bestia
Afișează semnătura
Avatar utilizator
dica121
Nou Venit

Nou Venit
Mesaje: 9
Membru din: 23 Oct 2014, 12:59
Server: Metin2Ro
Regat: Shinsoo
Aprecieri: 3  
Mulţumiri: 0
Medalii

pai daca le mananci
Avatar utilizator
d3MenTuL
Nivel 3

Nivel 3
Mesaje: 361
Membru din: 19 Iul 2015, 23:13
Regat: Chunjo
Aprecieri: 47  
Mulţumiri: 567  
 Contact:
Medalii

quest?!
Discord: d3MenTuL#7372
Între timp pe chat-ul Just4Metin
Imagine
Imagine
Imagine
Imagine
Imagine
Afișează semnătura
Avatar utilizator
DjFly
Utilizator interzis !

Utilizator interzis !
Mesaje: 286
Membru din: 13 Iul 2016, 07:53
Server: www.metin2suprem.ro
Regat: Jinno
Aprecieri: 36  
Mulţumiri: 2  
 Contact:
Medalii

am revenit cu quest
Intra si tu pe Metin2 Suprem PvM-PvP By [OwN]Bestia
Afișează semnătura
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

Cod: Selectaţi tot

quest oua begin
state start begin
when 50160.use begin 
local box = {
--treeee --
45139, 45140, 45141, 45142, 71135, 71136, 71137, 71138, 71139, 71140, 71141, 71158, 80005, 71143, 50123, 31019, 31045,
}
local give,a = number(1, 1),{}
local items
for i = 1, give do
items = number(1, table.getn(box))
table.insert(a,i,box[items])
end
table.foreach(a,
function(i,l)
pc.give_item2(l)
end
)
pc.remove_item2(50160,1)
end
end
end 
Am corectat questul in asa fel incat sa-ti ia cate un ou.
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
DjFly
Utilizator interzis !

Utilizator interzis !
Mesaje: 286
Membru din: 13 Iul 2016, 07:53
Server: www.metin2suprem.ro
Regat: Jinno
Aprecieri: 36  
Mulţumiri: 2  
 Contact:
Medalii

multumesc il instalez si revin cu raspunsul
Intra si tu pe Metin2 Suprem PvM-PvP By [OwN]Bestia
Afișează semnătura
Avatar utilizator
DjFly
Utilizator interzis !

Utilizator interzis !
Mesaje: 286
Membru din: 13 Iul 2016, 07:53
Server: www.metin2suprem.ro
Regat: Jinno
Aprecieri: 36  
Mulţumiri: 2  
 Contact:
Medalii

Mutant scrie:

Cod: Selectaţi tot

quest oua begin
state start begin
when 50160.use begin 
local box = {
--treeee --
45139, 45140, 45141, 45142, 71135, 71136, 71137, 71138, 71139, 71140, 71141, 71158, 80005, 71143, 50123, 31019, 31045,
}
local give,a = number(1, 1),{}
local items
for i = 1, give do
items = number(1, table.getn(box))
table.insert(a,i,box[items])
end
table.foreach(a,
function(i,l)
pc.give_item2(l)
end
)
pc.remove_item2(50160,1)
end
end
end 
Am corectat questul in asa fel incat sa-ti ia cate un ou.
am instalat quest si la fel le ia pe toate ouale din 100 de oua
Intra si tu pe Metin2 Suprem PvM-PvP By [OwN]Bestia
Afișează semnătura
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

DjFly scrie:
Mutant scrie:

Cod: Selectaţi tot

quest oua begin
state start begin
when 50160.use begin 
local box = {
--treeee --
45139, 45140, 45141, 45142, 71135, 71136, 71137, 71138, 71139, 71140, 71141, 71158, 80005, 71143, 50123, 31019, 31045,
}
local give,a = number(1, 1),{}
local items
for i = 1, give do
items = number(1, table.getn(box))
table.insert(a,i,box[items])
end
table.foreach(a,
function(i,l)
pc.give_item2(l)
end
)
pc.remove_item2(50160,1)
end
end
end 
Am corectat questul in asa fel incat sa-ti ia cate un ou.
am instalat quest si la fel le ia pe toate ouale din 100 de oua
Ai dat ./qc nume.quest si /rel q in joc sau reboot?
Avatar utilizator
Pongo A.K.A Titan
Utilizator interzis !

Utilizator interzis !
Mesaje: 2028
Membru din: 01 Sep 2016, 16:08
Regat: Jinno
Aprecieri: 35  
Mulţumiri: 261  
 Contact:
Medalii

quest eventdepaste_tree begin
        state start begin
when 30129.click begin
         local SOCK_VNUM = 50162
         say("Echipa just4metin.ro iti ureaza PasteFericit!")
         local s = select("Am Oul pentru Epurila!","Nu am niciun Ou!","În ce consta evenimentul?")
         if s==1 then
  -- Socke abgeben
  if pc.level >= 20 then
          if pc.getqf("put_sock_count") >= 100 then
   say("Imi pare rau! Ai dus Deja 100 de oua lui Iepurila!")
          else
   if pc.countitem(SOCK_VNUM) >= 1 then
           pc.setqf("put_sock_count", pc.getqf("put_sock_count") + 1)
           pc.removeitem(SOCK_VNUM, 1)
           say("Iepurila Tia adus un cadou frumos!")

           pc.give_item_from_special_item_group(SOCK_VNUM)
   else
           say("Îmi pare rau nu ai Oua de pAste")
   end
          end
  else
          say("Din pacate trebuie sa ai level 20 pentru a duce oua la iepurila!")
  end
         elseif s==2 then
  -- Keine Socke
  say("Pacat! Cu toate acestea va uram Paste Fericit!")
         elseif s==3 then
  -- Info
  say_reward("Eveniment De Pasti!")
  say("Atâta timp cât acest Iepure exista orice monstru va dropa Oua si aveti posibilitatea sa le Duceti Lui iepurila!")
         end
end
        end
end
si drop-ul pt event-ul de paste
quest event_oua begin
    state start begin
        when login begin
            if game.get_event_flag("oua_event") == 1 then
                notice("Evenimentul : Eveniment De Pasti ~ Activ !")
            end
        end
        when kill begin
            local m_ind = pc.get_map_index()
            if nu ai pentru ce.is_pc() then
            else
                if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 20 then
                    if game.get_event_flag("oua_event") == 1 then
                        local chance = number(1, 100)
                        local chance_max = game.get_event_flag("mond_drop_chance")
                        if chance <= chance_max then
                            pc.give_item2(50162)
                            --game.drop_item(50162)
                        else
                        end
                    else
                    end
                elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 40 then
                    if game.get_event_flag("oua_event") == 1 then
                        local chance = number(1, 100)
                        local chance_max = game.get_event_flag("mond_drop_chance")
                        if chance <= chance_max then
                            pc.give_item2(50162)
                            --game.drop_item(50162)
                        else
                        end
                    else
                    end
                elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 60 then
                    if game.get_event_flag("oua_event") == 1 then
                        local chance = number(1, 100)
                        local chance_max = game.get_event_flag("mond_drop_chance")
                        if chance <= chance_max then
                            pc.give_item2(50162)
                            --game.drop_item(50162)
                        else
                        end
                    else
                    end
                elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 70 then
                    if game.get_event_flag("oua_event") == 1 then
                        local chance = number(1, 100)
                        local chance_max = game.get_event_flag("mond_drop_chance")
                        if chance <= chance_max then
                            pc.give_item2(50162)
                            --game.drop_item(50162)
                        else
                        end
                    else
                    end
                elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 90 then
                    if game.get_event_flag("oua_event") == 1 then
                        local chance = number(1, 100)
                        local chance_max = game.get_event_flag("mond_drop_chance")
                        if chance <= chance_max then
                            pc.give_item2(50162)
                            --game.drop_item(50162)
                        else
                        end
                    else
                    end
                elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 250 then
                    if game.get_event_flag("oua_event") == 1 then
                        local chance = number(1, 100)
                        local chance_max = game.get_event_flag("mond_drop_chance")
                        if chance <= chance_max then
                            pc.give_item2(50162)
                            --game.drop_item(50162)
                        else
                        end
                    else
                    end
                end
            end
        end
        when 20087.chat."<GM> Eveniment De Pasti" with pc.is_gm() begin
            if game.get_event_flag("oua_event") == 1 then
                say_title("Administrare Eveniment:")
                say("")
                say("Eveniment Cu Oua De pasti : ~ Activ ")
                say("")
                say_reward("Event Beenden?")
                local s=select("Da", "Nu")
                if s==1 then
                    say_title("Administrare Eveniment:")
                    say("")
                    say("Evenimentul a luat sfârsit .")
                    say("~ Pe data viitoare !")
                    game.set_event_flag("oua_event", 0)
                    char_log(0, "Oua_event_end from" ..pc.get_name())
                    notice_all("Eveniment Cu Oua De pasti ~ Terminat.")
                elseif s==2 then
                    say_title("Administrare Eveniment:")
                    say("")
                    say("~ Pe curând !")
                end
            else
                say_title("Administrare Eveniment:")
                say("")
                say("Eveniment Cu Oua De pasti: ~ Închis ")
                say("")
                say_reward("Start Eveniment?")
                local s=select("Da", "Nu")
                if s==1 then
                    say_title("Administrare Eveniment:")
                    say("")
                    say("Evenimentul ~ A Început ! .")
                    say("~ Succes la strâns mai multe Ouaaaaa !")
                    game.set_event_flag("oua_event", 1)
                    char_log(0, "Oua_event_start from" ..pc.get_name())
                    notice_all("Eveniment Cu Oua De pasti ~ A Început !")
                elseif s==2 then
                    say_title("Administrare Eveniment:")
                    say("")
                    say("~ Pe curând !")
                end
            end
        end
        when 20087.chat."<GM> Eveniment Cu Oua De pasti" with pc.is_gm() begin
            if pc.get_name() == "[SA]DEM0Nrau" or pc.get_name() == "...."or pc.get_name() == "....."then
                say_title("Administrare Eveniment:")
                say("")
                say("Cat de mult sã fie dropul acestora ?")
                say("")
                say_reward("Între 1-100")
                say("")
                local new_chance = tonumber(input())
                if new_chance < 0 or new_chance > 100 then
                    say_title("Administrare Eveniment:")
                    say("")
                    say("Introducere incorectã ~")
                else
                    char_log(0, "Oua_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
                    game.set_event_flag("mond_drop_chance", new_chance)
                    say_title("Administrare Eveniment:")
                    say("")
                    say("Dropul actual " ..new_chance.. " setat.")
                    say("~ Pe curând !")
                end
            else
                say_title("Administrare Eveniment:")
                say("")
                say("Nu ai dreptul pentru a executa evenimentul .")
            end
        end
    end
end
 ! Mesaj de la: Pongo A.K.A Titan
Cand credeati ca am sa mor
M-am ridicat ca un invingator
Afișează semnătura
Avatar utilizator
DjFly
Utilizator interzis !

Utilizator interzis !
Mesaje: 286
Membru din: 13 Iul 2016, 07:53
Server: www.metin2suprem.ro
Regat: Jinno
Aprecieri: 36  
Mulţumiri: 2  
 Contact:
Medalii

[Tupeu] scrie:
DjFly scrie:
Mutant scrie:

Cod: Selectaţi tot

quest oua begin
state start begin
when 50160.use begin 
local box = {
--treeee --
45139, 45140, 45141, 45142, 71135, 71136, 71137, 71138, 71139, 71140, 71141, 71158, 80005, 71143, 50123, 31019, 31045,
}
local give,a = number(1, 1),{}
local items
for i = 1, give do
items = number(1, table.getn(box))
table.insert(a,i,box[items])
end
table.foreach(a,
function(i,l)
pc.give_item2(l)
end
)
pc.remove_item2(50160,1)
end
end
end 
Am corectat questul in asa fel incat sa-ti ia cate un ou.
am instalat quest si la fel le ia pe toate ouale din 100 de oua
Ai dat ./qc nume.quest si /rel q in joc sau reboot?
da lam instalat din nou
Intra si tu pe Metin2 Suprem PvM-PvP By [OwN]Bestia
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
46
Răspunsuri
3
Vizualizări
1061
Răspunsuri
4
Vizualizări
292
Răspunsuri
21
Vizualizări
1178

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

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