Jump to content
  • 0

MVP event


geoffreypogi

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  71
  • Reputation:   0
  • Joined:  05/13/16
  • Last Seen:  

Hi guys! 

Here I am again. I'm out of idea now. Can anyone help me with this? It seems that ::Onkilled is not responding after killing the mvp on this script. It can summon the mvp as I wanted all of it works other than the one below. I dunno why... I believe I call it right... but it does not work.
 

OnKilled:
announce "MVP Event : MVPs are all dead. Let's meet again tomorrow",0;
mapwarp .Map$,"prontera",156,175;
end;
 
-	script	MVP#disable	-1,{

OnInit:
disablenpc "Summoner";
disablenpc "MVP Summoner";
end;
}

-	script	MVP	-1,{

OnClock1627:
goto startlmsevent;

startlmsevent:
announce "MVP Summoner: We will be having our MVP summoning event.",0;
sleep2 10000;
announce "MVP Summoner: Those who want to play, please proceed to middle of Prontera and wait for me",0;
sleep2 10000;
announce "MVP Summoner: After 1 Minute the Registration will close.",0;
sleep2 10000;
announce "MVP Summoner: Please go to the middle of Prontera and Register now if you want to join.",0;
enablenpc "MVP Summoner";
initnpctimer;
end;

OnTimer30000:
announce "MVP Summoner: Last 30 seconds.",0;
sleep2 5000;
announce "MVP Summoner: If you want to join please Register in Prontera.",0;
end;

OnTimer50000:
announce "MVP Summoner: Last 10 seconds.",0;
end;

OnTimer55000:
announce "MVP Summoner: 5.",0;
end;

OnTimer56000:
announce "MVP Summoner: 4.",0;
end;

OnTimer57000:
announce "MVP Summoner: 3.",0;
end;

OnTimer58000:
announce "MVP Summoner: 2.",0;
end;

OnTimer59000:
announce "MVP Summoner: 1.",0;
end;

OnTimer60000:
announce "MVP Summoner: Time's up.",0;
end;

OnTimer61000:
disablenpc "MVP Summoner";
donpcevent "Summoner::OnEnable";
stopnpctimer;
end;
}
//---------All Job Registration---------------
prontera,156,171,5	script	MVP Summoner	106,{
warp "pvp_n_1-5",0,0;
end;



}

//--------------------------

//--------------------------
pvp_n_1-5,99,100,6	script	Summoner	56,{

OnEnable:
pvpoff "pvp_n_1-5";
if(getmapusers("pvp_n_1-5") == 0) goto L_None;
mapannounce "pvp_n_1-5","Hi guys! Goodluck to all of you.",0;
sleep2 10000;
mapannounce "pvp_n_1-5","I'll be summoning a Rare MVP.",0;
sleep2 10000;
mapannounce "pvp_n_1-5","Please make sure that you're full equipped.",0;
sleep2 10000;
mapannounce "pvp_n_1-5","What are we waiting for?",0;
sleep2 10000;
mapannounce "pvp_n_1-5","Get ready at the count of 5 we will start!",0;
sleep2 10000;
mapannounce "pvp_n_1-5","5",0;
sleep2 5000;
mapannounce "pvp_n_1-5","4",0;
sleep2 4000;
mapannounce "pvp_n_1-5","3",0;
sleep2 3000;
mapannounce "pvp_n_1-5","2",0;
sleep2 2000;
mapannounce "pvp_n_1-5","1",0;
sleep2 1000;
goto L_MVP;
end;

L_MVP:
killmonster .Map$[ .RandMap ],"All";
set .RandMap,rand( getarraysize( .Map$ ) );
set .RandMVP,rand( getarraysize( .MVP ) );
monster .Map$,0,0,"MVP Event",.MVP[ .RandMVP ],3,strnpcinfo(0)+"::OnKilled";
announce "MVP Event : "+getmonsterinfo( .MVP[ .RandMVP ],0 )+" occur in "+.Map$[ .RandMap ]+" .",0;
end;

OnKilled:
announce "MVP Event : MVPs are all dead. Let's meet again tomorrow",0;
mapwarp .Map$,"prontera",156,175;
end;

L_None:
disablenpc "Summoner";
pvpoff "pvp_n_1-5";
end;

OnInit:
setarray .Map$[0],"pvp_n_1-5";
setarray .MVP[0],1917,1708,1957,1647,1646,1650,1651,1649,1648;
end;

}


// == Mapflags
pvp_n_1-5	mapflag	nowarp
pvp_n_1-5	mapflag	nowarpto
pvp_n_1-5	mapflag	noteleport
pvp_n_1-5	mapflag	nosave
pvp_n_1-5	mapflag	nomemo
pvp_n_1-5	mapflag	nobranch




Edited by geoffreypogi
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

On your "monster" command, you should also include the name of the npc together with your label.

 

Find:

monster .Map$,0,0,"MVP Event",.MVP[ .RandMVP ],3,strnpcinfo(0)+"::OnKilled";

Replace:

monster .Map$,0,0,"MVP Event",.MVP[ .RandMVP ],3,"Summoner::OnKilled";
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  71
  • Reputation:   0
  • Joined:  05/13/16
  • Last Seen:  

Hi!

I'm able to fix it yesterday. thx for your reply 

Edited by geoffreypogi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...