Problema Evenimente

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

Nivel 1
Mesaje: 80
Membru din: 28 Dec 2015, 19:50
Server: Metin2Hylos.ro
Regat: Jinno
Aprecieri: 57  
Mulţumiri: 4  
 Contact:
Medalii

*Problemă/Întrebare: Evenimentul Halloween este active non-stop
Tipologie server:pvm
*Resursă folosită:
*ServerFiles utilizat:zearth2
*Syserr:
Poză:
*Detalii suplimentare: Evenimentul Halloween este activat tot timpul, chiar daca il sting de la jack, tot dropeaza dovlecii
Daca aduc npc 20086 care seteaza rata de drop la Cufere Clar de Luna...o seteaza si pe ce-a de la drop Dovleci
De exemplu Evenimentul Halloween este OPRIT
Eventul CL este PORNIT
Setez rata 100% drop cl....dupa orice mob omori primesti 1cl si 1 dovleac...chiar daca eventul Halloween este OPRIT
Stie cineva rezolvarea?


Halloween_1.quest
quest trick_or_treat begin
state start begin
when login or enter begin
if get_time() > pc.getqf("halloween_info_restart") and pc.getqf("halloween_info_restart") > 0 then
pc.setqf("halloween_info_abort", 0)
pc.setqf("halloween_info_restart", 0)
end
if game.get_event_flag("halloween_active") == 1 and pc.getqf("halloween_info_abort") == 0 then
q.set_icon("scroll_open_blue.tga")
send_letter("Este halloween!")
end
end

when button or info begin
say_title("Este Halloween!")
say("")
say("Dovleacul Jack este in vizita pe Metin2Hylos ")
say("de halloween.In acest moment,puteti dropa ")
say("dovleci. ")
say("Ai nevoie de 50 de dovleci pentru a obtine cufar halloween. ")
say("Cauta-l pe jack in map1 !. ")
say("")
say("")
local mail = select("OK", "Nu afisa acest mesaj din nou ")
if mail == 2 then
pc.setqf("halloween_info_abort", 1)
pc.setqf("halloween_info_restart", get_time()+691200)
end
end

when 33008.chat."GM: Trick or treat!" with pc.is_gm() == true begin
if game.get_event_flag("halloween_active") == 0 then
say_title(mob_name(33008))
say("")
say("Vrei sa pornesti eventul de halloween")
say("")
local start = select("Da", "Nu")
if start == 1 then
notice_all("Eventul de Halloween a Inceput ")
notice_all("Puteti dropa dovleci ")
notice_all("si le puteti da pe un cufar de halloween. ")
game.set_event_flag("halloween_active", 1)
end
else
say_title(mob_name(33008))
say("")
say("Vrei sa inchizi eventul de halloween")
say("")
local halloweenend = select("Da", "Nu")
if halloweenend == 1 then
notice_all("Eventul de Halloween sa incheiat. ")
game.set_event_flag("halloween_active", 0)
end
end
end

--[[ when 33008.chat."Am Tichet Jack O`Lantern" begin
if pc.count_item(30323) > 0 then
if pc.getqf("hair_active") > 0 then
say_title(mob_name(33008))
say("")
say("Salut! Porti deja un dovleac pe cap")
say("")
say_reward("Coafura dvs trebuie sa expire")
say_reward("pentru a cumpara una noua.")
say("")
else
say_title(mob_name(33008))
say("")
say("Vad ca ai Tichet Jack ")
say("Itii voi da o masca de dovleac puternica ")
say("Ea iti ofera 10% impotriva monstrilo r")
say("pentru 7 zile")
say("")
say_reward("Vrei sa facem schimbul? ")
say("")
local hair = select("Da", "Nu")
if hair == 1 then
local race = pc.get_job()
if race == 0 then
pc.set_part(PART_HAIR, 1015)
affect.remove_hair()
affect.add_hair(apply.ATTBONUS_MONSTER, 10, 604800)
pc.setf("hair","limit_time", get_time()+604800)
pc.setqf("halloween_hair_expire", get_time()+604800)
pc.remove_item(30323, 1)
pc.setqf("hair_active", 1)
elseif race == 1 then
pc.set_part(PART_HAIR, 2015)
affect.remove_hair()
affect.add_hair(apply.ATTBONUS_MONSTER, 10, 604800)
pc.setf("hair","limit_time", get_time()+604800)
pc.setqf("halloween_hair_expire", get_time()+604800)
pc.remove_item(30323, 1)
pc.setqf("hair_active", 1)
elseif race == 2 then
pc.set_part(PART_HAIR, 3015)
affect.remove_hair()
affect.add_hair(apply.ATTBONUS_MONSTER, 10, 604800)
pc.setf("hair","limit_time", get_time()+604800)
pc.setqf("halloween_hair_expire", get_time()+604800)
pc.remove_item(30323, 1)
pc.setqf("hair_active", 1)
else
pc.set_part(PART_HAIR, 4015)
affect.remove_hair()
affect.add_hair(apply.ATTBONUS_MONSTER, 10, 604800)
pc.setf("hair","limit_time", get_time()+604800)
pc.setqf("halloween_hair_expire", get_time()+604800)
pc.remove_item(30323, 1)
pc.setqf("hair_active", 1)
end
end
end
else
say_title("Tichet Jack O`Lantern")
say("")
say("Ai nevoie de un Tichet Jack O`Lantern pentru ")
say("a face schimbul.")
say("")
say_item_vnum(30323)
say("")
say_reward("Acest tichet il puteti obtine din ")
say_reward("cufarul de halloween. ")
say("")
end
end ]]

