Register for your free account! | Forgot your password?

You last visited: Today at 05:39

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

Advertisement



Need Quest

Discussion on Need Quest within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2013
Posts: 18
Received Thanks: 3
Need Quest

Hallo, Ich brauche ein Weihnachtsgeschenk Suche nach einer Brust, die 10-mal geöffnet werden kann, 1 mal 3 Stunde


up

Up
ArgazmDonor is offline  
Old 02/22/2013, 13:26   #2
 
elite*gold: 0
Join Date: Feb 2013
Posts: 18
Received Thanks: 3
Up
ArgazmDonor is offline  
Old 02/25/2013, 15:48   #3
 
elite*gold: 0
Join Date: Feb 2013
Posts: 18
Received Thanks: 3
Up =(
ArgazmDonor is offline  
Old 02/25/2013, 15:56   #4
 
LuggexD's Avatar
 
elite*gold: 30
Join Date: Aug 2009
Posts: 114
Received Thanks: 43
add me in skype .. check nicht, was du willst aber kann dir schnell eine schreiben , wenn ich sie checkt hab^^
LuggexD is offline  
Thanks
1 User
Old 02/25/2013, 16:24   #5
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
Code:
quest item begin
	state start begin
		when vnum.use begin
			if pc.getqf("warten") == 0 then
				pc.give_item2(19,1)
				pc.remove_item(item.get_vnum(), 1)
				pc.setqf("warten",1)
				timer("wartezeit", 7200)
			else
				chat("Du kannst das Item noch nicht öffnen!")
			end
		end
		when wartezeit.timer begin
			pc.setqf("warten",0)
		end
	end
end
Sollte funktionieren :3
.Remix is offline  
Thanks
1 User
Old 02/25/2013, 18:14   #6
 
elite*gold: 0
Join Date: Mar 2012
Posts: 765
Received Thanks: 535
hatte mal lw
PHP Code:
quest item begin
    state start begin
        when vnum
.use begin
            local tab
={{vnum,count},{vnum,count},
            {
vnum,count},{vnum,count},{vnum,count},
            {
vnum,count},{vnum,cout},{vnum,cout},
            {
vnum,cout},{vnum,cout},}
            if 
pc.getqf("use")>=10 then
                pc
.remove_item(item.get_vnum(), 1)
                
pc.delqf("use")
                return
            
end
            
if pc.getqf("wait_time") > get_time() then
                chat
("du kannst "..item_name(item.get_vnum()).." noch nicht benutzen")
                return
            
end
            pc
.setqf("use",pc.getqf("use")+1)
            
pc.give_item(tab[number(1,#tab)][1],tab[number(1,#tab)][2])
            
chat("du hast "..item_name(tab[number(1,#tab)][1]).." erhalten")
            
pc.setqf("wait_time"get_time()+60*60)
        
end
    end
end 
©by Noa is offline  
Thanks
2 Users
Old 02/26/2013, 13:52   #7
 
elite*gold: 0
Join Date: Feb 2013
Posts: 18
Received Thanks: 3
©by Noa
error
ArgazmDonor is offline  
Old 02/26/2013, 14:19   #8
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
Code:
quest truhe begin
	state start begin
		when login with pc.getqf("first") == 0 begin
			pc.setqf("uses",10)
			pc.setqf("first",1)
		when vnum.use begin
			if pc.getqf("warten") == 0 then
				local item_give = {
					{19, 1}, -- Vnum, Anzahl
					{29, 1},
					{39, 1},
					{49, 1},
				}
				local rnd = number(1, table.getn(item_give))
				pc.give_item2(item_give[rnd][1], item_give[rnd][2]) --Ein zufälliges Item aus der Tabelle item_give
				pc.setqf("uses", pc.getqf("uses")-1)
				pc.setqf("warten",1)
				timer("warten", 7200)
					if pc.getqf("uses") == 0 then
						pc.remove_item(item.get_vnum(), 1)
					else
						chat("Du kannst die Truhe noch "..pc.getqf("uses").." mal öffnen!")
					end
				end
			else
				chat("Du kannst diese Truhe noch nicht öffnen.")
				chat("Du musst noch "..timer("warten").." Sekunden warten.")
			end
		end
		when warten.timer begin
			pc.setqf("warten",0)
		end
	end
end
Hatte auch mal Langeweile.
Sollte so, wie auf DE sein.

Musst halt nur die Vnum & Anzahl in item_give ändern.
.Remix is offline  
Old 02/26/2013, 14:22   #9
 
elite*gold: 0
Join Date: Mar 2012
Posts: 765
Received Thanks: 535
mein fehler, ich schreiben die quests immer an einem lua editor deswegen erkennt er manche funktionen nicht. Hier nochmal die Quest ohne den Fehler.
PHP Code:
quest item begin 
    state start begin 
        when vnum
.use begin 
            local tab
={{vnum,count},{vnum,count}, 
            {
vnum,count},{vnum,count},{vnum,count}, 
            {
vnum,count},{vnum,cout},{vnum,cout}, 
            {
vnum,cout},{vnum,cout},} 
            if 
pc.getqf("use")>=10 then 
                pc
.remove_item(item.get_vnum(), 1
                
pc.delqf("use"
                return 
            
end 
            
if pc.getqf("wait_time") > get_time() then 
                chat
("du kannst "..item_name(item.get_vnum()).." noch nicht benutzen"
                return 
            
end 
            pc
.setqf("use",pc.getqf("use")+1
            
pc.give_item2(tab[number(1,table.getn(tab))][1],tab[number(1,table.getn(tab))][2]) 
            
chat("du hast "..item_name(tab[number(1,table.getn(tab))][1]).." erhalten"
            
pc.setqf("wait_time"get_time()+60*60) --1h wartezeit
        end 
    end 
end 
@remix hast du deine schon getestet?
©by Noa is offline  
Thanks
1 User
Old 02/26/2013, 14:28   #10
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
Quote:
Originally Posted by ©by Noa View Post
mein fehler, ich schreiben die quests immer an einem lua editor deswegen erkennt er manche funktionen nicht. Hier nochmal die Quest ohne den Fehler.
PHP Code:
quest item begin 
    state start begin 
        when vnum
.use begin 
            local tab
={{vnum,count},{vnum,count}, 
            {
vnum,count},{vnum,count},{vnum,count}, 
            {
vnum,count},{vnum,cout},{vnum,cout}, 
            {
vnum,cout},{vnum,cout},} 
            if 
pc.getqf("use")>=10 then 
                pc
.remove_item(item.get_vnum(), 1
                
pc.delqf("use"
                return 
            
end 
            
if pc.getqf("wait_time") > get_time() then 
                chat
("du kannst "..item_name(item.get_vnum()).." noch nicht benutzen"
                return 
            
end 
            pc
.setqf("use",pc.getqf("use")+1
            
pc.give_item(tab[number(1,table.getn(tab))][1],tab[number(1,table.getn(tab))][2]) 
            
chat("du hast "..item_name(tab[number(1,table.getn(tab))][1]).." erhalten"
            
pc.setqf("wait_time"get_time()+60*60
        
end 
    end 
end 
@remix hast du deine schon getestet?
Nö, zu faul xd
Kann höchstens auf Fehler testen aber keine Lust Testserver zu starten.

Btw finde deine zu kompliziert für jemanden, der nicht viel Ahnung davon hat.
.Remix is offline  
Thanks
1 User
Old 02/26/2013, 14:38   #11
 
elite*gold: 0
Join Date: Mar 2012
Posts: 765
Received Thanks: 535
bei dir fehlt ein end bei when login with... begin
->Das ist mein Schreibstil.
€. ist der timer nicht global?
©by Noa is offline  
Thanks
1 User
Old 02/26/2013, 14:42   #12
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
Fuu..
Danke :3

Code:
quest truhe begin
	state start begin
		when login with pc.getqf("first") == 0 begin
			pc.setqf("uses",10)
			pc.setqf("first",1)
		end
		when 19.use begin
			if pc.getqf("warten") == 0 then
				local item_give = {
					{19, 1}, -- Vnum, Anzahl
					{29, 1},
					{39, 1},
					{49, 1},
				}
				local rnd = number(1, table.getn(item_give))
				pc.give_item2(item_give[rnd][1], item_give[rnd][2]) --Ein zufälliges Item aus der Tabelle item_give
				pc.setqf("uses", pc.getqf("uses")-1)
				pc.setqf("warten",1)
				timer("warten", 7200)
					if pc.getqf("uses") == 0 then
						pc.remove_item(item.get_vnum(), 1)
					elseif pc.getqf("uses") == 1 then
						chat("Du kannst die Truhe noch "..pc.getqf("uses").." mal öffnen!")
					end
			else
				chat("Du kannst diese Truhe noch nicht öffnen.")
				chat("Du musst noch "..timer("warten").." Sekunden warten.")
			end
		end
		when warten.timer begin
			pc.setqf("warten",0)
		end
	end
end
Der normale Timer? Nein.
Der ist für jeden User einzelnd.

Der server_timer oder server_loop_timer ist für alle.
.Remix is offline  
Old 02/26/2013, 18:08   #13
 
elite*gold: 0
Join Date: Feb 2013
Posts: 18
Received Thanks: 3
©by Noa
quest giv 1 icon yang =(
ArgazmDonor is offline  
Old 02/26/2013, 18:33   #14
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
Chance pc.give_item to pc.give_item2.
.Remix is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[SPECIAL TEAM_WARP QUEST]'nd Metin2 Sweet Time Quest's Icons and News
01/27/2013 - Metin2 PServer Guides & Strategies - 22 Replies
deleted!
Compile all quest without quest's files list // Kompilieren Sie alle Quest ohne Quest
07/17/2011 - Metin2 PServer Guides & Strategies - 3 Replies
ENGLISH Hello dear community, this is a very simple guide but at the same time useful. How to compile ALL quest in the folder "quest" without the files list in the file "locale_list"? Easy! Open the file "make" and replace the content of the file with this: for f in *.quest; do ./qc $f; done Oki. Now set the 0777 permission to the file. Finally open a SSH client and sign in. Write the command: cd /game_file_folder



All times are GMT +2. The time now is 05:39.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.