Modificare timp

Închis
Avatar utilizator
darkallience3
Nivel 6

Nivel 6
Mesaje: 952
Membru din: 17 Dec 2013, 15:03
Server: Metin2Andromeda
Regat: Jinno
Aprecieri: 294  
Mulţumiri: 183  
Medalii

Salut j4m , unde modific timpul de 24 ore la misiunile de cal armat la accest quest?
Warningif pc . countitem ( "50050" ) < 1 then
say_title ( "Grajdar:" )
say ( "Ai nevoie de o medalie de cal." )
say ( "" )
setstate ( "need_item50050" )
elseif get_time ( ) < pc . getqf ( "next_time" ) then
say_title ( "Grajdar:" )
say ( "Si caii au nevoie de odihna!" )
say ( "Revino mâine." )
elseif horse . get_stamina_pct ( ) <= 10 then
say_title ( "Grajdar:" )
say ( "Calul tau este prea obosit." )
say ( "" )
elseif horse . get_health_pct ( ) <= 10 then
say_title ( "Grajdar:" )
say ( "Calul tau este prea flamând." )
say ( "" )
elseif horse . get_level ( ) == 10 then
say_title ( "Grajdar:" )
say ( "Poti da examenul de lupta de pe cal!" )
say ( "" )
elseif horse . is_riding ( ) == 0 then
say_title ( "Grajdar:" )
say ( "Cheama-ŝi calul!" )
say ( "" )
elseif ( horse . get_level ( ) >= 8 and horse . get_level ( ) <= 9 ) then
say_title ( "Grajdar:" )
say ( "Urmatorul punct de calarie" )
say ( "îl poŝi gasi pe harta!" )
say ( "Acum te voi teleporta!" )
say ( "" )
say ( "" )
if is_test_server ( ) then
pc . setqf ( "next_time" , get_time ( ) + 10 )
else
pc . setqf ( "next_time" , get_time ( ) + number ( 12 , 24 ) * 60 * 60 )
end
if is_test_server ( ) then
local s = select ( "1 val(1) 12.50%" , "2 val(1) 12.50%" , "3 val(1) 12.50%" , "4 val(1) 12.50%" , "5 val(1) 12.50%" , "6 val(1) 12.50%" , "7 val(1) 12.50%" , "8 val(1) 12.50%" )
if 1 == s then
setstate ( "training_frame_red_step1" )
elseif 2 == s then
setstate ( "training_frame_blue_step1" )
elseif 3 == s then
setstate ( "training_frame_yellow_step1" )
elseif 4 == s then
setstate ( "training_frame_purple_step1" )
elseif 5 == s then
setstate ( "training_frame_white_step1" )
elseif 6 == s then
setstate ( "training_snow_red_step1" )
elseif 7 == s then
setstate ( "training_snow_blue_step1" )
elseif 8 == s then
setstate ( "training_snow_yellow_step1" )
end
else
local s = number ( 1 , 8 )
if 1 >= s then
setstate ( "training_frame_red_step1" )
elseif 2 >= s then
setstate ( "training_frame_blue_step1" )
elseif 3 >= s then
setstate ( "training_frame_yellow_step1" )
elseif 4 >= s then
setstate ( "training_frame_purple_step1" )
elseif 5 >= s then
setstate ( "training_frame_white_step1" )
elseif 6 >= s then
setstate ( "training_snow_red_step1" )
elseif 7 >= s then
setstate ( "training_snow_blue_step1" )
elseif 8 >= s then
setstate ( "training_snow_yellow_step1" )
end
end
elseif ( horse . get_level ( ) >= 6 and horse . get_level ( ) <= 7 ) then
say_title ( "Grajdar:" )
say ( "Urmatorul punct de calarie" )
say ( "va fi in alta harta!" )
say ( "Acum te voi teleporta!" )
say ( "" )
say ( "" )
if is_test_server ( ) then
pc . setqf ( "next_time" , get_time ( ) + 10 )
else
pc . setqf ( "next_time" , get_time ( ) + number ( 12 , 24 ) * 60 * 60 )
end
if is_test_server ( ) then
local s = select ( "1 val(1) 11.11%" , "2 val(1) 11.11%" , "3 val(1) 11.11%" , "4 val(1) 11.11%" , "5 val(1) 11.11%" , "6 val(1) 11.11%" , "7 val(1) 11.11%" , "8 val(1) 11.11%" , "9 val(1) 11.11%" )
if 1 == s then
setstate ( "training_valley_red_step1" )
elseif 2 == s then
setstate ( "training_valley_blue_step1" )
elseif 3 == s then
setstate ( "training_valley_yellow_step1" )
elseif 4 == s then
setstate ( "training_desert_red_step1" )
elseif 5 == s then
setstate ( "training_desert_blue_step1" )
elseif 6 == s then
setstate ( "training_desert_yellow_step1" )
elseif 7 == s then
setstate ( "training_desert_purple_step1" )
elseif 8 == s then
setstate ( "training_desert_white_step1" )
elseif 9 == s then
setstate ( "training_desert_sky_step1" )
end
else
local s = number ( 1 , 9 )
if 1 >= s then
setstate ( "training_valley_red_step1" )
elseif 2 >= s then
setstate ( "training_valley_blue_step1" )
elseif 3 >= s then
setstate ( "training_valley_yellow_step1" )
elseif 4 >= s then
setstate ( "training_desert_red_step1" )
elseif 5 >= s then
setstate ( "training_desert_blue_step1" )
elseif 6 >= s then
setstate ( "training_desert_yellow_step1" )
elseif 7 >= s then
setstate ( "training_desert_purple_step1" )
elseif 8 >= s then
setstate ( "training_desert_white_step1" )
elseif 9 >= s then
setstate ( "training_desert_sky_step1" )
end
end
elseif ( horse . get_level ( ) >= 3 and horse . get_level ( ) <= 5 ) then
say_title ( "Grajdar:" )
say ( "Calareşte pâna la punctul" )
say ( "de calarie marcat pe harta." )
say ( "Ai grija sa nu cazi de pe cal" )
say ( "altfel testul va eşua." )
say ( "Mult noroc!" )
if is_test_server ( ) then
pc . setqf ( "next_time" , get_time ( ) + 10 )
else
pc . setqf ( "next_time" , get_time ( ) + number ( 12 , 24 ) * 60 * 60 )
end
if pc . get_empire ( ) == 1 then
if is_test_server ( ) then
local s = select ( "1 val(1) 25.00%" , "2 val(1) 25.00%" , "3 val(1) 25.00%" , "4 val(1) 25.00%" )
if 1 == s then
setstate ( "training1_normal1" )
elseif 2 == s then
setstate ( "training1_normal2" )
elseif 3 == s then
setstate ( "training1_normal3" )
elseif 4 == s then
setstate ( "training1_normal4" )
end
else
local s = number ( 1 , 4 )
if 1 >= s then
setstate ( "training1_normal1" )
elseif 2 >= s then
setstate ( "training1_normal2" )
elseif 3 >= s then
setstate ( "training1_normal3" )
elseif 4 >= s then
setstate ( "training1_normal4" )
end
end
elseif pc . get_empire ( ) == 2 then
if is_test_server ( ) then
local s = select ( "1 val(1) 25.00%" , "2 val(1) 25.00%" , "3 val(1) 25.00%" , "4 val(1) 25.00%" )
if 1 == s then
setstate ( "training2_normal1" )
elseif 2 == s then
setstate ( "training2_normal2" )
elseif 3 == s then
setstate ( "training2_normal3" )
elseif 4 == s then
setstate ( "training2_normal4" )
end
else
local s = number ( 1 , 4 )
if 1 >= s then
setstate ( "training2_normal1" )
elseif 2 >= s then
setstate ( "training2_normal2" )
elseif 3 >= s then
setstate ( "training2_normal3" )
elseif 4 >= s then
setstate ( "training2_normal4" )
end
end
elseif pc . get_empire ( ) == 3 then
if is_test_server ( ) then
local s = select ( "1 val(1) 25.00%" , "2 val(1) 25.00%" , "3 val(1) 25.00%" , "4 val(1) 25.00%" )
if 1 == s then
setstate ( "training3_normal1" )
elseif 2 == s then
setstate ( "training3_normal2" )
elseif 3 == s then
setstate ( "training3_normal3" )
elseif 4 == s then
setstate ( "training3_normal4" )
end
else
local s = number ( 1 , 4 )
if 1 >= s then
setstate ( "training3_normal1" )
elseif 2 >= s then
setstate ( "training3_normal2" )
elseif 3 >= s then
setstate ( "training3_normal3" )
elseif 4 >= s then
setstate ( "training3_normal4" )
end
end
end
elseif ( horse . get_level ( ) >= 1 and horse . get_level ( ) <= 2 ) then
say_title ( "Grajdar:" )
say ( "Calareşte pâna la punctul" )
say ( "de calarie marcat pe harta." )
say ( "Ai grija sa nu cazi de pe cal" )
say ( "altfel testul va eşua." )
say ( "Mult noroc!" )
if is_test_server ( ) then
pc . setqf ( "next_time" , get_time ( ) + 10 )
else
pc . setqf ( "next_time" , get_time ( ) + number ( 12 , 24 ) * 60 * 60 )
end
if pc . get_empire ( ) == 1 then
if is_test_server ( ) then
local s = select ( "1 val(1) 25.00%" , "2 val(1) 25.00%" , "3 val(1) 25.00%" , "4 val(1) 25.00%" )
if 1 == s then
setstate ( "training1_easy1" )
elseif 2 == s then
setstate ( "training1_easy2" )
elseif 3 == s then
setstate ( "training1_easy3" )
elseif 4 == s then
setstate ( "training1_easy4" )
end
else
local s = number ( 1 , 4 )
if 1 >= s then
setstate ( "training1_easy1" )
elseif 2 >= s then
setstate ( "training1_easy2" )
elseif 3 >= s then
setstate ( "training1_easy3" )
elseif 4 >= s then
setstate ( "training1_easy4" )
end
end
elseif pc . get_empire ( ) == 2 then
if is_test_server ( ) then
local s = select ( "1 val(1) 25.00%" , "2 val(1) 25.00%" , "3 val(1) 25.00%" , "4 val(1) 25.00%" )
if 1 == s then
setstate ( "training2_easy1" )
elseif 2 == s then
setstate ( "training2_easy2" )
elseif 3 == s then
setstate ( "training2_easy3" )
elseif 4 == s then
setstate ( "training2_easy4" )
end
else
local s = number ( 1 , 4 )
if 1 >= s then
setstate ( "training2_easy1" )
elseif 2 >= s then
setstate ( "training2_easy2" )
elseif 3 >= s then
setstate ( "training2_easy3" )
elseif 4 >= s then
setstate ( "training2_easy4" )
end
end
elseif pc . get_empire ( ) == 3 then
if is_test_server ( ) then
local s = select ( "1 val(1) 25.00%" , "2 val(1) 25.00%" , "3 val(1) 25.00%" , "4 val(1) 25.00%" )
if 1 == s then
setstate ( "training3_easy1" )
elseif 2 == s then
setstate ( "training3_easy2" )
elseif 3 == s then
setstate ( "training3_easy3" )
elseif 4 == s then
setstate ( "training3_easy4" )
end
else
local s = number ( 1 , 4 )
if 1 >= s then
setstate ( "training3_easy1" )
elseif 2 >= s then
setstate ( "training3_easy2" )
elseif 3 >= s then
setstate ( "training3_easy3" )
elseif 4 >= s then
setstate ( "training3_easy4" )
end
end
end
else
say ( "" )
end
Afișează semnătura
Avatar utilizator
Ionuţ
Web Master

