problema quest

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

Nivel 3
Mesaje: 439
Membru din: 16 Mar 2015, 22:26
Server: metin2elysium
Regat: Chunjo
Aprecieri: 68  
Mulţumiri: 6  
Medalii

Salut am o problema la un quest l-am editat cum am vrut eu dar acum nu mai pot sa-l instalez poate stie careva sa il rezolve va rog mult
quest start_joc begin
state start begin
when login begin
local hostname = "joc"
local name = pc . get_name ( )
pc.give_item2 ( "50187" , 1 )
notice_all ( name .. " (Razboinic) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 1 then
pc . give_item2 ( "50212" , 1 )
notice_all ( name .. " (Ninja) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 2 then
pc . give_item2 ( "50187" , 1 )
notice_all ( name .. " (Sura) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 3 then
pc . give_item2 ( "50213" , 1 )
notice_all ( name .. " (Saman) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 4 then
pc . give_item2 ( "50196" , 1 )
notice_all ( name .. " (Lycan) A intrat pe " .. hostname )
end
pc.change_money ( 500000 )
pc.change_alignment ( 2000 )
set_state ( "__COMPLETE" )
end
end
state __COMPLETE begin
end
end
primesc eroarea asta la instalare
Avatar utilizator
.Execute
Nivel 5

Nivel 5
Mesaje: 754
Membru din: 04 Aug 2015, 18:37
Server: un server
Regat: Chunjo
Aprecieri: 79  
Mulţumiri: 26  
Discord: Copiază ID
Medalii

Încearcă-l pe ăsta :

quest start_joc begin
state start begin
when login begin
local hostname = "joc"
local name = pc . get_name ( )
pc.give_item2 ( "50187" , 1 )
notice_all ( name .. " (Razboinic) A intrat pe " .. hostname )
if pc . get_job ( ) == 1 then
pc . give_item2 ( "50212" , 1 )
notice_all ( name .. " (Ninja) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 2 then
pc . give_item2 ( "50187" , 1 )
notice_all ( name .. " (Sura) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 3 then
pc . give_item2 ( "50213" , 1 )
notice_all ( name .. " (Saman) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 4 then
pc . give_item2 ( "50196" , 1 )
notice_all ( name .. " (Lycan) A intrat pe " .. hostname )
end
pc.change_money ( 500000 )
pc.change_alignment ( 2000 )
set_state ( "__COMPLETE" )
end
end
state __COMPLETE begin
end
end

PS: Ştiu că nu am voie să postez în secţiunea asta.
Imagine
Afișează semnătura
Avatar utilizator
andreidey
Nivel 3

Nivel 3
Mesaje: 439
Membru din: 16 Mar 2015, 22:26
Server: metin2elysium
Regat: Chunjo
Aprecieri: 68  
Mulţumiri: 6  
Medalii

.Execute scrie:Încearcă-l pe ăsta :

quest start_joc begin
state start begin
when login begin
local hostname = "joc"
local name = pc . get_name ( )
pc.give_item2 ( "50187" , 1 )
notice_all ( name .. " (Razboinic) A intrat pe " .. hostname )
if pc . get_job ( ) == 1 then
pc . give_item2 ( "50212" , 1 )
notice_all ( name .. " (Ninja) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 2 then
pc . give_item2 ( "50187" , 1 )
notice_all ( name .. " (Sura) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 3 then
pc . give_item2 ( "50213" , 1 )
notice_all ( name .. " (Saman) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 4 then
pc . give_item2 ( "50196" , 1 )
notice_all ( name .. " (Lycan) A intrat pe " .. hostname )
end
pc.change_money ( 500000 )
pc.change_alignment ( 2000 )
set_state ( "__COMPLETE" )
end
end
state __COMPLETE begin
end
end

PS: Ştiu că nu am voie să postez în secţiunea asta.
nu e bun... UP !
Avatar utilizator
.Execute
Nivel 5

Nivel 5
Mesaje: 754
Membru din: 04 Aug 2015, 18:37
Server: un server
Regat: Chunjo
Aprecieri: 79  
Mulţumiri: 26  
Discord: Copiază ID
Medalii

quest start begin
state start begin
when login begin
local hostname = "joc"
local name = pc . get_name ( )
if pc . get_job ( ) == 0 then
pc.give_item2 ( "50187" , 1 )
notice_all ( name .. " (Razboinic) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 1 then
pc . give_item2 ( "50212" , 1 )
notice_all ( name .. " (Ninja) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 2 then
pc . give_item2 ( "50187" , 1 )
notice_all ( name .. " (Sura) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 3 then
pc . give_item2 ( "50213" , 1 )
notice_all ( name .. " (Saman) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 4 then
pc . give_item2 ( "50196" , 1 )
notice_all ( name .. " (Lycan) A intrat pe " .. hostname )
end
pc.change_money ( 500000 )
pc.change_alignment ( 2000 )
set_state ( "__COMPLETE" )
end
end
state __COMPLETE begin
end
end

Încearcă-l pe ăsta.
Îmi scăpase un if.
Imagine
Afișează semnătura
Avatar utilizator
andreidey
Nivel 3

Nivel 3
Mesaje: 439
Membru din: 16 Mar 2015, 22:26
Server: metin2elysium
Regat: Chunjo
Aprecieri: 68  
Mulţumiri: 6  
Medalii

.Execute scrie:quest start begin
state start begin
when login begin
local hostname = "joc"
local name = pc . get_name ( )
if pc . get_job ( ) == 0 then
pc.give_item2 ( "50187" , 1 )
notice_all ( name .. " (Razboinic) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 1 then
pc . give_item2 ( "50212" , 1 )
notice_all ( name .. " (Ninja) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 2 then
pc . give_item2 ( "50187" , 1 )
notice_all ( name .. " (Sura) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 3 then
pc . give_item2 ( "50213" , 1 )
notice_all ( name .. " (Saman) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 4 then
pc . give_item2 ( "50196" , 1 )
notice_all ( name .. " (Lycan) A intrat pe " .. hostname )
end
pc.change_money ( 500000 )
pc.change_alignment ( 2000 )
set_state ( "__COMPLETE" )
end
end
state __COMPLETE begin
end
end

Încearcă-l pe ăsta.
Îmi scăpase un if.
la fel eraore la instalare
Avatar utilizator
InGeRdRoGaTx
Nivel 5

Nivel 5
Mesaje: 772
Membru din: 24 Mai 2014, 07:31
Server: Metin2Remember
Regat: Jinno
Aprecieri: 12  
Mulţumiri: 67  
 Contact:
Medalii

andreidey scrie:
.Execute scrie:quest start begin
state start begin
when login begin
local hostname = "joc"
local name = pc . get_name ( )
if pc . get_job ( ) == 0 then
pc.give_item2 ( "50187" , 1 )
notice_all ( name .. " (Razboinic) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 1 then
pc . give_item2 ( "50212" , 1 )
notice_all ( name .. " (Ninja) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 2 then
pc . give_item2 ( "50187" , 1 )
notice_all ( name .. " (Sura) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 3 then
pc . give_item2 ( "50213" , 1 )
notice_all ( name .. " (Saman) A intrat pe " .. hostname )
elseif pc . get_job ( ) == 4 then
pc . give_item2 ( "50196" , 1 )
notice_all ( name .. " (Lycan) A intrat pe " .. hostname )
end
pc.change_money ( 500000 )
pc.change_alignment ( 2000 )
set_state ( "__COMPLETE" )
end
end
state __COMPLETE begin
end
end

Încearcă-l pe ăsta.
Îmi scăpase un if.
la fel eraore la instalare
Nu ai functiile respective !
Intra in quest_functions din /quest si adauga toate comenzile alea care ti le arata in putty .
Avatar utilizator
Lehel
Veteran

Veteran
Mesaje: 1632
Membru din: 21 Aug 2013, 08:42
Regat: Jinno
Aprecieri: 122  
Mulţumiri: 1212  
Medalii

Poftim, ti l-am rezolvat :)
-------------------------------
-- SERVERFILE BY Lounder	     --
-- Platforma : r40k          --
-- Skype: lehel2000         --
-------------------------------
quest start_joc begin
	state start begin
		when login begin
			local hostname = "joc" 
			local name = pc . get_name ( ) 
			if pc.get_job()==0 then
				notice_all ( name .. " (Razboinic) A intrat pe " .. hostname ) 
					pc.give_item2 ( "50187" , 1 ) 
			elseif pc . get_job ( ) == 1 then 
				pc . give_item2 ( "50212" , 1 ) 
					notice_all ( name .. " (Ninja) A intrat pe " .. hostname ) 
			elseif pc . get_job ( ) == 2 then 
				pc . give_item2 ( "50187" , 1 ) 
					notice_all ( name .. " (Sura) A intrat pe " .. hostname ) 
			elseif pc . get_job ( ) == 3 then 
				pc . give_item2 ( "50213" , 1 ) 
					notice_all ( name .. " (Saman) A intrat pe " .. hostname ) 
			elseif pc . get_job ( ) == 4 then 
				pc . give_item2 ( "50196" , 1 ) 
					notice_all ( name .. " (Lycan) A intrat pe " .. hostname ) 
				end
			pc.change_money ( 500000 ) 
			pc.change_alignment ( 2000 ) 
			set_state ( "__COMPLETE" ) 
end
end	
state __COMPLETE begin
end
end
Imagine
Afișează semnătura
Avatar utilizator
[Andrew]
Fost Moderator

Fost Moderator
Mesaje: 1174
Membru din: 02 Mar 2015, 19:57
Server: KING2.RO
Regat: Chunjo
Aprecieri: 98  
Mulţumiri: 25  
Discord: Copiază ID
 Contact:
Medalii

Subiectul este inactiv de o perioadă lungă. Subiect arhiva.
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
400
Răspunsuri
4
Vizualizări
224
Răspunsuri
4
Vizualizări
414
Răspunsuri
3
Vizualizări
737

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

  • Informaţie