mos craciun

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

Nivel 1
Mesaje: 105
Membru din: 07 Dec 2013, 20:55
Server: Dark Fight
Regat: Jinno
Aprecieri: 29  
Mulţumiri: 2  
Medalii

quest santa begin
state start begin
when 20031.chat."Event de Craciun: Panoul de control" begin
say_title("Eventul de craciun:")
if game.get_event_flag("xmas")==0 then
say("Eventul de craciun este oprit.")
say("Vrei sa il pornesti?")
local s1 = select("Da", "Nu")
if s1 == 1 then
say("Eventul a fost oprit!")
game.set_event_flag("xmas", 1)
notice_all("Eventul de craciun tocmai ce a inceput")
notice_all("Incepand de acum puteti dropa")
notice_all("Sosete si cadouri de la toti monstrii")
notice_all("Sarbatori fericite tuturor")
command("e xmas_snow 1")
command("e xmas_song 1")
else
return
end
else
say("Eventul de craciun este pornit")
say("Vrei sa il opresti?")
local s2 = select("Da", "Nu")
if s2 == 1 then
say("Eventul a fost pornit!")
game.set_event_flag("xmas", 0)
notice_all("Eventul de craciun a luat sfarsit")
notice_all("Speram ca ati castigat premii folositoare")
command("e xmas_snow 0")
command("e xmas_song 0")
end
end
end
when kill with game.get_event_flag("xmas")==1 and not npc.is_pc() begin
local drop = number(1, 75)
if drop == 1 then
game.drop_item_with_ownership(50035, 1)
elseif drop == 2 then
game.drop_item_with_ownership(50036, 1)
elseif drop == 3 then
game.drop_item_with_ownership(50010, 1)
end
end



Cum fac ca playerii sa numai poata dezactiva eventul:?
Avatar utilizator
[Tupeu]
Membru de Elita

Membru de Elita
Mesaje: 4101
Membru din: 28 Oct 2015, 16:16
Aprecieri: 35  
Mulţumiri: 2304  
 Contact:
Medalii

Inlocuieste linia asta:

Cod: Selectaţi tot

  when 20031.chat."Event de Craciun: Panoul de control" begin 
Cu :

Cod: Selectaţi tot

  when 20031.chat."Event de Craciun: Panoul de control" with pc.is_gm() begin 
[ Postat de pe Android ] Imagine
Pentru acest mesaj, [Tupeu] for the post:
pavelsmecher21
Avatar utilizator
pavelsmecher21
Nivel 1

Nivel 1
Mesaje: 105
Membru din: 07 Dec 2013, 20:55
Server: Dark Fight
Regat: Jinno
Aprecieri: 29  
Mulţumiri: 2  
Medalii

Multumesc
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

T/c subiect rezolvat.
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
2
Vizualizări
494
Răspunsuri
5
Vizualizări
1644
Răspunsuri
8
Vizualizări
681
Răspunsuri
3
Vizualizări
322

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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