Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 00:12

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[SERVICE] Die Questkontrolle

Discussion on [SERVICE] Die Questkontrolle within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old 01/27/2015, 22:11   #10906
 
DarkCry96's Avatar
 
elite*gold: 0
Join Date: Dec 2013
Posts: 111
Received Thanks: 20
Quote:
Originally Posted by Kilroy. View Post
Schau in anderen Quests mal ob dort irgendwo 1093.kill steht. Das könnte den Fehler auslösen. Das musst du in kill with npc.get_race()==1093 umschreiben.

Ich tippe mal auf die Dämonenturmquest^^

Ich versuchs mal, kannst du mir den Hintergrund erläutern, wieso diese Funktion nur auf eine Weise geschrieben sein darf?



kleines Edit: Er mag nun die devilzone.quest nichtmehr :

PHP Code:
    when kill with npc.get_race()==1093 when pc.in_dungeon() and pc.get_map_index() >= 660000 and pc.get_map_index() < 670000 begin
        d
.kill_all()
        
timer("devil_end_jump"60)
    
end

    when devil_end_jump
.timer begin
        d
.exit_all()
    
end
end
end 
DarkCry96 is offline  
Old 01/27/2015, 22:43   #10907
 
Noa_'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 605
Received Thanks: 580
Quote:
Originally Posted by [Sensenmann] View Post
Funktioniert!

Danke^^

EDIT:

Wollte das noch etwas erweitern ... du kannst das bestimmt noch viel einfacher lösen aber bei mir klappts überhaupt nicht :x

PHP Code:
function SecondsToClock(int)
    if 
tonumber(int) then 
        nHours 
math.floor((int) / 60 60)
        
nMins math.floor(((int) / 60 ) - nHours 60)
        
nSecs math.floor((int) - nHours 60 60 nMins 60)
        if 
nHours 1 then
            local txt_Hours 
nHours.." Stunden "
        
elseif nHours == 1 then
            local txt_Hours 
nHours.." Stunde "
        
elseif nHours == 0 then
            local txt_Hours 
""
        
end
        
if nMins 1 then
            local txt_Mins 
nMins.." Minuten "
        
elseif nMins == 1 then
            local txt_Mins 
nMins.." Minute "
        
elseif nMins == 0 then
            local txt_Mins 
""
        
end
        
if nSecs 1 then
            local txt_Secs 
nSecs.." Sekunden "
        
elseif nSecs == 1 then
            local txt_Secs 
nSecs.." Sekunde "
        
elseif nSecs == 0 then
            local txt_Secs 
""
        
end
        
return txt_Hours..txt_Mins..txt_Secs
    
else
        return 
"00:00:00"
    
