Jump to content

MrLibya

Premium
  • Posts

    378
  • Joined

  • Last visited

  • Days Won

    8
  • Feedback

    0%

Posts posted by MrLibya

  1. M2 Download Center

    This is the hidden content, please
    ( Internal )

    hallo all

    i want public my auto even quest , it's very simple to understand i made it from some long time

     

    quest auto_events begin
        state start begin
            when 20086.chat."auto event" with pc.is_gm() begin
                say_title(" Hallo "..pc.get_name())
                say(" state now "..game.get_event_flag("autoevent").." ")
                say(" ")
                local s = select(" active "," disable "," close ")
                if s == 1 then
                    setskin(NOWINDOW)
                    server_loop_timer("auto_event_timer", 1)
                    game.set_event_flag("autoevent", 1)
                elseif s == 2 then
                    setskin(NOWINDOW)
                    clear_server_timer("auto_event_timer")
                    game.set_event_flag("autoevent", 0)
                end
            end
            when auto_event_timer.server_timer begin
                local events_info = {
                    {"Sat 14:00", "hair", "event", "hairup", 1, " 4 hours ", "Sat 18:00", 0},
                    {"Sun 14:00", "6 Shabe Box", "event", "2006_drop", 1, " 4 hours ", "Sun 18:00", 0},
                    {"Mon 13:00", "Gold ball", "event", "gold_bool", 1, " 4 hours ", "Mon 18:00", 0},
                    {"Tue 14:00", "dressup box", "event", "dressup", 1, " 4 hours ", "Tue 18:00", 0},
                    {"Wed 14:00", "fotball box", "event", "football_drop", 1, " 4 hours ", "Wed 18:00", 0},
                    {"Thu 14:00", "moon box", "event", "drop_moon", 1, " 4 hours ", "Thu 18:00", 0},
                    {"Fri 14:00", "mount", "event", "Mount_Ring_Event", 1, " 4 hours ", "Fri 18:00", 0},
                }
                local day_time = os.date("%a %H:%M")
                for i,v in ipairs(events_info) do
                    if v[1] == day_time then
                        if game.get_event_flag(v[4]) != v[5] then
                            notice_all("notice: event  "..v[2].." actived for "..v[6].."  started from now! ")
                            game.set_event_flag(v[4], v[5])
                        end
                    elseif v[7] == day_time then
                        if game.get_event_flag(v[4]) != v[8] then
                            notice_all(" notice: event "..v[2].." finish, see u with other events !! ")
                            game.set_event_flag(v[4], v[8])
                        end
                    end
                end
            end
        end
    end
     
     
    
    • Metin2 Dev 36
    • kekw 1
    • Eyes 1
    • Dislove 1
    • Sad 1
    • Good 8
    • muscle 1
    • Love 1
    • Love 36
  2. try this

     

    function is_weekend()
        local weekend = os.date("%w")
        local day = os.date("%%A")
        if day == weekend
            return true
        else
            return false
        end
    end
    
  3. hallo all

    from some time i get this bug

    https://www.youtube.com/watch?v=MguNZvEo6dg

    not allways it's sometime come ( duel or by mob )

    syserr client :

    0729 02:28:54444 :: ELTimer_GetMSec() - m_dwEmoticonTime
    0729 02:28:55635 :: CInstanceBase::PushTCPState You can't send move packets to yourself!
    0729 02:31:52134 :: CInstanceBase::PushTCPState You can't send move packets to yourself!
    0729 02:32:00263 :: ELTimer_GetMSec() - m_dwEmoticonTime
    0729 02:32:31435 :: ELTimer_GetMSec() - m_dwEmoticonTime
    [/code]

     

  4. thx for the system i didnt test it or add it
    also iam not c++ progream but your code it seem to be ugly -_-

    good luck :)

    ​Really? I can't find anything ugly about this. Actually the c++ part is very nice. I didn't check on python.

    And why are you wishing him good luck at his own release? ._. Sometimes I don't understand people...^^

     

    Anyway, the idea behind that is great and I like the c++ part a lot. Oh, and a german sentence slipped through ;)

     

    I know that it isn't the best c++ Code, but I really.love using maps ^^

     

    Py part is 1:1 from wom:o

     

    And yeah the German sentence comes through :D

    sorry for that ^^

    Mobile phone and yeah :D

    i dont know how to tell u why he is ugly

    also iam arabic from libya not germany

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.