Web Master
Mesaje: 1001
Membru din: 02 Sep 2013, 14:41
Server: Metin2CMS
Regat: Jinno
Aprecieri: 88  
Mulţumiri: 471  
Discord: Copiază ID
 Contact:
Medalii

ce-ti spune tie functia get_time ( ) ? sau pe a locuri unde ii adauga si get_time ( ) + 10 si get_time ( ) + number ( 12 , 24 ) * 60 * 60
Proiectele mele

Imagine
Afișează semnătura
Avatar utilizator
darkallience3
Nivel 6

Nivel 6
Mesaje: 952
Membru din: 17 Dec 2013, 15:03
Server: Metin2Andromeda
Regat: Jinno
Aprecieri: 294  
Mulţumiri: 183  
Medalii

Ionuţ scrie:ce-ti spune tie functia get_time ( ) ? sau pe a locuri unde ii adauga si get_time ( ) + 10 si get_time ( ) + number ( 12 , 24 ) * 60 * 60
12 , 24 sunt orele ?
Stiam de acea functie , dar nu stiu cum sa pun la 5 minute sa faca urmatoarea misiune
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

darkallience3 scrie:
Ionuţ scrie:ce-ti spune tie functia get_time ( ) ? sau pe a locuri unde ii adauga si get_time ( ) + 10 si get_time ( ) + number ( 12 , 24 ) * 60 * 60
12 , 24 sunt orele ?
Stiam de acea functie , dar nu stiu cum sa pun la 5 minute sa faca urmatoarea misiune
5*60
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
darkallience3
Nivel 6

