problema quest

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

Nivel 4
Mesaje: 662
Membru din: 09 Ian 2017, 20:18
Server: Odisian2
Regat: Shinsoo
Aprecieri: 38  
Mulţumiri: 8  
 Contact:
Medalii

*Problemă/Întrebare: am un quest si imi tot da killed cand incerc sa-l compilez
Tipologie server(PvM / PvP):/
*Resursă folosită: /
*ServerFiles utilizat: clean
*Syserr:/
Poză:/
*Detalii suplimentare: am quest cu care ma chinui si nu pot sa-l fac functional,imi apare killed dupa ce folosesc comanda ./qc nume.quest
Daca poate cineva sa ma indrume raman recunoscator
quest

Cod: Selectaţi tot

quest item_drop begin
	state start begin
		function GetMapIndex()
			local maps = {
				1, 3, 5, 21, 23, 25, 41.
			}
			for m in maps do
				if pc.get_map_index() == maps[m] then
					return true
				end
			end
			return maps
		end
		when 9006.click with pc.is_gm() begin
		local options = ("Metin drop", "Anuleaza")
		if options == 1 then
			if item_drop.GetMapIndex() == true then
				if game.get_event_flag("item_open") == 0 then
					say("Hello "..pc.get_name().." ")
					say("Aici pui codul itm-ului si acesta va pica din pietrele metin si boss")
					say("!REGULA!NU ABUZA DE ACEASTA FUNCTIE!")
					say("Vrei sa faci un event de genu asta?")
					if select("da","nu") == 2 then 
					return 
				end
					say("Introdu codul itemului care doresti sa fie dropat la metine si boss!")
					kill_item = tonumber(input()) or 0
					if kill_item == 0 then
						say("Datele au fost introduse gresit. Incercati din nou!")
						return
					end
				say("Sansa de drop trebuie sa fie 1,2,3 sau maxim 4,care vrei sa fie sansa dropului?")
				kill_prozent = tonumber(input()) or 0
				if kill_prozent == 0 then
					say("Datele au fost introduse gresit. Incercati din nou!")
					return
				end
				say("Acest event trebuie sa tina cel mult 2 ore,adica 120 minute,cat timp vrei sa se dropeze? Minute!")
				zeit = tonumber(input()) or 0
				if zeit == 0 then
					say("Datele au fost introduse gresit. Incercati din nou!")
					return
				end
			game.set_event_flag("item_time", get_time()+zeit*60)
			game.set_event_flag("item_open", 1)
			notice_all("Item drop activat")
			notice_all("Itemul "..item_name(kill_item).." este dropabil la pietre metin si boss!.")
			notice_all("Pentru "..zeit.." Minute")
		else
			say("Eventul metin drop este deja activ")
			say("Opriti eventul?")
			if select("Da", "NU")==2 then 
			return 
		end
			game.set_event_flag("item_open", 0)
			kill_prozent, kill_item = nil, nil
		end
			when 8001.kill or 8002.kill or 8003.kill or 8004.kill or 8005.kill or 8005.kill or 8006.kill or 8007.kill or 8008.kill or 8009.kill or 8010.kill or 8011.kill or 8012.kill or 8013.kill or 8014.kill or 8024.kill or 8025.kill or 8026.kill or 8027.kill or 591.kill or 691.kill or 791.kill or 1093.kill or 1095.kill or 1901.kill or 1304.kill or 2091.kill or 2191.kill with game.get_event_flag("item_open") == 1 and not npc.is_pc()begin
			if kill_prozent == nil then game.set_event_flag("item_open", 0) 
			return 
		end
			if game.get_event_flag("item_time") < get_time() then
				notice_all("Eventul metin drop a luat sfarsit!")
				notice_all("Multumim tuturor ce sunt alatori de noi la evenimente!")
				game.set_event_flag("item_open", 0)
				kill_prozent, kill_item = nil, nil
			return
		end
			local s=number(1, 101-kill_prozent)
			if s==1 then
				game.drop_item_with_ownership(kill_item, 1)
			end
		end
			when login with game.get_event_flag("item_open") == 1 begin
			notice("Event item drop este activat")
			notice("Itemul "..item_name(kill_item).." este dropabil la metine si boss.")
		end
	end
