Cum pot rezolva bugu la ox ?

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

Nivel 4
Mesaje: 630
Membru din: 24 Mar 2014, 14:28
Server: Metin2HyperX
Regat: Jinno
Aprecieri: 34  
Mulţumiri: 4  
 Contact:
Medalii

buna , am ceva bug la ox sau nu stiu de la ce poate fii , pentru ca se misca ox-ul foarte lent..
Am SF : wordonline

Script Ox :
local stat = oxevent . get_status ( )
if stat == 0 then
say_title ( "Concursul OX" )
say ( "Incepe OX?" )
local s = select ( "Da" , "Nu" )
if s == 2 then return end
local v = oxevent . open ( )
if v == 0 then
say_title ( "Concursul OX" )
say ( "Nu am putut incarca oxquiz.lua ." )
return
elseif v == 1 then
say_title ( "Concursul OX" )
say ( "Concursul OX a inceput cu succes." )
server_timer ( "automatic1" , 10 * 60 , 113 )
notice_all ( "Lume Lume a inceput Concursul OX!" )
notice_all ( "Pentru a intra fugiti repede la Uriel" )
else
say ( "Error1" )
return
end
elseif stat == 1 then
say_title ( "Concursul OX" )
say ( "Usile inca sunt deschise." )
say ( "Jucatori intrati: " .. oxevent . get_attender ( ) .. " " )
say ( "" )
local s = select ( "Inchide intrarea" , "Inapoi" )
if s == 1 then
notice_all ( "Portile OX au fost inchise" )
oxevent . close ( )
end
elseif stat == 2 then
say_title ( "Concursul OX" )
say ( "Obtiuni:" )
local s = select ( "Intrebari OX" , "Premiu OX" , "Inchide OX" , "Anuleaza OX" , "Inapoi" )
if s == 1 then
local v = oxevent . quiz ( 1 , 80 )
if v == 0 then
say_title ( "Concursul OX" )
say ( "Error2" )
return
else
say_title ( "Concursul OX" )
say ( "Intrebare adresata cu succes!" )
return
end
elseif s == 2 then
say_title ( "Concursul OX" )
say ( "Te rog sa pui in ID de Item." )
local item_vnum = input ( )
say_title ( "Concursul OX" )
say ( "Introduceti numarul de articole." )
local item_count = input ( )
oxevent . give_item ( item_vnum , item_count )
say_title ( "Concursul OX" )
say ( " " .. oxevent . get_attender ( ) .. " Castigatorii au primit " .. item_count .. "x" )
say ( item_name ( item_vnum ) .. " emis." )
notice_all ( "Avem un castigator!!!!El a castigat- " .. item_count .. "x " .. item_name ( item_vnum ) )
elseif s == 3 then
oxevent . end_event ( )
notice_all ( "Concursul OX s-a terminat." )
notice_all ( "Toti jucatorii vor fi teleportati din aceasta harta" )
setskin ( 0 )
elseif s == 4 then
say_title ( "Concursul OX" )
say ( "Renuntarea la OX poate crea probleme." )
say ( "Sigur vrei sa faci asta?" )
local s = select ( "Da" , "Nu" )
if s == 1 then
oxevent . end_event_force ( )
end
elseif s == 5 then
return
end
elseif stat == 3 then
say_title ( "Concursul OX" )
say ( "Acum este adresata o intrebare." )
else
say_title ( "Concursul OX" )
say ( "Error4" )
return
en
Site : Metin2HyperX
WebSite : http://www.mt2hyperx.ro
Level maxim : 120
Descriere : PVP-Farm
Afișează semnătura
Avatar utilizator
☻Mega☻
Utilizator interzis !

Utilizator interzis !
Mesaje: 1106
Membru din: 27 Ian 2014, 13:29
Aprecieri: 0
Mulţumiri: 150  
Medalii

Schimbi tot ce ai in quest cu:

Cod: Selectaţi tot