when 33008.chat."Event Halloween" begin
if game.get_event_flag("halloween_active") == 0 then
say_title(mob_name(33008))
say("")
say("Eventul de Halloween nu este activ. ")
say("Va rugam sa incercati mai tarziu. ")
say("")
elseif game.get_event_flag("halloween_active") == 1 then
if pc.count_item(30322) > 0 and pc.count_item(50095) > 0 then
say_title(mob_name(33008))

say("")
say("Salut ")
say("A sosit timpul pentru bomboane si groza! ")
say("")
say("Vad ca esti bine pregatit! Vrei sa schimbi ")
say("50 de dovleci ")
say("pentru un cufar de halloween? ")
say("")
local trade = select("Da", "Nu.")
if trade == 1 then
say_title(mob_name(33008))
say("")
say("He he bine,bucurate de cufar. ")
say("Iti doresc un halloween infricosator! ")
say("")
say_reward("Ai primit cufar de halloween ")
pc.remove_item( 50095,50 )
pc.give_item2( 50215,1 )
end
else
say_title(mob_name(33008))
say("")
say("Heeee!Nu trisa de halloween! ")
say("Nu ai toate elementele! ")
say("Ai nevoie de 50 de dovleci ")
say("pentru a face un cufar de halloween! ")
say("")
say("")
end
end
end
end
end
Halloween_2.quest
quest sticla_goala begin
state start begin

when kill with not npc.is_pc() begin
sansa = math.random ( 1 , 100 )
if sansa == 1 then
game.drop_item_with_ownership(50095,1)
end
end