https://www.facebook.com/Metin2Odisian/
Pvm-pvp max lv 105
Deschiderea are loc pe data de 27/06/2020
site http://odisian2.com/
Afișează semnătura
Avatar utilizator
adrianadyy
Nivel 4

Nivel 4
Mesaje: 662
Membru din: 09 Ian 2017, 20:18
Server: Odisian2
Regat: Shinsoo
Aprecieri: 38  
Mulţumiri: 8  
 Contact:
Medalii

Up

[ Postat de pe Android ] Imagine
https://www.facebook.com/Metin2Odisian/
Pvm-pvp max lv 105
Deschiderea are loc pe data de 27/06/2020
site http://odisian2.com/
Afișează semnătura
Avatar utilizator
adrianadyy
Nivel 4

Nivel 4
Mesaje: 662
Membru din: 09 Ian 2017, 20:18
Server: Odisian2
Regat: Shinsoo
Aprecieri: 38  
Mulţumiri: 8  
 Contact:
Medalii

up
https://www.facebook.com/Metin2Odisian/
Pvm-pvp max lv 105
Deschiderea are loc pe data de 27/06/2020
site http://odisian2.com/
Afișează semnătura
Avatar utilizator
adrianadyy
Nivel 4

Nivel 4
Mesaje: 662
Membru din: 09 Ian 2017, 20:18
Server: Odisian2
Regat: Shinsoo
Aprecieri: 38  
Mulţumiri: 8  
 Contact:
Medalii

uppp
https://www.facebook.com/Metin2Odisian/
Pvm-pvp max lv 105
Deschiderea are loc pe data de 27/06/2020
site http://odisian2.com/
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 item_drop begin
	state start begin
		function GetMapIndex()
			local maps = {
				1, 3, 5, 21, 23, 25, 41
			}
			for m = 1, table.getn(maps), 1 do
				if pc.get_map_index() == maps[m] then
					return true
				else
					return false
				end
			end
			return maps
		end
		when 9006.click with pc.is_gm() begin
		local options = select ("Metin drop", "Anuleaza")
			if options == 1 then
				if item_drop.GetMapIndex() == true then
					if game.get_event_flag("item_open") == 0 then
						say("Hello "..pc.get_name().." ")
						say("Aici pui codul itm-ului si acesta va pica din pietrele metin si boss")
						say("!REGULA!NU ABUZA DE ACEASTA FUNCTIE!")
						say("Vrei sa faci un event de genu asta?")
						if select("da","nu") == 2 then 
							return 
						end
						say("Introdu codul itemului care doresti sa fie dropat la metine si boss!")
						kill_item = tonumber(input()) or 0
						if kill_item == 0 then
							say("Datele au fost introduse gresit. Incercati din nou!")
							return
						end
						say("Sansa de drop trebuie sa fie 1,2,3 sau maxim 4,care vrei sa fie sansa dropului?")
						kill_prozent = tonumber(input()) or 0
						if kill_prozent == 0 then
							say("Datele au fost introduse gresit. Incercati din nou!")
							return
						end
						say("Acest event trebuie sa tina cel mult 2 ore,adica 120 minute,cat timp vrei sa se dropeze? Minute!")
						zeit = tonumber(input()) or 0
						if zeit == 0 then
							say("Datele au fost introduse gresit. Incercati din nou!")
							return
						end
						game.set_event_flag("item_time", get_time()+zeit*60)
						game.set_event_flag("item_open", 1)
						notice_all("Item drop activat")
						notice_all("Itemul "..item_name(kill_item).." este dropabil la pietre metin si boss!.")
						notice_all("Pentru "..zeit.." Minute")
					else
						say("Eventul metin drop este deja activ")
						say("Opriti eventul?")
						if select("Da", "NU")==2 then 
							return 
						end
						game.set_event_flag("item_open", 0)
						kill_prozent, kill_item = nil, nil
					end
				end
			end
		when 8001.kill or 8002.kill or 8003.kill or 8004.kill or 8005.kill or 8005.kill or 8006.kill or 8007.kill or 8008.kill or 8009.kill or 8010.kill or 8011.kill or 8012.kill or 8013.kill or 8014.kill or 8024.kill or 8025.kill or 8026.kill or 8027.kill or 591.kill or 691.kill or 791.kill or 1093.kill or 1095.kill or 1901.kill or 1304.kill or 2091.kill or 2191.kill with game.get_event_flag("item_open") == 1 and not npc.is_pc()begin
			if item_drop.GetMapIndex() == true then
				if kill_prozent == nil then game.set_event_flag("item_open", 0) then
					return 
				end
				if game.get_event_flag("item_time") < get_time() then
					notice_all("Eventul metin drop a luat sfarsit!")
					notice_all("Multumim tuturor ce sunt alatori de noi la evenimente!")
					game.set_event_flag("item_open", 0)
					kill_prozent, kill_item = nil, nil
					return
				end
				local s=number(1, 101-kill_prozent)
				if s==1 then
					game.drop_item_with_ownership(kill_item, 1)
				end
			end
		end
		when login with game.get_event_flag("item_open") == 1 begin
			notice("Event item drop este activat")
			notice("Itemul "..item_name(kill_item).." este dropabil la metine si boss.")
		end
	end
