Scofield Posted August 13, 2014 Posted August 13, 2014 I want this event begins only once a week, on Saturday the 20 hours. prontera,134,231,5 script UFC 65,{ mes "[ UFC ]"; mes "Olá "+ strcharinfo(0) +"!"; mes "Bem-Vindo ao Evento UFC."; next; mes "Deseja entrar?"; switch(select("Sim, entrar no evento.", "Não, talvez depois.")){ case 1: if ($aberto == 0) goto fechado; warp "ufc_pvp2",49,50; dispbottom "Você está dentro do Evento UFC! Boa Sorte!"; end; case 2: close2; end; } fechado: mes "Desculpe o evento está fechado."; mes "Volte mais tarde"; close; end; } ufc_pvp2,0,0,0 script NoEvento -1,{ OnWhisperGlobal: if (getgmlevel() == 99) { mes "Deseja Ligar o Evento?"; switch(select("Ligar","Sair")) { case 1: dispbottom "Evento Ligado com Sucesso!"; callsub OnEventStart; close; end; case 2: close; end; } } OnClock0100: callsub OnEventStart; OnClock0300: callsub OnEventStart; OnClock0500: callsub OnEventStart; Onclock0700: callsub OnEventStart; Onclock0900: callsub OnEventStart; OnClock1100: callsub OnEventStart; OnClock1200: callsub OnEventStart; OnClock1300: callsub OnEventStart; OnClock1500: callsub OnEventStart; OnClock1700: callsub OnEventStart; OnClock1900: callsub OnEventStart; OnClock2100: callsub OnEventStart; OnClock2300: callsub OnEventStart; OnEventStart: set $aberto,1; pvpoff "ufc_pvp2"; atcommand "@killmonster2"; announce "[Evento UFC]: O Evento UFC está aberto você tem 4 minutos para entrar!",0; sleep2 60000; announce "[Evento UFC]: Você tem 3 minutos para entrar no evento!",0; sleep2 60000; announce "[Evento UFC]: Você tem 2 minutos para entrar no evento!",0; sleep2 60000; announce "[Evento UFC]: Você tem 1 minuto para entrar no evento!",0; sleep2 60000; announce "[Evento UFC]: O Evento UFC Começou! Portais Fechados!",0; set $aberto,0; goto comecou; end; comecou: if(getmapusers("ufc_pvp2") == 1) goto cancelado; MapAnnounce "ufc_pvp2", "[Evento UFC]: O Evento terá Inicio em 30 Segundos! Preparem-Se!",0; sleep2 27000; MapAnnounce "ufc_pvp2", "Preparados ?",0; sleep2 1000; MapAnnounce "ufc_pvp2", "Vamos lá!",0; sleep2 1000; MapAnnounce "ufc_pvp2", "Valendoo!!!",0; pvpon "ufc_pvp2"; atcommand "@skillon"; end; cancelado: announce "[Evento UFC]: O Evento UFC foi cancelado por falta de jogadores.",0; sleep2 5000; mapwarp "ufc_pvp2","cydonia",138,86; end; } - script MortoVivo -1,{ OnPCKillEvent: if (strcharinfo(3) != "ufc_pvp2") end; if (getmapusers("ufc_pvp2") > 1) end; monster "ufc_pvp2", 49, 50, "Baú de Guerra", 1732, 1, "Entregador#func::OnQuebrarBau"; end; OnPCDieEvent: if (strcharinfo(3) != "ufc_pvp2") end; warp "cydonia",138,86; end; } - script Entregador#func -1,{ OnQuebrarBau: pvpoff "ufc_pvp2"; getitem 7539,20; //Caixa de Presença announce "O vencedor do Evento UFC foi o jogador "+strcharinfo( 0 )+"!",bc_all; warp "cydonia",138,86; end; } // MapFlags ufc_pvp2 mapflag nomemo ufc_pvp2 mapflag nopenalty ufc_pvp2 mapflag nobranch ufc_pvp2 mapflag pvp_noguild ufc_pvp2 mapflag noloot ufc_pvp2 mapflag noexp ufc_pvp2 mapflag noteleport ufc_pvp2 mapflag noreturn ufc_pvp2 mapflag nowarp ufc_pvp2 mapflag nowarpto ufc_pvp2 mapflag nosave SavePoint ufc_pvp2 mapflag pvp ufc_pvp2 mapflag pvp_noparty Quote
Norm Hmuryj Posted August 13, 2014 Posted August 13, 2014 You can Modify this script - script Agit2_Event -1,{ end; OnClock1800: //start time for Tues(2), Thurs(4) OnClock2000: //end time for Tues(2), Thurs(4) OnClock2100: //start time for Sat(6) OnClock2300: //end time for Sat(6) OnAgitInit2: // starting time checks if((gettime(4)==2) && (gettime(3)>=18 && gettime(3)<21) || (gettime(4)==4) && (gettime(3)>=18 && gettime(3)<21) || (gettime(4)==6) && (gettime(3)>=22 && gettime(3)<23)) { if (!agitcheck2()) { AgitStart2; } end; } // end time checks if ((gettime(4)==2) && (gettime(3)==21) || (gettime(4)==4) && (gettime(3)==21) || (gettime(4)==6) && (gettime(3)==23)) { if (agitcheck2()) { AgitEnd2; } end; } end; } Maybe prontera,134,231,5 script UFC 65,{ mes "[ UFC ]"; mes "Olá "+ strcharinfo(0) +"!"; mes "Bem-Vindo ao Evento UFC."; next; mes "Deseja entrar?"; switch(select("Sim, entrar no evento.", "Não, talvez depois.")){ case 1: if ($aberto == 0) goto fechado; warp "ufc_pvp2",49,50; dispbottom "Você está dentro do Evento UFC! Boa Sorte!"; end; case 2: close2; end; } fechado: mes "Desculpe o evento está fechado."; mes "Volte mais tarde"; close; end; } ufc_pvp2,0,0,0 script NoEvento -1,{ OnWhisperGlobal: if (getgmlevel() == 99) { mes "Deseja Ligar o Evento?"; switch(select("Ligar","Sair")) { case 1: dispbottom "Evento Ligado com Sucesso!"; callsub OnEventStart; close; end; case 2: close; end; } } - script Agit3_Event -1,{ end; OnClock2000: //start time for Tues(2), Thurs(4) OnAgitInit3: // starting time checks if((gettime(4)==0) && (gettime(3)>=20)) { if (!agitcheck3()) { OnEventStart; } end; } OnEventStart: set $aberto,1; pvpoff "ufc_pvp2"; atcommand "@killmonster2"; announce "[Evento UFC]: O Evento UFC está aberto você tem 4 minutos para entrar!",0; sleep2 60000; announce "[Evento UFC]: Você tem 3 minutos para entrar no evento!",0; sleep2 60000; announce "[Evento UFC]: Você tem 2 minutos para entrar no evento!",0; sleep2 60000; announce "[Evento UFC]: Você tem 1 minuto para entrar no evento!",0; sleep2 60000; announce "[Evento UFC]: O Evento UFC Começou! Portais Fechados!",0; set $aberto,0; goto comecou; end; comecou: if(getmapusers("ufc_pvp2") == 1) goto cancelado; MapAnnounce "ufc_pvp2", "[Evento UFC]: O Evento terá Inicio em 30 Segundos! Preparem-Se!",0; sleep2 27000; MapAnnounce "ufc_pvp2", "Preparados ?",0; sleep2 1000; MapAnnounce "ufc_pvp2", "Vamos lá!",0; sleep2 1000; MapAnnounce "ufc_pvp2", "Valendoo!!!",0; pvpon "ufc_pvp2"; atcommand "@skillon"; end; cancelado: announce "[Evento UFC]: O Evento UFC foi cancelado por falta de jogadores.",0; sleep2 5000; mapwarp "ufc_pvp2","cydonia",138,86; end; } - script MortoVivo -1,{ OnPCKillEvent: if (strcharinfo(3) != "ufc_pvp2") end; if (getmapusers("ufc_pvp2") > 1) end; monster "ufc_pvp2", 49, 50, "Baú de Guerra", 1732, 1, "Entregador#func::OnQuebrarBau"; end; OnPCDieEvent: if (strcharinfo(3) != "ufc_pvp2") end; warp "cydonia",138,86; end; } - script Entregador#func -1,{ OnQuebrarBau: pvpoff "ufc_pvp2"; getitem 7539,20; //Caixa de Presença announce "O vencedor do Evento UFC foi o jogador "+strcharinfo( 0 )+"!",bc_all; warp "cydonia",138,86; end; } // MapFlags ufc_pvp2 mapflag nomemo ufc_pvp2 mapflag nopenalty ufc_pvp2 mapflag nobranch ufc_pvp2 mapflag pvp_noguild ufc_pvp2 mapflag noloot ufc_pvp2 mapflag noexp ufc_pvp2 mapflag noteleport ufc_pvp2 mapflag noreturn ufc_pvp2 mapflag nowarp ufc_pvp2 mapflag nowarpto ufc_pvp2 mapflag nosave SavePoint ufc_pvp2 mapflag pvp ufc_pvp2 mapflag pvp_noparty I have not free time for realise it, sorry. 1 Quote
Scofield Posted August 15, 2014 Author Posted August 15, 2014 Trx ... Thank you, it worked he also has another problem, if the adiversario @die or leave the map the script does the prize for those who stay know what the problem? Quote
Question
Scofield
I want this event begins only once a week, on Saturday the 20 hours.
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.