quest oxevent_manager begin
    state start begin
		when login with pc.get_map_index() == 113 begin
			say("")
			say("")
			say("")
			say("")
			say_title("Competiþia OX")
			say("")
			say("Aici se adunã cele mai strãlucite minþi din cele")
			say("trei regate pentru concursul de inteligenþã.")
			say("În timpul acestui test, mai multe întrebari cu")
			say("privire la orice subiect va fi afiºate.")
			say("Deplasaþi-vã la O, dacã credeþi cã raspunsul,")
			say("este adevãrat iar dacã este fals la X.")
			say("Doar cei mai buni vor fi premiaþi!")
			say("")
		end
	
		when letter with pc.get_map_index() == 113 begin	
			send_letter("Pãrãseºte competiþia OX")		
		end
		
		when button or info begin		
			say_title("Pãrãseºte competiþia OX")
			say("Eºti sigur cã vrei sã pãrãseºti competiþia?")	
			say("")
			local s=select("Da","Nu")
			
				if s==2 then			
				send_letter("Pãrãseºte competiþia OX")
				return				
			end
			
			local empire = pc.get_empire()
			if empire== 1 then
				pc.warp(473900, 954600)
			elseif  empire == 2 then  
				pc.warp(63200, 166700)
			elseif  empire == 3 then 
				pc.warp(959600, 269700)
			end
		end
		
        when 20011.chat."Competiþia OX" begin	
            say_title("Uriel, învãþatul:")
			say("")
            say("Hey, tu de acolo! Da, da tu - vino pânã aici!") 
            say("Hai sã iþi arãt ceva interesant.")
            say("Competiþia OX. Eu te pot duce acolo.")
            say("Am auzit cã poþi caºtiga premii interesante!")
			say("")		
				wait()		
			if pc.get_level() < 35 then		
				say_title("Uriel, învãþatul:")
				say("")
				say("Îmi pare rãu, dar nu ai nivelul necesar pentru")
				say("a participa.")
				say("")
				say_reward("Nivelul minim pentru participare: 35")
				say("")
				return
			end			
            if game.get_event_flag("oxevent_status") == 0 then			
                say_title("Uriel, învãþatul:")
				say("")
                say("Momentan nu am auzit cã se desfãºoarã nici")
                say("o competiþie. Te voi anunþa eu când aflu ceva.")
                say("")												
            elseif game.get_event_flag("oxevent_status") == 1 then				
                say_title("Uriel, învãþatul:")
				say("")
                say("Doreºti sã participi la competiþie")
                say("sau doar sã te uiþi?")
				say("")		
				
                local s = select( "Particip" , "Spectator", "Înapoi" )
				
				if s == 1 then				
					say_title("Uriel, învãþatul:")
					say("")
					say("Imediat te voi duce la competiþie.")
                    say("Succes.")	
					say("")
					horse.unride()
					horse.unsummon()
                wait()
				pc.warp(896500, 24600)
				
					elseif s == 2 then				
						say_title("Uriel, învãþatul:")
						say("")
						say("Vrei sa fii doar spectator? Ok, alegerea ta.")
						say("Imediat vei fi teleportat.")
						say("")
						horse.unride()
						horse.unsummon()
                    wait()
                    pc.warp(896300, 28900)
                end
				
            elseif game.get_event_flag("oxevent_status") == 2 then			
				say_title("Uriel, învãþatul:")
				say("")
				say("Îmi pare rãu, dar competiþia a început deja ...")
                say("Dar, dacã vrei, mai poþi participa ca spectator.")
				say("")				
                local s = select( "Particip" , "Înapoi")
				
					if s == 1 then				
						say_title("Uriel, învãþatul:")
						say("")
						say("Imediat vei fi teleportat.")
						say("")
					horse.unride()
					horse.unsummon()
                    wait()
                    pc.warp(896300, 28900)
                end
            end
        end
		
		when 20358.chat."GM: Panou competiþie OX" with pc.is_gm() begin			
			local stat = oxevent.get_status()
			
			if stat == 0 then			
				say_gm_title("Panou competiþie OX")
				say_gm("")
				say_gm("Începe OX?")
				say_gm("")
				
			local s = select( "Da" , "Nu")
				if s==2 then return end
			local v = oxevent.open()
				if v == 0 then
					say_gm_title("Panou competiþie OX")
					say_gm("")
					say_gm("Nu am putut încãrca întrebãrile.")
					say_gm("")
					return					
				elseif v == 1 then				
					say_gm_title( "Panou competiþie OX" )
					say_gm("")
					say_gm("Competiþia OX a început.")
					say_gm("")					
					notice_all("Competiþia OX a început! Pentru a intra la concurs, mergeþi la Uriel.")
					notice_all("Succes tuturor!")					
				else
					say("Error1")
					return
				end
				
			elseif stat == 1 then		
				say_gm_title( "Panou competiþie OX" )
				say_gm("")
				say_gm("Porþile sunt încã deschise.")
				say_gm("Jucãtori intraþi: "..oxevent.get_attender())
				say_gm("")
				
				local s = select("Închide porþile", "Înapoi")
				
				if s == 1 then							
					notice_all("Porþile competiþiei OX au fost închise. Mult noroc participanþilor.")					
					oxevent.close()					
				end
				
			elseif stat == 2 then
				say_gm_title("Panou competiþie OX")
				say_gm("")			
				say_gm("Ce doreºti sã faci?")
				say_gm("")	
				local s = select("Adreseazã întrebare","Oferã un premiu participanþilor","Închide competiþia","Anuleazã competiþia","Înapoi")
			
				if s == 1 then
					local v = oxevent.quiz(1, 30)
					if v == 0 then				
					say_gm_title("Panou competiþie OX")
					say("")
					say_gm("Eroare adresare întrebare.")	
					say("")					
					return							
						else					
					say_gm_title("Panou competiþie OX")
					say("")
					say_gm("Întrebare adresatã cu succes.")	
					say("")					
					return					
				end										
				elseif s == 2 then				
					say_gm_title("Panou competiþie OX")
					say("")
					say_gm("Parolã:")
					say("")
					local sname = input()
					if sname == "m2" then 
			
					say_gm_title("Panou competiþie OX")
					say("")
					say_gm("Adaugã obiect:")
					say("")
					
					local item_vnum = input()
					
					say_gm_title("Panou competiþie OX")
					say("")
					say_gm("Adaugã numãr articole:")
					say("")
					
					local item_count = input()
					oxevent.give_item(item_vnum, item_count)
					
					say_gm_title("Panou competiþie OX" )
					say("")
					say_gm("Participanþii au primit "..item_name(item_vnum))
					say("")					
					
					notice_all("Participanþii competiþei OX au primit "..item_count.."x"..item_name(item_vnum))
					end				
				elseif s == 3 then									
					oxevent.end_event()					
					notice_all("Competiþia OX a luat sfârºit.")				
					setskin(0)					
				elseif s == 4 then				
					say_gm_title("Panou competiþie OX")
					say("")
					say_gm("Esti sigur cã vrei sã opreºti competiþia?")	
					say("")					
					local s = select("Da", "Nu")
					
					if s == 1 then				
						oxevent.end_event_force()
					end
				elseif s == 5 then
					return
				end
				
			elseif stat == 3 then			
					say_gm_title("Panou competiþie OX")
					say("")
					say_gm("Momentan este o întrebare adresatã.")	
					say("")
				else
					say_gm_title("Panou competiþie OX")
					say("")
					say_gm("Eroare.")
					say("")			
				return
			end
		end			
 
	end