end
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
adrianadyy
Nivel 4

Nivel 4
Mesaje: 662
Membru din: 09 Ian 2017, 20:18
Server: Odisian2
Regat: Shinsoo
Aprecieri: 38  
Mulţumiri: 8  
 Contact:
Medalii

up,inca apar erori la compilare quest
syntax error
https://www.facebook.com/Metin2Odisian/
Pvm-pvp max lv 105
Deschiderea are loc pe data de 27/06/2020
site http://odisian2.com/
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

adrianadyy scrie: ↑19 Mai 2020, 14:18 up,inca apar erori la compilare quest
syntax error
Mda, am uitat sa adaug un "then". Am editat questul.
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
adrianadyy
Nivel 4

Nivel 4
Mesaje: 662
Membru din: 09 Ian 2017, 20:18
Server: Odisian2
Regat: Shinsoo
Aprecieri: 38  
Mulţumiri: 8  
 Contact:
Medalii

[RaffaeL] scrie: ↑19 Mai 2020, 15:34
adrianadyy scrie: ↑19 Mai 2020, 14:18 up,inca apar erori la compilare quest
syntax error
Mda, am uitat sa adaug un "then". Am editat questul.
Aceasi eroare

zzzz.quest:84:syntax error : [string "startpc . is_gm ( )"]:1: `)' expected near `,'
Abort (core dumped)
https://www.facebook.com/Metin2Odisian/
Pvm-pvp max lv 105
Deschiderea are loc pe data de 27/06/2020
site http://odisian2.com/
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

Eu nu vad nici o paranteza lipsa. Copiaza questul din code, si reinstaleaza-l.
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
adrianadyy
Nivel 4

Nivel 4
Mesaje: 662
Membru din: 09 Ian 2017, 20:18
Server: Odisian2
Regat: Shinsoo
Aprecieri: 38  
Mulţumiri: 8  
 Contact:
Medalii

[RaffaeL] scrie: ↑19 Mai 2020, 16:32 Eu nu vad nici o paranteza lipsa. Copiaza questul din code, si reinstaleaza-l.
asta am facut,am si sters tot din folderul object si am mai incercat o data si tot nu a functionat
https://www.facebook.com/Metin2Odisian/
Pvm-pvp max lv 105
Deschiderea are loc pe data de 27/06/2020
site http://odisian2.com/
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
400
Răspunsuri
4
Vizualizări
221
Răspunsuri
4
Vizualizări
412
Răspunsuri
3
Vizualizări
735

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

  • Informaţie
  • Cine este conectat

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