Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 03:23

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

Advertisement



Quest Problem

Discussion on Quest Problem within the Metin2 forum part of the Popular Games category.

Closed Thread
 
Old   #1
 
StyleZz1995's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 90
Received Thanks: 7
Quest Problem

Habe mal wieder ein Problem,

Ich habe eine Drop_Event Quest bissel bearbeitet sodas man ein Passwort dafür brauch um die Quest zu benutzen kann.

Ich denke der Fehler liegt bei den "end" Zeigt zumintest bei VirtualBox an.
Kann mir jemand die Quest verbessern ?

Hier die Quest wie ich sie grad habe
PHP Code:
quest item_drop begin
    state start begin
        when 20095.chat
."Item_Drop" with pc.is_gm() begin
                                        say
("Der Laden ist aus sicherheit")
                                
say("Passwort Geschützt")
                                
say("Wenn du das Richtige Passwort hast,")
                                
say("dann kannst du den Laden Benutzen.")
            
local y input()
            if 
== "12345" then
            
            
if game.get_event_flag("item_open") == 0 then
                say
("Hallo "..pc.get_name().." hier kannst")
                
say("ein Item Drop Event starten")
                
say("Willst du das tun?")
                if 
select("Ja","Nein") == 2 then return end
                say
("Bitte gib an welches Item gedroppt werden soll.")
                
kill_item tonumber(input()) or 0
                
if kill_item == 0 then
                    say
("Du musst schon was eingeben.")
                    return
                
end    
                say
("Gibt bitte ein wie die Chance zu 100 sein soll das es gedroppt wird ?")
                
kill_prozent tonumber(input()) or 0
                
if kill_prozent == 0 then
                    say
("Du musst schon was eingeben")
                    return
                
end    
                say
("Bitte gib an wie lange Das Event laufen soll ( in Minuten ) ")
                
zeit tonumber(input()) or 0
                
if zeit == 0 then
                    say
("Falsche eingabe")
                    return
                
end
                game
.set_event_flag("item_time"get_time()+zeit*60)
                
game.set_event_flag("item_open"1)
                
notice_all("Das Item Drop Event wurde gestartet")
                
notice_all("Man kann das item "..item_name(kill_item).." von allen Monster droppen.")
                
notice_all("Für "..zeit.." Minute(n)")
            else 
                
say("Item Drop Event ist derzeit schon aktiv")
                
say("Beenden?")
                if 
select("Ja""Nein")==2 then return end
                game
.set_event_flag("item_open"0)
                
kill_prozentkill_item nilnil
            end
        end
        when kill with game
.get_event_flag("item_open") == and not npc.is_pc() begin
            
if kill_prozent == nil then game.set_event_flag("item_open"0) return end
            
if game.get_event_flag("item_time") < get_time() then
                notice_all
("Das Item Drop Event ist vorbei")
                
notice_all("Wir hoffen ihr hattet euren Spaß beim Farmen.")
                
notice_all("Euer UniversalMt2-Team.")
                
game.set_event_flag("item_open"0)
                
kill_prozentkill_item nilnil
                
return
            
end
            local s
=number(1101-kill_prozent
            if 
s==1 then
                game
.drop_item_with_ownership(kill_item1
            
end
        end
        when login with game
.get_event_flag("item_open") == 1 begin
            notice
("Das Item Drop Event laeuft du kannst das"
            
notice("Item "..item_name(kill_item).." von allen Monstern droppen")
                                    
say("Richtiges Passwort")
                        else
                        
say("Falsches Passwort")
                    
end
                
else 
 
                   return 
                else
            
end
        end
    end
end 
StyleZz1995 is offline  
Old 11/27/2013, 15:29   #2


 
[uLow]TheCraftingMan's Avatar
 
elite*gold: 215
Join Date: Sep 2010
Posts: 6,340
Received Thanks: 2,634
Das kommt in den P-server Bereich



#Moverequest!
[uLow]TheCraftingMan is offline  
Old 11/28/2013, 21:55   #3

 
Otakanikaru's Avatar
 
elite*gold: 133
Join Date: Nov 2013
Posts: 454
Received Thanks: 453
lol easy
Otakanikaru is offline  
Closed Thread


Similar Threads Similar Threads
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
[quest] problem
01/02/2011 - Metin2 Private Server - 0 Replies
when 2525.kill begin say("test") end not working when 101.kill begin say("Test") end working
Quest Problem^^
03/02/2010 - Metin2 Private Server - 4 Replies
Moin Comm, ich hab en Prob mit einer von mir geschriebenen Quest, sie wird mit Lv. 65+ einfach nicht angezeigt ingame, kann mir wer sagen ob da en Fehler drinn ist? Quest ist sowohl in der hongkonglist als auch im Quest Ordner: LG
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +1. The time now is 03:23.


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.