end
end
NPC Hand UP :
-Cufere_clar_de_luna.start.0.script :
if game . get_event_flag ( "mondlicht_event" ) == 1 then
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "[Eveniment]Cufãr Clar de Lunã: Activ" )
say ( "" )
say_reward ( "Event Beenden?" )
local s = select ( "Da" , "Nu" )
if s == 1 then
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "Evenimentul a luat sfârsit ." )
say ( "~ Pe data viitoare !" )
game . set_event_flag ( "mondlicht_event" , 0 )
char_log ( 0 , "Mondlicht_event_end from" .. pc . get_name ( ) )
notice_all ( "[Eveniment]Cufãr Clar de Lunã: Terminat" )
elseif s == 2 then
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "~ Pe curând !" )
end
else
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "Cufãr Com Clar De Lunã : ~ Închis " )
say ( "" )
say_reward ( "Start Eveniment?" )
local s = select ( "Da" , "Nu" )
if s == 1 then
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "[Eveniment]Cufãr Clar de Lunã: A inceput" )
game . set_event_flag ( "mondlicht_event" , 1 )
char_log ( 0 , "Mondlicht_event_start from" .. pc . get_name ( ) )
notice_all ( "[Eveniment]Cufãr Clar de Lunã: A inceput!" )
elseif s == 2 then
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "~ Pe curând !" )
end
end
-Cufere_clar_luna.start.1.script :
if pc . get_name ( ) == "[GA]Toma" then
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "Cat de mult sã fie dropul acestora ?" )
say ( "" )
say_reward ( "Între 1-100" )
say ( "" )
local new_chance = tonumber ( input ( ) )
if new_chance < 0 or new_chance > 100 then
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "Introducere incorectã ~" )
else
char_log ( 0 , "Mondlicht_event_chance from" .. pc . get_name ( ) .. " to " .. new_chance .. "%" )
game . set_event_flag ( "mond_drop_chance" , new_chance )
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "Dropul actual " .. new_chance .. " setat." )
say ( "~ Pe curând !" )
end
else
say_title ( "Administrare Eveniment:" )
say ( "" )
say ( "Nu ai dreptul pentru a executa evenimentul ." )
end
NPC JACK:
-Trick_Or_Treat.start.0.script :
if game . get_event_flag ( "halloween_active" ) == 0 then
say_title ( mob_name ( 33008 ) )
say ( "" )
say ( "Vrei sa pornesti eventul de halloween" )
say ( "" )
local start = select ( "Da" , "Nu" )
if start == 1 then
notice_all ( "Eventul de Halloween a Inceput " )
notice_all ( "Strange 50 de dovleci" )
notice_all ( "Si mergi in map1 la Jack " )
game . set_event_flag ( "halloween_active" , 1 )
end
else
say_title ( mob_name ( 33008 ) )
say ( "" )
say ( "Vrei sa inchizi eventul de halloween" )
say ( "" )
local halloweenend = select ( "Da" , "Nu" )
if halloweenend == 1 then
notice_all ( "Eventul de Halloween sa incheiat. " )
game . set_event_flag ( "halloween_active" , 0 )
end
end
-Trick_Or_Treat.start.1.script :
if game . get_event_flag ( "halloween_active" ) == 0 then
say_title ( mob_name ( 33008 ) )
say ( "" )
say ( "Eventul de Halloween nu este activ. " )
say ( "Va rugam sa incercati mai tarziu. " )
say ( "" )
elseif game . get_event_flag ( "halloween_active" ) == 1 then
if pc . count_item ( 50095 ) > 49 then
say_title ( mob_name ( 33008 ) )
say ( "" )
say ( "Salut " )
say ( "A sosit timpul pentru bomboane si groza! " )
say ( "" )
say ( "Vad ca esti bine pregatit! Vrei sa schimbi " )
say ( "50 de dovleci " )
say ( "pentru un cufar de halloween? " )
say ( "" )
local trade = select ( "Da" , "Nu." )
if trade == 1 then
say_title ( mob_name ( 33008 ) )
say ( "" )
say ( "He he bine,bucurate de cufar. " )
say ( "Iti doresc un halloween infricosator! " )
say ( "" )
say_reward ( "Ai primit cufar de halloween " )
pc . remove_item ( 50095 , 50 )
pc . give_item2 ( 50215 , 1 )
end
else
say_title ( mob_name ( 33008 ) )
say ( "" )
say ( "Heeee!Nu trisa ! " )
say ( "Nu ai toate elementele! " )
say ( "Ai nevoie de 50 de dovleci " )
say ( "pentru a face un cufar de halloween! " )
say ( "" )
say ( "" )
end
end
Repet, problema este ca dovlecii dropeaza chiar daca sting eventul si se mai pune si sansa de drop ce la CL la Dovleci
Avatar utilizator
toma7489
Nivel 1

Nivel 1
Mesaje: 80
Membru din: 28 Dec 2015, 19:50
Server: Metin2Hylos.ro
Regat: Jinno
Aprecieri: 57  
Mulţumiri: 4  
 Contact:
Medalii

Up

[ Postat de pe Android ] Imagine
Avatar utilizator
Meliodas.
Nou Venit

Nou Venit
Mesaje: 20
Membru din: 15 Aug 2018, 05:47
Server: Metin2 NewMooN
Regat: Jinno
Aprecieri: 18  
Mulţumiri: 3  
Medalii

Nu sunt sigur daca merge , dar ai incercat sa schimbi NPC-ul de la care activezi eventul de la dovleci ? Spre exemplu pune codul fierarului la dovleci si activezi eventul de la fierar. (Doar ca test)
Nu garantez 100% ca merge, dar merita incercat.
Avatar utilizator
toma7489
Nivel 1

Nivel 1
Mesaje: 80
Membru din: 28 Dec 2015, 19:50
Server: Metin2Hylos.ro
Regat: Jinno
Aprecieri: 57  
Mulţumiri: 4  
 Contact:
Medalii

Nu are legatura "npc"-u in sine, e vb de quest, sau de event flag, am o banuiala ca aman2 eventuriile au acelasi flag..si nu stiu cum sa verific sau sa probez...up

[ Postat de pe Android ] Imagine
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

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

  • Informaţie
  • Cine este conectat

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