Hey guys, I need the modification in this event for every 2 hours!
code:
Spoiler
- script Bombring-1,{OnInit:set.eventstarted,0;set $bombring_reward,100;
bindatcmd "enablebombring","Bombring::OnGMStart";
bindatcmd "disablebombring","Bombring::OnGMStop";
hideonnpc "The Baaam#qz";
hideonnpc "Evento BombRing#prt";
end;OnGMStart:if(getgroupid()<99){
dispbottom "You are not eligible for this command.", RED;
end;}set.eventstarted,0;OnEventStart:
initnpctimer;
hideoffnpc "Evento BombRing#prt";set.x,5;OnTimer0000:if(.eventstarted ==1)
end;
announce "[BombRing]: O evento BombRing começou, vá em prontera para entrar!",bc_all;
sleep2 5000;
announce "[BombRing]: "+.x+" minutos para começar!",bc_all;set.x,.x -1;
end;OnTimer60000:OnTimer120000:OnTimer180000:OnTimer240000:if(.eventstarted ==1)
end;
announce "[BombRing]: "+.x+" minutos para o evento começar!",bc_all;set.x,.x -1;
end;OnTimer290000:if(.eventstarted ==1)
end;
announce "[BombRing]: 10 segundos para começar!",bc_all;
end;OnTimer300000:if(.eventstarted ==1)
end;set.totalplayers, getmapusers ("quiz_02");
announce "[The Baaam]: "+.totalplayers+" jogadores entraram no evento!",bc_all;
announce "[The Baaam]: O evento começou!!",bc_all;
hideonnpc "The Baaam#prt";
stopnpctimer;
callsub OnEventStart1;
end;OnEventStart1:set.totalplayers, getmapusers ("quiz_02");
mapannounce "quiz_02","[BombRing]: Ok, escutem, é assim que funciona.",bc_all;
sleep 2000;
mapannounce "quiz_02","[BombRing]: Bombrings correrão desenfreados nesta área.",bc_all;
sleep 2000;
mapannounce "quiz_02","[BombRing]: e todos eles vão...BOOOOOOM!",bc_all;
sleep 2000;
mapannounce "quiz_02","[BombRing]: tudo o que você tem que fazer é ficar vivo :P",bc_all;
sleep 2000;
mapannounce "quiz_02","[BombRing]: Isso acontecerá por 30 segundos, em um total de 5 rounds.",bc_all;
sleep 2000;
mapannounce "quiz_02","[BombRing]: Entãoooo, prontos ou não ai vem eles!!!", bc_all;for(set.round,1;.round <=5;set.round,.round +1){set.totalplayers, getmapusers ("quiz_02");
callsub OnBombringSummon;
sleep 10000;}if(.round >5&& getmapusers("quiz_02")>0){
hideoffnpc "The Baaam#qz";
mapannounce "quiz_02","[BombRing]: Wooooow! Isso é raro! jogadores ganharam! :D",bc_all;}
end;OnBombringSummon:
mapannounce "quiz_02","[BombRing]: Round "+.round+"!!",bc_all;set.eventstarted,1;
initnpctimer;while(.eventstarted ==1){if((3*.totalplayers)<=60)
areamonster "quiz_02",48,334,71,357,"Corra por sua vida!",1904,3*.totalplayers;else
areamonster "quiz_02",48,334,71,357,"Corra por sua vida!",1904,60;if(.round ==1){
sleep 4000;}elseif(.round ==2){
sleep 3000;}elseif(.round ==3){
sleep 2000;}elseif(.round ==4){
sleep 1500;}elseif(.round ==5){
sleep 1000;}}if(.eventstarted ==1)
mapannounce "quiz_02","[BombRing]: Round "+.round+" acabou!!",bc_all;if(.round <5)
mapannounce "quiz_02","[BombRing]: proximo round em 10 segundos.",bc_all;return;OnTimer31000:if(.eventstarted ==0)
end;elseset.eventstarted,0;
killmonsterall "quiz_02";
cleanmap "quiz_02";
stopnpctimer;
end;OnPCDieEvent:if(strcharinfo(3)=="quiz_02"){
mapannounce "quiz_02","[BombRing]: "+strcharinfo(0)+" foi explodido!!",bc_all;
dispbottom "Você recebeu 1x [Ticket de Recompensa] por participar do evento.";
getitem 100,1;
warp "savepoint",0,0;if(getmapusers("quiz_02")<=1){
stopnpctimer;set.eventstarted,0;set.round,6;
killmonsterall "quiz_02";
cleanmap "quiz_02";
hideoffnpc "The Baaam#qz";
mapannounce "quiz_02","[The Baaam]: Temos um vencedor!!",bc_all;}}
end;OnGMStop:set.eventstarted,0;set.round,6;
killmonsterall "quiz_02";
cleanmap "quiz_02";
hideoffnpc "The Baaam#qz";
end;}
quiz_02,59,345,5 script TheBaaam#qz 1904,{
mes "[^666699"+strnpcinfo(1)+"^000000]";
mes "Mandou bem! Você é muito bom nisso!";
next;
mes "[^666699"+strnpcinfo(1)+"^000000]";
mes "Você recebeu ^ff990010x [<ITEM>Moedas de Ouro<INFO>671</INFO></ITEM>]^000000 e ^ff99005x [<ITEM>Ticket's de Recompensa<INFO>100</INFO></ITEM>]^000000";
getitem 671,10;
getitem $bombring_reward,5;
next;
mes "[^666699"+strnpcinfo(1)+"^000000]";
mes "Agora saia antes que você acabe explodindo!";
next;
atcommand "@go 0";
end;}
prontera,142,167,5 script EventoBombRing#prt 879,{
mes "[^666699The Baaam^000000]";
mes "Olá!! gostaria de participar do evento Bombring?";Switch(Select("Sim!:Que evento é esse?:Não...")){case1:
mes "[^666699The Baaam^000000]";
mes "Muito bem! esteja pronto!";
next;
warp "quiz_02",59,345;break;case2:
mes "[^666699The Baaam^000000]";
mes "Bem, tudo o que você tem que fazer é ficar vivo...";
mes "Isto é, esquivando das explosões dos ^00FF00Bombrings^000000!";
next;
mes "[^666699The Baaam^000000]";
mes "Se você ganhar:";
mes "^ff990010x [<ITEM>Moedas de Ouro<INFO>671</INFO></ITEM>]^000000";
mes "^ff99005x [<ITEM>Ticket's de Recompensa<INFO>100</INFO></ITEM>]^000000";
close;break;case3:
mes "[^666699The Baaam^000000]";
mes "Tudo bem, volte se mudar de idéia!";
close;break;}
end;OnInit:
hideonnpc "Evento BombRing#prt";}
Question
Vettra
Hey guys, I need the modification in this event for every 2 hours!
code:
Link to comment
Share on other sites
1 answer 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.