event

Break San

New member
Messages
240
Points
0
Location
França
Someone would have a npc event 
 
This npc only appears only when the event will start 2 once daily. 
Born in the arena mvp random 
Who kills the mvp wins a prize 
Then add the npc. 
 
More like this does not work 
 
Code:
prontera,151,151,5	script	ativamvp	-1,{OnClock1420: // hora que começaOnClock2300: // hora que começaenablenpc "MvP#hd";set $evt,0;announce "[MvP Global] Amiguinho, o evento vai começar daqui 5 minutos ... ",8,"0xFF8C69";end;OnClock1421: // hora que terminaOnClock2305: // hora que terminaset $evt,1;announce "[MvP Global] Venha matar o MvP e receba sua recompensa ! ",8,"0xFF8C69";donpcevent "MvP#hd::OnMvPHD";end;}prontera,147,168,6	script	MvP#hd	969,{mes .mv$;if($evt1!=1){mes "O evento ainda está fechado !";close;}mes "Deseja ir até a sala MvP?";switch(select("- Sim:- Não")){case 1:	next;	mes .mv$;	mes "Boa sorte então!";	announce ""+strcharinfo(0)+" entrou no evento MvP!",8,"0xFF8C69";	close2;	warp "pvp_n_1-3",100,100;	end;	case 2:	next;	mes .mv$;	mes "Tudo bem, até mais!";	close;	}end;OnMvPHD:announce "[MvP Global] Em 15 segundos um MVP fodelástico irá surgir e matar todos vocês",bc_map,"0xFF8C69";sleep 15000;killmonster "pvp_n_1-3","MvP#hd::OnLabelMVP";set .@rand,rand(getarraysize(.mvps));monster "pvp_n_1-3",100,100,strmobinfo(2,.mvps[.@rand]),.mvps[.@rand],1,"MvP#hd::OnLabelMVP";announce "[MvP Global] O MvP "+strmobinfo(2,.mvps[.@rand])+" apareceu no mapa!",bc_map,"0xFF8C69";end;OnLabelMVP:disablenpc "MvP#hd";getitem 665,1; // premiaçãoannounce "[MvP Global]"+strcharinfo(0)+" matou  o MvP!",bc_map,"0xFF8C69";set $evt,0;end;//OnInit:set .mv$,"[MvP Global]"; // nome do npcsetarray .mvps[0],1039,1115,1112,1046,1086; // ids dos mvp'send;//}pvp_n_1-3	mapflag	gvg	offpvp_n_1-3	mapflag	nowarppvp_n_1-3	mapflag	noteleportpvp_n_1-3	mapflag	nowarptopvp_n_1-3	mapflag	nobranchpvp_n_1-3	mapflag	nosave	SavePointpvp_n_1-3	mapflag	nomemopvp_n_1-3	mapflag	nopenaltypvp_n_1-3	mapflag	pvp	offpvp_n_1-3	mapflag	noexp
 
http://pastebin.com/WB3feVHJ
 
Can post errors?
Yes,

s5egsk.png


 
announce command was problem

announce "[MvP Global]"+strcharinfo(0)+" matou  o MvP!",bc_map,"0xFF8C69";

should be

announce "[MvP Global]"+strcharinfo(0)+" matou  o MvP!",bc_map,0xFF8C69; 
http://upaste.me/f6d515766f8ea864d

 
Did you rchanged all "0xFF8C69"; to 0xFF8C69?

 
Last edited by a moderator:
The problem that the mvp this not being born and the npc is not getting hide in.

Purpose of scrip

Code:
NPC only appears only when the event will start two once per day.Born a aletorio MVP for roundWho kills the mvp wins a prizeAs soon as the event is in the npc hide
 
Last edited by a moderator:
Back
Top