[Quest]Protectie mapa nivel

Avatar utilizator
F. Gabriel
Administrator
Administrator
Mesaje: 497
Membru din: Lun Aug 01, 2022 10:23 am
Localitate: Tecuci
Status: Retras
Multumiri acordate: 17
Multumiri primite: 271
Contact:

[Quest]Protectie mapa nivel

Mesaj de F. Gabriel »

Cod: Selectaţi tot

quest prot_harta begin
	
	state start begin
		
		when login or levelup with pc.get_map_index() == 75 or pc.get_map_index() == 79 or pc.get_map_index() == 80 begin
			
			if pc.get_level() <= 40 then
			
				syschat("Nu ai ce cauta aici la acest nivel!")
				syschat("Vei fi teleportat imediat.")
				
			local empire = pc.get_empire()
				
				if empire == 1 then
					pc.warp(474300,954800)
				elseif empire == 2 then
					pc.warp(63800,166400)
				elseif empire == 3 then
					pc.warp(959900,269200)
					
				end
				
            end
		
		end
		
	end
end
Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest/.lua
Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
Îl puneţi acolo (să fie .quest sau .lua).
Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest (depinde ce server aveţi) apoi ./qc nume_quest.quest/.lua
Intraţi pe server şi scrieţi /reload q
Testaţi quest-ul.
Imagine

Hosting Metin2 by OVINETWORK.RO
Scrie răspuns