Nume: Quest event drop item
Descriere:
Imagini:
Quest/arma/armura/etc: QUest
Download(Optional):
Code:
quest item_drop begin
    state start begin
        when 20020.chat."Item_Drop" with pc.is_gm() begin
            if game.get_event_flag("item_open") == 0 then
                say("Hello "..pc.get_name().." ")
                say("Metin2Freakz iti prezinta:")
                say("NPC GM pentru event drop item")
                say("Aici poti activa dropul unui item")
                say("vrei sa faci asta?")
                if select("da","nu") == 2 then return end
                say("Introdu codul itemului care doresti sa fie dropat!")
                kill_item = tonumber(input()) or 0
                if kill_item == 0 then
                    say("Datele au fost introduse gresit. Incercati din nou!")
                    return
                end    
                say("Care vrei sa fie sansa dropului?")
                kill_prozent = tonumber(input()) or 0
                if kill_prozent == 0 then
                    say("Datele au fost introduse gresit. Incercati din nou!")
                    return
                end    
                say("Cat timp vrei sa se dropeze? Minute!")
                zeit = tonumber(input()) or 0
                if zeit == 0 then
                    say("Datele au fost introduse gresit. Incercati din nou!")
                    return
                end
                game.set_event_flag("item_time", get_time()+zeit*60)
                game.set_event_flag("item_open", 1)
                notice_all("Item drop activat")
                notice_all("Itemul "..item_name(kill_item).." este dropabil la toti monstri din joc.")
                notice_all("Pentru "..zeit.." Minute")
            else 
                say("Eventul item drop este deja activ")
                say("Opriti eventul?")
                if select("Da", "NU")==2 then return end
                game.set_event_flag("item_open", 0)
                kill_prozent, kill_item = nil, nil
            end
        end
        when kill with game.get_event_flag("item_open") == 1 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("Eventul dropului de iteme a luat sfarsit")
                notice_all("Multumim farmerilor ce sunt alatori de Metin2Freakz la evenimente!")
                game.set_event_flag("item_open", 0)
                kill_prozent, kill_item = nil, nil
                return
            end
            local s=number(1, 101-kill_prozent) 
            if s==1 then
                game.drop_item_with_ownership(kill_item, 1) 
            end
        end
        when login with game.get_event_flag("item_open") == 1 begin
            notice("Event item drop este activat") 
            notice("Itemul "..item_name(kill_item).." este dropabil la toti monstri din joc.")
        end
    end
end


Tutorial instalare quest:
? Salvati continutul quest-ului într-un fisier text numit de exemplu nume_quest.quest
? Va conectati la filezilla / winscp si întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveti).
? Îl puneti acolo (sa fie .quest sau .lua) si da-ti permisiuni 777.
? Te loghezi în FreeBSD / putty si scrii în felul urmator: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
? Intrati pe server si scrieti /reload q
? Testati quest-ul.