end
end 
unseren lieben Lua experte Mijago, hat schon seit einer geraumer zeit schon ein released.
PHP Code:
function duration(ipe
    
local ipe,datipe or 0,''
    
local s,m,h,d,mo,tonumber(os.date('%S',ipe)),
    
tonumber(os.date('%M',ipe)),
    
tonumber(os.date('%H',ipe))-1,
    
tonumber(os.date('%d',ipe))-1,
    
tonumber(os.date('%m',ipe))-1,
    
tonumber(os.date('%Y',ipe))-1970
    
for x,c in {{s,"Sek."},{m,"Min."},{h,"Std."},{d,"Tage","Tag"},{mo,"Monate","Monat"},{y,"Jahre","Jahr"}} do
        if (
c[1] or 0) > 0 then
            
if 1 then dat ' '..dat end
            
if c[1] > 1 then
                dat 
c[1]..' '..c[2]..dat
            
else 
                
dat c[1]..' '..(c[3] or c[2])..dat
            end
        end
    end    
    
return dat
end 
Noa_ is offline  
Thanks
1 User
Old 01/27/2015, 22:59   #10908

 
AntikerGolem's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 2,125
Received Thanks: 844
Code:
        when 2493.kill with pc.get_map_index(97*10000) begin
            local drop = number(1,10)
            if drop <= 3 then
                game.drop_item_with_ownership(71123)
            elseif drop >= 4 and drop <= 8 then
                game.drop_item_with_ownership(71129)
            elseif drop >= 9 then
                game.drop_item_with_ownership(71123)
                game.drop_item_with_ownership(71129)
            end
            game.set_event_flag("reopen", get_time()+30*60)
            notice_all("Die Gruppe von "..pc.get_name().." hat den Blauen Drachen getötet")
            game.set_event_flag("metinkills", 0)
            game.set_event_flag("dragontemple_block",1)
			timer("skipia_boss_end", 60)
		end

		when skipia_boss_end.timer begin
			d.exit_all()
		end
	end
end
Wieso funz der Timer nicht?
Putty zeigt kein fehler
AntikerGolem is offline  
Old 01/27/2015, 23:15   #10909
 
Noa_'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 605
Received Thanks: 580
kommt überhaupt die nachricht?

notice_all("Die Gruppe von "..pc.get_name().." hat den Blauen Drachen getötet")
Noa_ is offline  
Old 01/27/2015, 23:33   #10910

 
AntikerGolem's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 2,125
Received Thanks: 844
Die kommt, droppe auch Items :/ und das obwohl ich vanilla benutze und ja eig diese .kill funktion ja nicht gehen sollte (oder? xD)


AntikerGolem is offline  
Old 01/27/2015, 23:55   #10911
 
Noa_'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 605
Received Thanks: 580
Quote:
Originally Posted by KaiserAwu View Post
Die kommt, droppe auch Items :/ und das obwohl ich vanilla benutze und ja eig diese .kill funktion ja nicht gehen sollte (oder? xD)



versuch mal hiermit, bin mir nicht sicher ob's geht.

PHP Code:
        when 2493.kill with pc.get_map_index(97*10000begin
            local drop 
number(1,10)
            if 
drop <= 3 then
                game
.drop_item_with_ownership(71123)
            elseif 
drop >= and drop <= 8 then
                game
.drop_item_with_ownership(71129)
            elseif 
drop >= 9 then
                game
.drop_item_with_ownership(71123)
                
game.drop_item_with_ownership(71129)
            
end
            game
.set_event_flag("reopen"get_time()+30*60)
            
notice_all("Die Gruppe von "..pc.get_name().." hat den Blauen Drachen getötet")
            
game.set_event_flag("metinkills"0)
            
game.set_event_flag("dragontemple_block",1)
            
server_timer("skipia_boss_end"60,pc.get_map_index())
        
end

        when skipia_boss_end
.timer begin
            
if d.select(get_server_timer_arg()) then
                d
.exit_all()
            
end
        end
    end
end 
Noa_ is offline  
Old 01/28/2015, 00:02   #10912
 
elite*gold: 0
Join Date: Jun 2010
Posts: 98
Received Thanks: 14
Hey Leute,

Was genau ist an dieser Quest falsch?


Thx schonmal für jede Hilfe
Shadow366 is offline  
Old 01/28/2015, 00:11   #10913

 
AntikerGolem's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 2,125
Received Thanks: 844
Quote:
Originally Posted by Noa_ View Post
versuch mal hiermit, bin mir nicht sicher ob's geht.

PHP Code:
        when 2493.kill with pc.get_map_index(97*10000begin
            local drop 
number(1,10)
            if 
drop <= 3 then
                game
.drop_item_with_ownership(71123)
            elseif 
drop >= and drop <= 8 then
                game
.drop_item_with_ownership(71129)
            elseif 
drop >= 9 then
                game
.drop_item_with_ownership(71123)
                
game.drop_item_with_ownership(71129)
            
end
            game
.set_event_flag("reopen"get_time()+30*60)
            
notice_all("Die Gruppe von "..pc.get_name().." hat den Blauen Drachen getötet")
            
game.set_event_flag("metinkills"0)
            
game.set_event_flag("dragontemple_block",1)
            
server_timer("skipia_boss_end"60,pc.get_map_index())
        
end

        when skipia_boss_end
.timer begin
            
if d.select(get_server_timer_arg()) then
                d
.exit_all()
            
end
        end
    end
end 
funz leider auch nicht:/
AntikerGolem is offline  
Old 01/28/2015, 00:22   #10914
 
Noa_'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 605
Received Thanks: 580
mach mal noch aus

when skipia_boss_end.timer begin

zu

when skipia_boss_end.server_timer begin

zu beachten ist, das du 60 sekunden warten musst bis du teleportiert wirst
Noa_ is offline  
Old 01/28/2015, 09:28   #10915

 
AntikerGolem's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 2,125
Received Thanks: 844
Quote:
Originally Posted by Noa_ View Post
mach mal noch aus

when skipia_boss_end.timer begin

zu

when skipia_boss_end.server_timer begin

zu beachten ist, das du 60 sekunden warten musst bis du teleportiert wirst
auch schon getestet, hatte auch etwas länger als 60sek gewartet aber nix .___.
AntikerGolem is offline  
Old 01/28/2015, 10:55   #10916
 
elite*gold: 0
Join Date: Nov 2014
Posts: 56
Received Thanks: 1
Guten Tag euch allen,

Undzwar bin ich grad an einer Quest.
Also ich möchte wenn ich auf mein pet-siegel klicke das das gewünschte pet kommt.
Nur was ich jetzt nicht genau welcher befehl dafür der richtige ist.
bei mob.spawn kommt gar nix.
~YPG~ is offline  
Old 01/28/2015, 13:56   #10917

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Quote:
Originally Posted by .Xilent View Post
Code:
function SecondsToClock(int)
	if tonumber(int) then 
		nHours = math.floor((int) / 60 / 60)
		nMins = math.floor(((int) / 60 ) - nHours * 60)
		nSecs = math.floor((int) - nHours * 60 * 60 - nMins * 60)
		return (nHours > 0 and (nHours..({" Stunde ","Stunden "})[nHours == 1 and 1 or 2]) or "")..(nMins > 0 and (nMins..({" Minute "," Minuten "})[nMins == 1 and 1 or 2]) or "")..(nSecs > 0 and (nSecs..({" Sekunde"," Sekunden"})[nSecs == 1 and 1 or 2]) or "")
	else
		return "00:00:00"
	end
end
PHP Code:
say(SecondsToClock(11527))
say(SecondsToClock(3540))
say(SecondsToClock(54))
say(SecondsToClock(3600)) 

:thumbsup:
rollback is offline  
Thanks
1 User
Old 01/28/2015, 15:06   #10918
 
infinty04's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 118
Received Thanks: 20
heyho

könnte evtl jemand mal gucken wieso diese quest nicht läuft auf den neuen games

infinty04 is offline  
Old 01/28/2015, 15:09   #10919

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Quote:
Originally Posted by infinty04 View Post
heyho

könnte evtl jemand mal gucken wieso diese quest nicht läuft auf den neuen games

Für die neuen games musst du xxx.kill in kill with npc.get_race()==xxx ändern.

Also z.B.:
1093.kill -> kill with npc.get_race()==1093
rollback is offline  
Thanks
1 User
Old 01/28/2015, 15:14   #10920
 
infinty04's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 118
Received Thanks: 20
Danke erstmal für die schnelle antwort


Ja habs ja schon versucht aber klappt denoch nicht

i weis nicht mehr weiter auf der 40k files lief die noch

ich nutz ja die neuen viruz files und da klappt die nicht
infinty04 is offline  
Reply




All times are GMT +1. The time now is 00:13.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.