[NuevaQuest]Evento de OX automatico

Topic created · 4 Mensajes · 2491 Visitas
  • Weno aqui les dejo la quest :

    [php]--[[
    -- Automatic OX-Event System
    -- Quest Writer By : HaveBeen(tm)
    -- Thank for help -TÜRK- xD
    -- For E*PVP
    ]]--
    quest oxevents begin
    state start begin

    function open()
    if(oxevent.open() == 0) then
    return 0
    elseif(oxevent.open() == 1) then
    return 1
    else
    return 2
    end
    end

    function quiz()
    if(oxevent.quiz(1,30) == 0) then
    return 0
    elseif(oxevent.quiz(1,30) == 1) then
    return 1
    else
    return 2
    end
    end

    function check()
    local gmlist = {"HaveBeen"} -- Enter the names of GameMaster
    for i = 1,table.getn(gmlist),1 do
    if(gmlist_== pc.name) then
    return true
    else
    return false
    end
    end
    end

    when 20011.chat."GM: Ox Event" with pc.is_gm() and oxevents.check() == true and game.get_event_flag("automatic_oxevent_status") == 0 begin
    say_title(mob_name(npc.get_race())..":")
    say("")

    say("Do you want to open the Ox-Event? ")
    say("")
    local s = select(locale.yes,locale.no)

    if(s == 2) then
    return
    end
    say_title(mob_name(npc.get_race())..":")
    say("")

    say_reward("Note : Actual Ox Event Time (H) : "..os.date("%H"))
    say("")
    say("How much do you want to open Ox Event?")

    local times = input()

    if(times == "" or times == nil) then
    return
    end

    say_title(mob_name(npc.get_race())..":")
    say("")


    game.set_event_flag("automatic_oxevent_opentime",times)
    say("Thank you the system has been activated! ")
    say("Open after "..times.." hours! ")
    game.set_event_flag("automatic_oxevent_status",1)
    server_timer('check',0.5)
    end

    when check.server_timer begin
    if(os.date("%H") == game.get_event_flag("automatic_oxevent_opentime")) then
    if(oxevents.open() == 0) then
    print("The competition is already active! ")
    elseif(oxevents.open() == 1) then
    notice_all(" Ox-Event is opened! ")
    notice_all(" Show your knowledge.. ")
    server_timer('countdownone',300)
    else
    print("An Error has occurred.. ")
    end
    else
    server_timer('checktwo',0.5)
    end
    end

    whne checktwo.server_timer begin
    if(os.date("%H") == game.get_event_flag("automatic_oxevent_opentime")) then
    if(oxevents.open() == 0) then
    print("The competition is already active! ")
    elseif(oxevents.open() == 1) then
    notice_all(" Ox-Event is opened! ")
    notice_all(" Show your knowledge.. ")
    server_timer('countdownone',300)
    else
    print("An Error has occurred.. ")
    end
    else
    server_timer('check',0.5)
    end
    end

    when countdownone.server_timer begin
    notice_all(" Closing Ox-Event Entries : 5 mins left.. ")
    server_timer("countdowntwo",60)
    end

    when countdowntwo.server_timer begin
    notice_all(" Closing Ox-Event Entries : 4 mins left.. ")
    server_timer("countdownthree",60)
    end

    when countdownthree.server_timer begin
    notice_all(" Closing Ox-Event Entries : 3 mins left.. ")
    server_timer("countdownfour",60)
    end

    when countdownfour.server_timer begin
    notice_all(" Closing Ox-Event Entries : 2 mins left.. ")
    server_timer("countdownfive",60)
    end

    when countdownfive.server_timer begin
    notice_all("_

  • Genial !!! , alguien sabria Traducirlos ??

    No se nada sobre Quest 😞

  • @'stivenelmero' said:

    Genial !!! , alguien sabria Traducirlos ??

    No se nada sobre Quest 😞

    las partes rojas creo que se pueden pasar a español pero no te se decir porque no se casi nada de quest

  • Oyes man mira el errro que da la quest

    dedi-fr-21367# ./qc oxeventgm.quest
    QUEST : oxevents
    STATE : start
    FUNCTION open()
    FUNCTION quiz()
    FUNCTION check()
    WHEN  : 20011.chat ("GM: Ox Event")
            with pc . is_gm ( ) and oxevents . check ( ) == true and game . get_event_flag ( "automatic_oxevent_status" ) == 0
    WHEN  : check.server_timer
    expecting 'when' or 'function'
    oxeventgm.quest:94:Abort (core dumped)