cum activez eventul de halloween pe happines

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

Nivel 2
Mesaje: 251
Membru din: 30 Dec 2016, 15:13
Server: ro
Regat: Jinno
Aprecieri: 89  
Mulţumiri: 679  
Medalii

quest halloween_h2 begin
state start begin
function is_on()
if game.get_event_flag("halloween_h2") >= 1 then
return true
else
return false
end
end

when login with halloween_h2.is_on() == true begin
send_letter("*Este Halloween!")
syschat("|cFF90CAF9|h[Info-Event]:|h|r |cFF03F030|hEvenimentul de Halloween este in desfasurare!|h|r")
end
when button or info begin
addimage (5, 6, "halloween.png")
say_size(350, 350)
say("")
say("")
say("")
say_title("Este Halloween!")
say_white("")
say_white("Jack Dovleacul a decis sa deschida Halloween-ul!")
say_white("Jack va pune la dispozitie doua episoade!")
say_white("")
say_white("Pregateste-ti caracterul si porneste in distrugerea")
say_white("tuturor dovlecilor din acest tinut!")
say_white("")
local episod = select("Spune-mi despre episodul I","Spune-mi despre episodul II","Inchide")
if episod == 1 then
say_green("Episodul I - Dovlecii Halloween de nivel 75:")
say_white("Cei cu nivelul sub 75 v-a trebui sa distruga")
say_white("dovlecii din urmatoarele mape:")
say_reward("- Map1")
say_reward("- Map2")
say_reward("- Valea Seungryong")
say_reward("- Templul Hwang")
say_reward("- Desertul Yongbi")
say_reward("- Muntele Sohan")
say("")
wait()
send_letter("*Este Halloween!")
elseif episod == 2 then
say_green("Episodul II - Dovlecii Halloween de nivel 90:")
say_white("Cei cu nivelul peste 75 v-a trebui sa distruga")
say_white("dovlecii din urmatoarele mape:")
say_reward("- Padurea Neagra")
say_reward("- Padurea Rosie")
say_reward("- Death Valley")
say_reward("- Liho")
say("")
wait()
send_letter("*Este Halloween!")
else
send_letter("*Este Halloween!")
end
end

when 8060.kill with halloween_h2.is_on() == true begin
local level = pc.get_level()
if level >= 75 then
syschat("Doar cei cu nivelul mai mic de 75 au drop la acesti dovleci!")
else
local randomize = math.random(1,3)
if randomize == 1 then
pc.give_item2(30336, 1)
syschat("Acest dovleac a dropat 1 Dovleac de Halloween")
elseif randomize == 2 then
pc.give_item2(30336, 2)
syschat("Acest dovleac a dropat 2 Dovleci de Halloween")
elseif randomize == 3 then
pc.give_item2(30336, 3)
syschat("Acest dovleac a dropat 3 Dovleci de Halloween")
end
end
end

when 8061.kill with halloween_h2.is_on() == true begin
local level = pc.get_level()
if level < 75 then
syschat("Doar cei cu nivelul mai mare sau egal cu 75 au drop la acesti dovleci!")
else
local randomize = math.random(1,3)
if randomize == 1 then
pc.give_item2(30336, 1)
syschat("Acest dovleac a dropat 1 Dovleac de Halloween")
elseif randomize == 2 then
pc.give_item2(30336, 2)
syschat("Acest dovleac a dropat 2 Dovleci de Halloween")
elseif randomize == 3 then
pc.give_item2(30336, 3)
syschat("Acest dovleac a dropat 3 Dovleci de Halloween")
end
end
end

when 33009.chat."Este halloween!" begin
say_title("Este Halloween!")
say_size(350, 350)
say("Salut, "..pc.get_name().."! Cum iti merge?")
say("Aduna cati mai multi dovleci, in ei se afla")
say("premii minunate!")
say("")
say("In cazul in care nu esti interesat de aceste")
say("premii, imi poti aduce mie un anumit numar de")
say("dovleci pentru a-ti crea un costum la fel de")
say("minunant ca si al meu!")
say("")
local costumes = select("Spune-mi despre Costum","Inchide")
if costumes == 1 then
say_title("Costum de Halloween!")
say("")
say("Esti interesat? Ok.. Deci:")
say("Pentru a-ti crea un costum ca si al meu,")
say("am nevoie de 1000 de Dovleci!")
say("")
say("Costum iti ofera urmatoarele bonusuri:")
say_reward("10% corporal")
say_reward("valoare atacului +30")
say_reward("PV +2000")
say("")
local create = select("Creaza-mi te rog un costum!","Inchide")
if create == 2 then
return
else
say("Spune-mi sexul costumului")
say("")
local sex = select("Masculin","Feminin","Inchide")
if sex == 1 and pc.count_item(30336) < 1000 then
syschat("Nu ai suficienti dovleci la tine!")
return
elseif sex == 1 and pc.count_item(30336) >= 1000 then
pc.give_item2(41125)
pc.remove_item(30336, 1000)
end
if sex == 2 and pc.count_item(30336) < 1000 then
syschat("Nu ai suficienti dovleci la tine!")
return
elseif sex == 2 and pc.count_item(30336) >= 1000 then
pc.give_item2(41126)
pc.remove_item(30336, 1000)
end
if sex == 3 then
return
end
end
end
end
end
end
Ultima oară modificat 13 Oct 2017, 04:53 de către ZNF, modificat de 2 ori în total.
Motiv: #Cod adaugat in spoiler.
Avatar utilizator
Cleanupp123
Nivel 2

Nivel 2
Mesaje: 194
Membru din: 13 Aug 2017, 23:59
Aprecieri: 4  
Mulţumiri: 2  
Medalii

