[NuevaQuest]Evento de OX automatico
-
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 beginfunction open()
if(oxevent.open() == 0) then
return 0
elseif(oxevent.open() == 1) then
return 1
else
return 2
end
endfunction quiz()
if(oxevent.quiz(1,30) == 0) then
return 0
elseif(oxevent.quiz(1,30) == 1) then
return 1
else
return 2
end
endfunction 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
endwhen 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
endsay_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)
endwhen 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
endwhne 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
endwhen countdownone.server_timer begin
notice_all(" Closing Ox-Event Entries : 5 mins left.. ")
server_timer("countdowntwo",60)
endwhen countdowntwo.server_timer begin
notice_all(" Closing Ox-Event Entries : 4 mins left.. ")
server_timer("countdownthree",60)
endwhen countdownthree.server_timer begin
notice_all(" Closing Ox-Event Entries : 3 mins left.. ")
server_timer("countdownfour",60)
endwhen countdownfour.server_timer begin
notice_all(" Closing Ox-Event Entries : 2 mins left.. ")
server_timer("countdownfive",60)
endwhen 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)