[Quest] - Administrare Eveniment Cufere Clar De Lună

#1
Revin cu un nou quest care vă ajută să administraţi mult mai uşor dropul cuferelor clar de lună fără să vă mai chinuiţi să băgaţi voi înşivă dropul manual!

Cod: Selectaţi tot

quest drop_event begin
    state start begin	
        when login begin
            if game.get_event_flag("drop_event") == 1 then			
                notice("[METIN2 "..settings.server_name.."]: Evenimentul Cufărul Lunii este activ.")				
            end
        end				
        when kill with not npc.is_pc() and game.get_event_flag("drop_event") == 1 begin
			local chance = number(1, 100)
			local chance_max = game.get_event_flag("drop_event_chance")                    
				if chance <= chance_max then						
					pc.give_item2(50011)							
				else
			end
		end
		when 20094.chat."GM: Eveniment cufere lună " with pc.is_gm() begin	
			if pc.is_gm() then			
			say_gm_title("Hong-Hae:")
			say_gm("")
			say_gm("Ce doreşti să faci?")		
			say_gm("")
				
			if game.get_event_flag("drop_event") == 0 then
				say_gm("Evenimentul cufărul lunii este oprit.")	
				say_gm("")
			else		
				say_gm("Evenimentul cufărul lunii este pornit.")	
				say_gm("")
			end
					
			local s=select("Porneşte evenimentul","Opreşte evenimentul","Şansa de drop al cuferelor","Ieşire")
				   
			if s==1 then		
				notice_all("[METIN2 "..settings.server_name.."]: Evenimentul Cufărul Lunii a început.")						
				game.set_event_flag("drop_event", 1)					
					
				say_gm_title("Hong-Hae:")
				say_gm("")
				say_gm("Evenimentul a fost pornit.")
				say_gm("")	
						
			elseif s==2 then								
				notice_all("[METIN2 "..settings.server_name.."]: Evenimentul Cufărul Lunii a luat sfârşit.")
				game.set_event_flag("drop_event", 0)					
				
				say_gm_title("Hong-Hae:")
				say_gm("")
				say_gm("Evenimentul a luat sfârşit.")		
				say_gm("")
							
			elseif s==3 then
				say_gm_title("Hong-Hae:")
				say_gm("")
				say_gm("Cât de mare doreşti să fie şansa de aruncare?")
				say_gm("")			
				say_gm("Între 1-100:")
				say_gm("")
					
				local new_chance = tonumber(input())
				
				if new_chance < 0 or new_chance > 100 then					
					say_gm_title("Eveniment cufere lună:")
					say_gm("")
					say_gm("Valorile introduse nu sunt bune.")				
				else
			
				game.set_event_flag("drop_event_chance", new_chance)
						
				say_gm_title("Hong-Hae:")
				say_gm("")
				say_gm("Şansa a fost modificată; şansă " ..new_chance.. "%.")
				say_gm("")					
				end	
						
				elseif s==4 then	
				return				
				end
			end
		end
    end
end 
Tutorial instalare quest:
1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest .
2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.
4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
5. Intraţi pe server şi scrieţi /reload q .
6. Testaţi quest-ul .
Imagine
Imagine
Imagine
Imagine

Înapoi la “[Resurse] Quest-uri”

Cine este conectat

Utilizatori răsfoind acest forum: Niciun utilizator înregistrat și 2 vizitatori