end
Apoi intri in putty si scrii:
cd /usr/home/game/share/locale/germany/quest
./qc (Numele questului .quest !!)
Ultima oară modificat 09 Aug 2014, 14:54 de către ☻Mega☻, modificat 1 dată în total.
Imagine
Afișează semnătura
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Salut.

Inlocuieste scriptul existent cu acesta:

Cod: Selectaţi tot

local stat = oxevent . get_status ( ) 
if stat == 0 then 
say_title ( "Concursul OX" ) 
say ( "Incepe OX?" ) 
local s = select ( "Da" , "Nu" ) 
if s == 2 then return end 
local v = oxevent . open ( ) 
if v == 0 then 
say_title ( "Concursul OX" ) 
say ( "Nu am putut incarca oxquiz.lua ." ) 
return 
elseif v == 1 then 
say_title ( "Concursul OX" ) 
say ( "Concursul OX a inceput cu succes." ) 
server_timer ( "automatic1" , 10 * 60 , 113 ) 
notice_all ( "Lume Lume a inceput Concursul OX!" ) 
notice_all ( "Pentru a intra fugiti repede la Uriel" ) 
else 
say ( "Error1" ) 
return 
end 
elseif stat == 1 then 
say_title ( "Concursul OX" ) 
say ( "Usile inca sunt deschise." ) 
say ( "Jucatori intrati: " .. oxevent . get_attender ( ) .. " " ) 
say ( "" ) 
local s = select ( "Inchide intrarea" , "Inapoi" ) 
if s == 1 then 
notice_all ( "Portile OX au fost inchise" ) 
oxevent . close ( ) 
end 
elseif stat == 2 then 
say_title ( "Concursul OX" ) 
say ( "Obtiuni:" ) 
local s = select ( "Intrebari OX" , "Premiu OX" , "Inchide OX" , "Anuleaza OX" , "Inapoi" ) 
if s == 1 then 
local v = oxevent . quiz ( 1 , 30 ) 
if v == 0 then 
say_title ( "Concursul OX" ) 
say ( "Error2" ) 
return 
else 
say_title ( "Concursul OX" ) 
say ( "Intrebare adresata cu succes!" ) 
return 
end 
elseif s == 2 then 
say_title ( "Concursul OX" ) 
say ( "Te rog sa pui in ID de Item." ) 
local item_vnum = input ( ) 
say_title ( "Concursul OX" ) 
say ( "Introduceti numarul de articole." ) 
local item_count = input ( ) 
oxevent . give_item ( item_vnum , item_count ) 
say_title ( "Concursul OX" ) 
say ( " " .. oxevent . get_attender ( ) .. " Castigatorii au primit " .. item_count .. "x" ) 
say ( item_name ( item_vnum ) .. " emis." ) 
notice_all ( "Toti jucatorii care au raspuns corect au castigat - " .. item_count .. "x " .. item_name ( item_vnum ) ) 
elseif s == 3 then 
oxevent . end_event ( ) 
notice_all ( "Concursul OX s-a terminat." ) 
notice_all ( "Toti jucatorii vor fi teleportati din aceasta harta" ) 
setskin ( 0 ) 
elseif s == 4 then 
say_title ( "Concursul OX" ) 
say ( "Renuntarea la OX poate crea probleme." ) 
say ( "Sigur vrei sa faci asta?" ) 
local s = select ( "Da" , "Nu" ) 
if s == 1 then 
oxevent . end_event_force ( ) 
end 
elseif s == 5 then 
return 
end 
elseif stat == 3 then 
say_title ( "Concursul OX" ) 
say ( "Acum este adresata o intrebare." ) 
else 
say_title ( "Concursul OX" ) 
say ( "Error4" ) 
return 
end 
Succes.
Avatar utilizator
diabolik45
Nivel 4