Cum il activezi ?
E quest .
Permisiuni 777 , te duci in putty cd /usr/home/game/share/locale/germany/quest sau cum ai tu
./qc nume.quest
Te duci in client /reload q
Verifica tab-urile , daca iti da dumped
Imagine
Afișează semnătura
Avatar utilizator
jimion94
Nivel 2

Nivel 2
Mesaje: 251
Membru din: 30 Dec 2016, 15:13
Server: ro
Regat: Jinno
Aprecieri: 89  
Mulţumiri: 679  
Medalii

Questu este instalat dar nu știu sa pornesc eventul în joc pe npc 33009 nu am panou pentru pornire/oprire

[ Postat de pe Android ] Imagine
Avatar utilizator
jimion94
Nivel 2

Nivel 2
Mesaje: 251
Membru din: 30 Dec 2016, 15:13
Server: ro
Regat: Jinno
Aprecieri: 89  
Mulţumiri: 679  
Medalii

Up

[ Postat de pe Android ] Imagine
Avatar utilizator
Chance
Mister Just4Metin

Mister Just4Metin
Mesaje: 1084
Membru din: 31 Dec 2014, 10:24
Server: Posibil
Regat: Jinno
Aprecieri: 5  
Mulţumiri: 35  
 Contact:
Medalii

Cod: Selectaţi tot

quest halloween_dr begin
    state start begin
        when login begin
            if game.get_event_flag("mondlicht_event") == 1 then
                notice("Eventul Halloween a început!")
                notice("ªansa dovleacului Halloween este " ..game.get_event_flag("mond_drop_chance").. "%")
            end
        end
        when kill begin
            local m_ind = pc.get_map_index()
            if npc.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("mondlicht_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(50095)
                            --game.drop_item(50095)
                        else
                        end
                    else
                    end
                elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 40 then
                    if game.get_event_flag("mondlicht_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(50095)
                            --game.drop_item(50095)
                        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("mondlicht_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(50095)
                            --game.drop_item(50095)
                        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("mondlicht_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(50095)
                            --game.drop_item(50095)
                        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("mondlicht_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(50095)
                            --game.drop_item(50095)
                        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("mondlicht_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(50095)
                            --game.drop_item(50095)
                        else
                        end
                    else
                    end
                end
            end
        end
        when 9003.chat."GM: Event drop Halloween" with pc.is_gm() begin
            if game.get_event_flag("mondlicht_event") == 1 then
                say_title("Administrare event:")
                say("")
                say("Eventul Halloween este pornit!")
                say("")
                say_reward("Opriþi event-ul?")
                local s=select("Da", "Nu")
                if s==1 then
                    say_title("Administrare event:")
                    say("")
                    say("Eventul a fost oprit.")
                    say("Mult noroc.")
               say("")
                    game.set_event_flag("mondlicht_event", 0)
                    char_log(0, "Eventul Halloween a fost oprit de " ..pc.get_name())
                    notice_all("Eventul Halloween s-a terminat!")
                elseif s==2 then
                    say_title("Administrare event:")
                    say("")
                    say("Ne mai revedem.")
               say("")
                end
            else
                say_title("Administrare event:")
                say("")
                say("Eventul Halloween este oprit!")
                say("")
                say_reward("Porniþi eventul?")
                local s=select("Da", "Nu")
                if s==1 then
                    say_title("Administrare event:")
                    say("")
                    say("Eventul a fost pornit.")
                    say("Mult noroc.")
               say("")
                    game.set_event_flag("mondlicht_event", 1)
                    char_log(0, "Eventul Halloween a fost pornit de " ..pc.get_name())
                    notice_all("Eventul Halloween a început!")
                    notice_all("Mult noroc ºi distracþie plãcutã!www.pro-area.com")
                elseif s==2 then
                    say_title("Administrare event:")
                    say("")
                    say("Ne mai revedem.")
               say("")
                end
            end
        end
        when 9003.chat."GM: Sansa drop Halloween" with pc.is_gm() begin
            if pc.get_name() == "[GA]Jo3y" or pc.get_name() == "[SGA]Cyry" then
                say_title("Administrare event:")
                say("")
                say("Cât de mare ar trebui sa fie ºansa de drop?")
                say("")
                say_reward("1-100")
                say("")
                local new_chance = tonumber(input())
                if new_chance < 0 or new_chance > 100 then
                    say_title("Administrare event:")
                    say("")
                    say("Numarul introdus este incorect!")
               say("")
                else
                    char_log(0, "Sansa drop Halloween a fost setata de " ..pc.get_name().. " la " ..new_chance.. "%")
                    game.set_event_flag("mond_drop_chance", new_chance)
                    say_title("Administrare event:")
                    say("")
                    say("ªansa de drop este setata la " ..new_chance.. " %.")
                    say("")
                    say("Ne mai revedem.")
               say("")
                end
            else
                say_title("Administrare event:")
                say("")
                say("Nu aveþi drepturile necesare pentru a efectua acest lucru.")
            say("")
            end
        end
    end
end
Avatar utilizator
jimion94
Nivel 2

Nivel 2
Mesaje: 251
Membru din: 30 Dec 2016, 15:13
Server: ro
Regat: Jinno
Aprecieri: 89  
Mulţumiri: 679  
Medalii

Mulțumesc credeam ca ești comanda de activare în questul meu

[ Postat de pe Android ] Imagine
Avatar utilizator
Titan
Metin Master

Metin Master
Mesaje: 2783
Membru din: 01 Iun 2015, 15:09
Server: In curand.
Regat: Chunjo
Aprecieri: 42  
Mulţumiri: 377  
  Rezolvări prob.: 3
Discord: Copiază ID
 Contact:
Medalii

rezolvat, mutat în probleme rezolvate!
Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
1241
Răspunsuri
1
Vizualizări
1012
Răspunsuri
8
Vizualizări
230

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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