Problema quest Halloween

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

Nivel 1
Mesaje: 97
Membru din: 06 Iul 2016, 12:00
Server: Artharos2
Regat: Jinno
Aprecieri: 39  
Mulţumiri: 2  
Discord: Copiază ID
Medalii

*Problemă: Nu porneste
Tipologie server: PVM Mediu
*Resursă folosită:
*ServerFiles utilizat: Royal
*Syserr:
Poză:
*Detalii suplimentare:Am bagat questul toate bune si frumoase,dar cand dau click pe el nu se intampla nimic
Quest :

Cod: Selectaţi tot

quest eveniment_halloween begin
    state start begin
	
        when login begin
            if game.get_event_flag("eveniment_halloween") == 1 then			
                notice("[Metin2Royal] > Evenimentul de halloween este activ.")				
            end
        end
				
        when kill with not npc.is_pc() and game.get_event_flag("eveniment_halloween") == 1 begin
                        local chance = number(1, 500)
                        local chance_max = game.get_event_flag("halloween_sansa_drop")
                      
						if chance <= chance_max then
						local r = math.random(1, 2) 
						if 1==r then 
							pc.give_item2(50095, 1) 
						elseif 2==r then 
							pc.give_item2(30322, 1)  
						else
                        end
                    else
                    end
					end
		

  		when letter with pc.is_gm() begin
			send_letter("+ GM: Eveniment halloween ")
		end
		
		when button or info begin
				
		if pc.is_gm() then
			
		say_gm_title ( "Eveniment halloween:" )
		say_gm ( "Ce doresti sã faci?[ENTER]" )		
		if game.get_event_flag("eveniment_halloween") == 0 then
		say_kingdom_red ( "Evenimentul este oprit.[ENTER]" )		
		else		
		say_kingdom_yellow ( "Evenimentul este pornit.[ENTER]" )	
		end
				
			local sname = input()
            if sname == "NL2" then 
			
			
				say_gm_title ( "PANOU DE ADMINISTRARE" )		
				say_gm ( "Selecteazã o optiune din meniul de de mai jos.[ENTER]" )

		   local s=select ( "Porneste evenimentul", "Opreste evenimentul", "Sansã aruncare", "Iesire" )
		   	   
		if s==1 then
		
				notice_all("[Metin2Royal] > Evenimentul de halloween a început.")						
				game.set_event_flag("eveniment_halloween", 1)					
                char_log(0, "eveniment_halloween_start from" ..pc.get_name())
				
			say_gm_title ( "Eveniment halloween:" )
			say_gm ( "Evenimentul a fost pornit.[ENTER]" )
		
				wait ()
				
				send_letter("+ GM: Eveniment halloween ")
				return
					
        elseif s==2 then
								
				notice_all("[Server]: Evenimentul de halloween a luat sfârsit.")
				game.set_event_flag("eveniment_halloween", 0)					
                char_log(0, "eveniment_halloween_end from" ..pc.get_name())
				
			say_gm_title ( "Eveniment halloween:" )
			say_gm ( "Evenimentul a luat sfârsit.[ENTER]" )
					
				wait ()
				
				send_letter("+ GM: Eveniment halloween ")
				return
						
		elseif s==3 then

				say_gm_title ( "Eveniment halloween:" )
				say_gm ( "Cât de mare doresti sã fie sansa de aruncare?[ENTER]" )
				say_orange ( "Între 1-500:[ENTER]" )
				
					local new_chance = tonumber(input())
					if new_chance < 0 or new_chance > 500 then
				
				say_gm_title ( "Eveniment halloween:" )
				say_gm ( "Valorile introduse nu sunt bune.[ENTER]" )
				
				wait ()
				
				send_letter("+ GM: Eveniment halloween ")
				return
	
                else
								
                    char_log(0, "eveniment_halloween_chance from" ..pc.get_name().. " to " ..new_chance.. "%")					
                    game.set_event_flag ( "halloween_sansa_drop", new_chance)
					
                say_gm_title ( "Eveniment halloween:" )
                say_orange ("Sansa a fost modificatã; sansã " ..new_chance.. "%.[ENTER]")
				
					wait ()		
					
					send_letter("+ GM: Eveniment halloween ")
					return
							
					end	
					
				elseif s==4 then	
				send_letter("+ GM: Eveniment halloween ")
				return
				
				end
				end
			end
		end
    end
end
Avatar utilizator
SmokeyOzN
Nivel 1

Nivel 1
Mesaje: 97
Membru din: 06 Iul 2016, 12:00
Server: Artharos2
Regat: Jinno
Aprecieri: 39  
Mulţumiri: 2  
Discord: Copiază ID
Medalii

Nimeni?
Avatar utilizator
Lion
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 508
Membru din: 03 Aug 2019, 22:12
Server: Honor2
Regat: Chunjo
Aprecieri: 135  
Mulţumiri: 122  
Medalii

Ai compilat questul? Ai dat reload q? Nu vad bine în poza ca sunt pe telefon

[ Postat de pe Android ] Imagine
Imagine
Oamenii sunt animale
Leul este regele animalelor
Deci sunt regele vostru drq
Afișează semnătura
Avatar utilizator
SmokeyOzN
Nivel 1

Nivel 1
Mesaje: 97
Membru din: 06 Iul 2016, 12:00
Server: Artharos2
Regat: Jinno
Aprecieri: 39  
Mulţumiri: 2  
Discord: Copiază ID
Medalii

Am aceeasi problema de cateva zile
Dupa o jumate de ora de cand am postat
Nu mai mergea nimic nimic nici un quest
Am dat reload q,nimic
Am dat reboot si si au revenit
Si asa se intampla de cateva zile
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
3
Vizualizări
369
Răspunsuri
7
Vizualizări
1323
Răspunsuri
2
Vizualizări
226
Răspunsuri
6
Vizualizări
1639

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

  • Informaţie
  • Cine este conectat

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