Nivel 4
Mesaje: 630
Membru din: 24 Mar 2014, 14:28
Server: Metin2HyperX
Regat: Jinno
Aprecieri: 34  
Mulţumiri: 4  
 Contact:
Medalii

Le-am pus pe amn doua , si scriptul si questul .. am dat reboot dar tot la fel . Foarte lent.
Site : Metin2HyperX
WebSite : http://www.mt2hyperx.ro
Level maxim : 120
Descriere : PVP-Farm
Afișează semnătura
Avatar utilizator
☻Mega☻
Utilizator interzis !

Utilizator interzis !
Mesaje: 1106
Membru din: 27 Ian 2014, 13:29
Aprecieri: 0
Mulţumiri: 150  
Medalii

diabolik45 scrie:Le-am pus pe amn doua , si scriptul si questul .. am dat reboot dar tot la fel . Foarte lent.
Trebuie pus doar 1 din ele.
Imagine
Afișează semnătura
Avatar utilizator
diabolik45
Nivel 4

Nivel 4
Mesaje: 630
Membru din: 24 Mar 2014, 14:28
Server: Metin2HyperX
Regat: Jinno
Aprecieri: 34  
Mulţumiri: 4  
 Contact:
Medalii

Strong scrie:
diabolik45 scrie:Le-am pus pe amn doua , si scriptul si questul .. am dat reboot dar tot la fel . Foarte lent.
Trebuie pus doar 1 din ele.
Pai una e din sciptu 20358 si unu e quest din oxevent.quest
Dar le-am bagat am dat reboot am pornit ox-ul l-am lasat 2/3 secunde si vad ca merge bine acum :D . Rezolvat .
Site : Metin2HyperX
WebSite : http://www.mt2hyperx.ro
Level maxim : 120
Descriere : PVP-Farm
Afișează semnătura
Avatar utilizator
Mikkelsen
Mister Just4Metin

Mister Just4Metin
Mesaje: 2353
Membru din: 06 Mar 2014, 23:53
Server: ETH
Regat: Jinno
Aprecieri: 11  
Mulţumiri: 40  
 Contact:
Medalii

Rezolvat.

T/C!
Închis
Răspunsuri
10
Vizualizări
529
Răspunsuri
6
Vizualizări
434
Răspunsuri
8
Vizualizări
411
Răspunsuri
1
Vizualizări
255

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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