[Problema]Ev craciun

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
VaLy12345
Nivel 2

Nivel 2
Mesaje: 179
Membru din: 17 Mar 2015, 23:04
Server: ROD2
Regat: Jinno
Aprecieri: 74  
Mulţumiri: 0
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

*Problemă/Întrebare:Problema timp ev
Tipologie server:pvm pvp
*Resursă folosită:Quest craciun by DaRealPains
*ServerFiles utilizat:****
*Syserr:****
Poză:****
*Detalii suplimentare:Salut grup , am si eu o problema , Activez evenimentul si cam dupa 15 minute se dezactiveaza automat , ce sa-i fac ? Mai jos aveti questul

Cod: Selectaţi tot

quest santa begin 
    state start begin 
        when 20384.chat."Event de Craciun: Panoul de control" 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 pornit!") 
                    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("Echipa Etern2 va ureaza 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 oprit!") 
                    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(50035, 1) 
            elseif drop == 2 then 
                game.drop_item_with_ownership(50036, 1) 
            elseif drop == 3 then 
                game.drop_item_with_ownership(50010, 1) 
            end 
        end 
        when 20384.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 Esarfa de Craciun ") 
                        pc.give_item2(85025, 1)
			pc.removeitem("50010", 5) 
                    elseif beutel == 2 then 
                        say("Ce frumos!Ai primit Atacul Dragonului - 7 Zile") 
                        pc.give_item2(930, 1)
			pc.removeitem("50010", 5)  
                    elseif beutel == 3 then 
                        say("Ce frumos!Ai primit Apãrarea Dragonului - 7 Zile") 
                        pc.give_item2(931, 1)
			pc.removeitem("50010", 5) 
                    elseif beutel == 4 then 
                        say("Ce frumos!Ai primit Amuletã de Ciocolatã - 7 Zile") 
                        say("Succes") 
                        pc.give_item2(71172, 1)
			pc.removeitem("50010", 5) 
                    else 
                        say("Ce frumos!Ai primit Extindere Inventar - x25") 
                        say("Succes") 
                        pc.give_item2(72320, 25)
			pc.removeitem("50010", 5) 
                    end 
                end 
            end 
        end 
    end 
end
Fondator - Maeve2!https://maeve2.ro/!
Afișează semnătura
Avatar utilizator
Ley
Nivel 9

Nivel 9
Mesaje: 1934
Membru din: 09 Feb 2017, 22:30
Server: Colossus2
Regat: Jinno
Aprecieri: 221  
Mulţumiri: 1338  
Medalii

Subiect inactiv.
Imagine
Afișează semnătura
Închis
Răspunsuri
2
Vizualizări
491
Răspunsuri
6
Vizualizări
539
Răspunsuri
2
Vizualizări
314

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

  • Informaţie
  • Cine este conectat

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