Jump to content
  • 0

Please to help me about the MVP tombstone script and MVP Ranking score.


chayjaja

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  02/21/12
  • Last Seen:  

Could you please to help me about the  MVP tombstone script and MVP Ranking score.

I have the problem about the MVP Ranking script. Everytime to killed

the  MVP boss (after added the tombstone script into the systems) the

score can't record to the NPC Ranking.

I don't know what's happen

with the both script. But the NPC MVP Ranking score is working with the

MVP boss normally respawn all MVP map and the MVP boss born from GM

command (@monster mobid).

Reference the tombstone link.

http://www.eathena.ws/board/index.php?showtopic=273450

P.S. Sorry about my English.

(You can see the script on attachment files at below.)

Thank you very much for help.

biggrin.png

Tombstone.txt

Ranking2.txt

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Replace in Ranking

-    script    Auto Ranking System    -1,{
OnNPCKillEvent:
if ( $optionmvp == 1 && ( killedrid == 1086 || killedrid == 1112 || killedrid == 1115 || killedrid == 1150 || killedrid == 1159 || killedrid == 1252 || killedrid == 1583 || killedrid == 1038 || killedrid == 1046 || killedrid == 1087 || killedrid == 1147 || killedrid == 1251 || killedrid == 1492 || killedrid == 1157 || killedrid == 1312 || killedrid == 1389 || killedrid == 1418 || killedrid == 1658 || killedrid == 1885 || killedrid == 1039 || killedrid == 1190 || killedrid == 1373 || killedrid == 1272 || killedrid == 1623 || killedrid == 1630 || killedrid == 1685 || killedrid == 1719 || killedrid == 1785 || killedrid == 1734 || killedrid == 1059 || killedrid == 1511 || killedrid == 1688 || killedrid == 1708 || killedrid == 1646 || killedrid == 1648 || killedrid == 1647 || killedrid == 1649 || killedrid == 1751 || killedrid == 1779 || killedrid == 1650 || killedrid == 1871 || killedrid == 1768 || killedrid == 1651 || killedrid == 1832 || killedrid == 1874 ) ) {
    set MKPoint,MKPoint+1;    dispbottom "You got the score [M]VP [K]illing  More 1 Point Total "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1086)    {/*Golden Bug    */set MKPoint,MKPoint+1;    dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1112)    {/*Drake        */set MKPoint,MKPoint+1;    dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1115)    {/*Eddga        */set MKPoint,MKPoint+1;    dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1150)    {/*Moonlight    */set MKPoint,MKPoint+1;    dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1159)    {/*Phreeoni    */set MKPoint,MKPoint+1;    dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1252)    {/*Garm        */set MKPoint,MKPoint+1;    dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1583)    {/*Tao Gunka    */set MKPoint,MKPoint+3;    dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1038)    {/*Osiris        */set MKPoint,MKPoint+3;    dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1046)    {/*Doppelganger    */set MKPoint,MKPoint+3;    dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1087)    {/*Orc Hero    */set MKPoint,MKPoint+3;    dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1147)    {/*Maya        */set MKPoint,MKPoint+3;    dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1251)    {/*Stormy Knight    */set MKPoint,MKPoint+3;    dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1492)    {/*Samurai    */set MKPoint,MKPoint+3;    dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1157)    {/*Pharaoh    */set MKPoint,MKPoint+5;    dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1312)    {/*TurtleGeneral    */set MKPoint,MKPoint+5;    dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1389)    {/*Dracula        */set MKPoint,MKPoint+5;    dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1418)    {/*EvilSnakeLord    */set MKPoint,MKPoint+5;    dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1658)    {/*Egnigem Cenia    */set MKPoint,MKPoint+5;    dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1885)    {/*Zmey Gorynych    */set MKPoint,MKPoint+5;    dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1039)    {/*Baphomet    */set MKPoint,MKPoint+7;    dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1190)    {/*Orc Lord    */set MKPoint,MKPoint+7;    dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1373)    {/*LordOfTheDead    */set MKPoint,MKPoint+7;    dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1272)    {/*Dark Lord    */set MKPoint,MKPoint+7;    dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1623)    {/*RSX-0806    */set MKPoint,MKPoint+7;    dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1630)    {/*White Lady    */set MKPoint,MKPoint+7;    dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1685)    {/*Vesper        */set MKPoint,MKPoint+7;    dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1719)    {/*Detardeurus    */set MKPoint,MKPoint+7;    dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1785)    {/*Atros        */set MKPoint,MKPoint+9;    dispbottom "You got the score   [M]VP [K]illing  More 9 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1734)    {/*Kiel D-01    */set MKPoint,MKPoint+9;    dispbottom "You got the score   [M]VP [K]illing  More 9 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1059)    {/*Mistress    */set MKPoint,MKPoint+13;    dispbottom "You got the score   [M]VP [K]illing  More 13 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1511)    {/*Amon Ra    */set MKPoint,MKPoint+13;    dispbottom "You got the score   [M]VP [K]illing  More 13 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1688)    {/*Lady Tanee    */set MKPoint,MKPoint+13;    dispbottom "You got the score   [M]VP [K]illing  More 13 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1708)    {/*Thanatos    */set MKPoint,MKPoint+13;    dispbottom "You got the score   [M]VP [K]illing  More 13 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1646)    {/*Lord Knight    */set MKPoint,MKPoint+19;    dispbottom "You got the score   [M]VP [K]illing  More 19 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1648)    {/*Whitesmith    */set MKPoint,MKPoint+19;    dispbottom "You got the score   [M]VP [K]illing  More 19 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1647)    {/*AssassinCross    */set MKPoint,MKPoint+19;    dispbottom "You got the score   [M]VP [K]illing  More 19 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1649)    {/*High Priest    */set MKPoint,MKPoint+19;    dispbottom "You got the score   [M]VP [K]illing  More 19 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1751)    {/*Valkyrie    */set MKPoint,MKPoint+25;    dispbottom "You got the score   [M]VP [K]illing  More 25 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1779)    {/*Ktullanux    */set MKPoint,MKPoint+25;    dispbottom "You got the score   [M]VP [K]illing  More 25 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1650)    {/*Sniper        */set MKPoint,MKPoint+25;    dispbottom "You got the score   [M]VP [K]illing  More 25 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1871)    {/*Fallen Bishop    */set MKPoint,MKPoint+25;    dispbottom "You got the score   [M]VP [K]illing  More 25 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1768)    {/*GloomUnder    */set MKPoint,MKPoint+30;    dispbottom "You got the score   [M]VP [K]illing  More 30 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1651)    {/*High Wizard    */set MKPoint,MKPoint+30;    dispbottom "You got the score   [M]VP [K]illing  More 30 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1832)    {/*Ifrit        */set MKPoint,MKPoint+50;    dispbottom "You got the score   [M]VP [K]illing  More 50 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
else if (killedrid == 1874)    {/*Beelzebub     */set MKPoint,MKPoint+50;    dispbottom "You got the score   [M]VP [K]illing  More 50 Point Total  "+MKpoint+" Point";    if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;    }
close;

 

by

 

-	script	Auto Ranking System	-1,{
OnNPCKillEvent:
	if( !playerattached() ) {
		attachrid( .player_killer );
		set .@mob_id, .mob_id_kill;
	}
	else
		set .@mob_id, killedrid;
if ( $optionmvp == 1 && ( .@mob_id == 1086 || .@mob_id == 1112 || .@mob_id == 1115 || .@mob_id == 1150 || .@mob_id == 1159 || .@mob_id == 1252 || .@mob_id == 1583 || .@mob_id == 1038 || .@mob_id == 1046 || .@mob_id == 1087 || .@mob_id == 1147 || .@mob_id == 1251 || .@mob_id == 1492 || .@mob_id == 1157 || .@mob_id == 1312 || .@mob_id == 1389 || .@mob_id == 1418 || .@mob_id == 1658 || .@mob_id == 1885 || .@mob_id == 1039 || .@mob_id == 1190 || .@mob_id == 1373 || .@mob_id == 1272 || .@mob_id == 1623 || .@mob_id == 1630 || .@mob_id == 1685 || .@mob_id == 1719 || .@mob_id == 1785 || .@mob_id == 1734 || .@mob_id == 1059 || .@mob_id == 1511 || .@mob_id == 1688 || .@mob_id == 1708 || .@mob_id == 1646 || .@mob_id == 1648 || .@mob_id == 1647 || .@mob_id == 1649 || .@mob_id == 1751 || .@mob_id == 1779 || .@mob_id == 1650 || .@mob_id == 1871 || .@mob_id == 1768 || .@mob_id == 1651 || .@mob_id == 1832 || .@mob_id == 1874 ) ) {
	set MKPoint,MKPoint+1;	dispbottom "You got the score [M]VP [K]illing  More 1 Point Total "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1086)	{/*Golden Bug	*/set MKPoint,MKPoint+1;	dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1112)	{/*Drake		*/set MKPoint,MKPoint+1;	dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1115)	{/*Eddga		*/set MKPoint,MKPoint+1;	dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1150)	{/*Moonlight	*/set MKPoint,MKPoint+1;	dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1159)	{/*Phreeoni	*/set MKPoint,MKPoint+1;	dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1252)	{/*Garm		*/set MKPoint,MKPoint+1;	dispbottom "You got the score   [M]VP [K]illing  More 1 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1583)	{/*Tao Gunka	*/set MKPoint,MKPoint+3;	dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1038)	{/*Osiris		*/set MKPoint,MKPoint+3;	dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1046)	{/*Doppelganger	*/set MKPoint,MKPoint+3;	dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1087)	{/*Orc Hero	*/set MKPoint,MKPoint+3;	dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1147)	{/*Maya		*/set MKPoint,MKPoint+3;	dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1251)	{/*Stormy Knight	*/set MKPoint,MKPoint+3;	dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1492)	{/*Samurai	*/set MKPoint,MKPoint+3;	dispbottom "You got the score   [M]VP [K]illing  More 3 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1157)	{/*Pharaoh	*/set MKPoint,MKPoint+5;	dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1312)	{/*TurtleGeneral	*/set MKPoint,MKPoint+5;	dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1389)	{/*Dracula		*/set MKPoint,MKPoint+5;	dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1418)	{/*EvilSnakeLord	*/set MKPoint,MKPoint+5;	dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1658)	{/*Egnigem Cenia	*/set MKPoint,MKPoint+5;	dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1885)	{/*Zmey Gorynych	*/set MKPoint,MKPoint+5;	dispbottom "You got the score   [M]VP [K]illing  More 5 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1039)	{/*Baphomet	*/set MKPoint,MKPoint+7;	dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1190)	{/*Orc Lord	*/set MKPoint,MKPoint+7;	dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1373)	{/*LordOfTheDead	*/set MKPoint,MKPoint+7;	dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1272)	{/*Dark Lord	*/set MKPoint,MKPoint+7;	dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1623)	{/*RSX-0806	*/set MKPoint,MKPoint+7;	dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1630)	{/*White Lady	*/set MKPoint,MKPoint+7;	dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1685)	{/*Vesper		*/set MKPoint,MKPoint+7;	dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1719)	{/*Detardeurus	*/set MKPoint,MKPoint+7;	dispbottom "You got the score   [M]VP [K]illing  More 7 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1785)	{/*Atros		*/set MKPoint,MKPoint+9;	dispbottom "You got the score   [M]VP [K]illing  More 9 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1734)	{/*Kiel D-01	*/set MKPoint,MKPoint+9;	dispbottom "You got the score   [M]VP [K]illing  More 9 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1059)	{/*Mistress	*/set MKPoint,MKPoint+13;	dispbottom "You got the score   [M]VP [K]illing  More 13 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1511)	{/*Amon Ra	*/set MKPoint,MKPoint+13;	dispbottom "You got the score   [M]VP [K]illing  More 13 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1688)	{/*Lady Tanee	*/set MKPoint,MKPoint+13;	dispbottom "You got the score   [M]VP [K]illing  More 13 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1708)	{/*Thanatos	*/set MKPoint,MKPoint+13;	dispbottom "You got the score   [M]VP [K]illing  More 13 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1646)	{/*Lord Knight	*/set MKPoint,MKPoint+19;	dispbottom "You got the score   [M]VP [K]illing  More 19 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1648)	{/*Whitesmith	*/set MKPoint,MKPoint+19;	dispbottom "You got the score   [M]VP [K]illing  More 19 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1647)	{/*AssassinCross	*/set MKPoint,MKPoint+19;	dispbottom "You got the score   [M]VP [K]illing  More 19 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1649)	{/*High Priest	*/set MKPoint,MKPoint+19;	dispbottom "You got the score   [M]VP [K]illing  More 19 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1751)	{/*Valkyrie	*/set MKPoint,MKPoint+25;	dispbottom "You got the score   [M]VP [K]illing  More 25 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1779)	{/*Ktullanux	*/set MKPoint,MKPoint+25;	dispbottom "You got the score   [M]VP [K]illing  More 25 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1650)	{/*Sniper		*/set MKPoint,MKPoint+25;	dispbottom "You got the score   [M]VP [K]illing  More 25 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1871)	{/*Fallen Bishop	*/set MKPoint,MKPoint+25;	dispbottom "You got the score   [M]VP [K]illing  More 25 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1768)	{/*GloomUnder	*/set MKPoint,MKPoint+30;	dispbottom "You got the score   [M]VP [K]illing  More 30 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1651)	{/*High Wizard	*/set MKPoint,MKPoint+30;	dispbottom "You got the score   [M]VP [K]illing  More 30 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1832)	{/*Ifrit		*/set MKPoint,MKPoint+50;	dispbottom "You got the score   [M]VP [K]illing  More 50 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
else if (.@mob_id == 1874)	{/*Beelzebub 	*/set MKPoint,MKPoint+50;	dispbottom "You got the score   [M]VP [K]illing  More 50 Point Total  "+MKpoint+" Point";	if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0;	}
close;

 

 

I don't think tombstone NPC worked

.mvpid[ atoi( strnpcinfo(2) ) ] : strnpcinfo(2) is the hidden part of the NPC's name, 5_mvp is not a number so atoi( strnpcinfo(2) ) always == 0

movenpc strnpcinfo(0), $@tomb_x, $@tomb_y; : $@tomb_x isn't defined...


// ~~~~~ show time left in days, hours, minutes and seconds ~~~~~

function	script	timeleft__	{
	set .@left, getarg(0);
	if ( .@left <= 0 ) return getarg(0);
	set .@day, .@left / 86400;
	set .@hour, .@left % 86400 / 3600;
	set .@min, .@left % 3600 / 60;
	set .@sec, .@left % 60;
	return ( ( .@day )?.@day +" day ":"" )+( ( .@day || .@hour )?.@hour +" hour ":"" )+( ( .@day == 0 && ( .@hour || .@min ) )?.@min +" min ":"" )+( ( .@day || .@hour )?"":.@sec +" sec" );
}

-	script	tombstone_dup	-1,{
	getmapxy .@map$, .@x, .@y, 1;
	if ( .@x == 0 && .@y == 0 ) end;
	set .@id, atoi( strnpcinfo(2) );
	mes "[ ^ff0000Tomb^000000 ]";
	mes "^999999-:--:--:--:--:--:--:--:--:--:--:-^000000";
	mes "^ff0000?????????^000000 "+ strmobinfo( 2, .mvpid[.@id] );
	mes "^ff0000???????????^000000 "+ .name$[.@id];
	mes "^999999-:--:--:--:--:--:--:--:--:--:--:-^000000";
	close;

Onmvpdead:
	// trigger MVP Ranking script
	set .@id, atoi( strnpcinfo(2) );
	set getvariableofnpc( .player_killer, "Auto Ranking System" ), getcharid(3);
	set getvariableofnpc( .mob_id_kill, "Auto Ranking System" ), .mvpid[.@id];
	sleep2 2;
	donpcevent "Auto Ranking System::OnNPCKillEvent";
	//
	set .@id, atoi( strnpcinfo(2) );
	getmapxy .@map$, .@tomb_x, .@tomb_y, 0;
	set .name$[.@id], strcharinfo(0);
	movenpc strnpcinfo(0), .@tomb_x, .@tomb_y;
	set .@loop, .respawn;
	while ( .@loop ) {
		delwaitingroom strnpcinfo(0);
		waitingroom callfunc("timeleft__", .@loop ), 0;
		set .@loop, .@loop -1;
		sleep 1000;
	}
	delwaitingroom strnpcinfo(0);
	monster .@map$, 0,0, "--ja--", .mvpid[.@id], 1, strnpcinfo(0) +"::Onmvpdead";
	movenpc strnpcinfo(0), 0,0;
	end;

OnInit:
	if ( strnpcinfo(2) == "" ) {
		set .respawn, 3650; // seconds to respawn
		setarray .mvpid[1], 1038; // mob array according to npc index
	}
	else {
		sleep 1;
		getmapxy .@map$, .@x, .@y, 1;
		monster .@map$, 0,0, "--ja--", .mvpid[ atoi( strnpcinfo(2) ) ], 1, strnpcinfo(0) +"::Onmvpdead";
	}
	end;
}

pvp_n_1-5,0,0,0	duplicate(tombstone_dup)	Tomb#1	565
//guild_vs2,0,0,0	duplicate(tombstone_dup)	Tomb#2	565
//guild_vs3,0,0,0	duplicate(tombstone_dup)	Tomb#3	565
//guild_vs4,0,0,0	duplicate(tombstone_dup)	Tomb#4	565
//guild_vs5,0,0,0	duplicate(tombstone_dup)	Tomb#5	565
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

When you setup your MVP Tomb script, you changed the MVPs' event labels to something like "tombstone_dup::Onmvpdead".

If a monster has a defined event label, then it will NOT trigger global OnNPCKillEvent label(s).

That's why your MVP Ranking script is not counting the kills.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  02/21/12
  • Last Seen:  

Could you please to explain the step to change event label for counting MVP Ranking script.
 

Thank you Mr Brian for helping.

Edited by chayjaja
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

You could add a doevent to Tombstone.txt that triggers your MVP script:

// trigger MVP Ranking script

doevent "Auto Ranking System::OnNPCKillEvent";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  02/21/12
  • Last Seen:  

Thank you again MR Brian. If it's possible please explain about detailed procedures to fix the Tomb script for me.

 

P.S. I'm not good skill for the complex script and sorry for disturb to many time.

Edited by chayjaja
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

In your script (Tombstone.txt), go to line 39 which looks like this:

end;
Add the 2 lines I posted (starting at line 39), so now it looks like this:
// trigger MVP Ranking script

doevent "Auto Ranking System::OnNPCKillEvent";

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  02/21/12
  • Last Seen:  

Thank you MR Brian for explain the step to fix but it isn't work and nothing happens not counting the kills.

Thank you for help.

/swt

// ~~~~~ show time left in days, hours, minutes and seconds ~~~~~

function	script	timeleft__	{
set .@left, getarg(0);
if ( .@left <= 0 ) return getarg(0);
set .@day, .@left / 86400;
set .@hour, .@left % 86400 / 3600;
set .@min, .@left % 3600 / 60;
set .@sec, .@left % 60;
return ( ( .@day )?.@day +" day ":"" )+( ( .@day || .@hour )?.@hour +" hour ":"" )+( ( .@day == 0 && ( .@hour || .@min ) )?.@min +" min ":"" )+( ( .@day || .@hour )?"":.@sec +" sec" );
}

-	script	tombstone_dup	-1,{
getmapxy .@map$, .@x, .@y, 1;
if ( .@x == 0 && .@y == 0 ) end;
set .@id, atoi( strnpcinfo(2) );
mes "[ ^ff0000Tomb^000000 ]";
mes "^999999-:--:--:--:--:--:--:--:--:--:--:-^000000";
mes "^ff0000หลุมศพของ^000000 "+ strmobinfo( 2, .mvpid[.@id] );
mes "^ff0000ถูกกำจัดโดย^000000 "+ .name$[.@id];
mes "^999999-:--:--:--:--:--:--:--:--:--:--:-^000000";
close;

Onmvpdead:
set .@id, atoi( strnpcinfo(2) );
set .@map$, strcharinfo(3);
set .name$[.@id], strcharinfo(0);
movenpc strnpcinfo(0), $@tomb_x, $@tomb_y;
set .@loop, .respawn;
while ( .@loop ) {
delwaitingroom strnpcinfo(0);
waitingroom callfunc("timeleft__", .@loop ), 0;
set .@loop, .@loop -1;
sleep 1000;
}
delwaitingroom strnpcinfo(0);
monster .@map$, 0,0, "--ja--", .mvpid[.@id], 1, strnpcinfo(0) +"::Onmvpdead";
movenpc strnpcinfo(0), 0,0;
// trigger MVP Ranking script
doevent "Auto Ranking System::OnNPCKillEvent";
end;

OnInit:
if ( strnpcinfo(2) == "" ) {
set .respawn, 3650; // seconds to respawn
setarray .mvpid[1], 1038; // mob array according to npc index
}
else {
sleep 1;
getmapxy .@map$, .@x, .@y, 1;
monster .@map$, 0,0, "--ja--", .mvpid[ atoi( strnpcinfo(2) ) ], 1, strnpcinfo(0) +"::Onmvpdead";
}

end;
}

pvp_n_1-5,0,0,0	duplicate(tombstone_dup)	Tomb#1_mvp	565
//guild_vs2,0,0,0	duplicate(tombstone_dup)	Tomb#2_mvp	565
//guild_vs3,0,0,0	duplicate(tombstone_dup)	Tomb#3_mvp	565
//guild_vs4,0,0,0	duplicate(tombstone_dup)	Tomb#4_mvp	565
//guild_vs5,0,0,0	duplicate(tombstone_dup)	Tomb#5_mvp	565
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  02/21/12
  • Last Seen:  

Thank you very much MR. Metaling you are awesome!!..It's working!!.. :D

PS. Thank you everyone to help me for the script and the others I was sent PM to ask about this problem.

/thx /thx /thx

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...