Nivel 6
Mesaje: 952
Membru din: 17 Dec 2013, 15:03
Server: Metin2Andromeda
Regat: Jinno
Aprecieri: 294  
Mulţumiri: 183  
Medalii

[RaffaeL] scrie:
darkallience3 scrie:
Ionuţ scrie:ce-ti spune tie functia get_time ( ) ? sau pe a locuri unde ii adauga si get_time ( ) + 10 si get_time ( ) + number ( 12 , 24 ) * 60 * 60
12 , 24 sunt orele ?
Stiam de acea functie , dar nu stiu cum sa pun la 5 minute sa faca urmatoarea misiune
5*60
in locul la 12 , 24 pun 5*60 sau 5 * 60 * 60 ?
Afișează semnătura
Avatar utilizator
Lester
Membru Club

Membru Club
Mesaje: 519
Membru din: 23 Feb 2017, 23:34
Aprecieri: 13  
Mulţumiri: 613  
Discord: Copiază ID
Medalii

Subiect inactiv de peste 3 zile. 
Arhivat.
[ Postat de pe Android ] Imagine
„Mimează-ți fericirea în văzul tuturor!”
Afișează semnătura
Închis
Răspunsuri
0
Vizualizări
178
Răspunsuri
2
Vizualizări
322
Răspunsuri
15
Vizualizări
1034

Înapoi la “Arhivă”

  • Informaţie
  • Cine este conectat

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