Event PvP

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
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

Cod: Selectaţi tot

quest player_kill1 begin
	state start begin
		when login or levelup with pc.level >= 1 begin
			set_state(player_kill1)
		end
	end

	state player_kill1 begin
		when letter begin
			send_letter("Quest - PvP")
		end

		when button or info begin
			if game.get_event_flag("event_pvp") == 1 then
				say("Vrei din nou Experienta ?.")
				say("Distruge-ti rivalul.")
				say("Esti pregatit !")
				say_reward("Aminteste-ti să fie dintr-un alt taram")
				say("")
				q.set_counter("kills", 0)
				set_state(kill)
			else
				say_title("Event PvP[ENTER]")
				say("Eventul este inactiv")
				return
			end
		end
	end

	state kill begin
		when letter begin
			send_letter("Omoara Player")
		end

		when button or info begin
			if game.get_event_flag("event_pvp") == 1 then
				say_title("Player:")
				say_reward("L-ai omorat pe "..pc.getqf("state").." player[ENTER]")
			else
				return
			end
		end

		when kill with game.get_event_flag("event_pvp") == 1 begin
			if npc.is_pc() and npc.empire != pc.empire then
			local count = pc.getqf("state") + 1
				if count >= 0 then
					q.set_counter("kills", count)
					pc.give_exp2(20000)
				end
			elseif count == 0 then
				say("Rivalul tau a fost omorat!")
			end
		end
	end
end
Pentru acest mesaj, [RaffaeL] for the post:
DragonA7X
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
DragonA7X
Nivel 3

Nivel 3
Mesaje: 434
Membru din: 06 Apr 2017, 10:41
Aprecieri: 100  
Mulţumiri: 3  
Medalii

Functioneaza, multumesc!
Avatar utilizator
Titan
Metin Master

Metin Master
Mesaje: 2783
Membru din: 01 Iun 2015, 15:09
Server: In curand.
Regat: Chunjo
Aprecieri: 42  
Mulţumiri: 377  
  Rezolvări prob.: 3
Discord: Copiază ID
 Contact:
Medalii

Problemă rezolvată, topic închis.
Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
307
Răspunsuri
0
Vizualizări
133
Răspunsuri
3
Vizualizări
2455

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

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