Jump to content
  • 0

Requesting MVP Summoner


Question

Posted (edited)

Hi guys! well i have a different idea of this kind of script ~ so let me explain it.

 

 

 

so here, Everytime A Player kills an MVP's there will be 30 ~ 50% chance of summoning a single treasure chest ( randomly from each castle's )

 

 

 

 

Well i hope you guys can help me with this. thanks! rAthena! 

 

 

 

 

( Got this idea from Aura Kingdom.. anyone here playing aura kingdom? Raise your hands! ) hahaha!

Edited by Yoona

5 answers to this question

Recommended Posts

Posted
-	script	tbox	-1,{

OnNPCKillEvent:
	if(getmonsterinfo(killedrid,22) > 1) {
		getmapxy(.@mvp$,.@mx,.@my,0);
		if(rand(100) < 40) monster .@mvp$,.@mx,.@my,"--ja--",1234,1;
	}
end;

}

change 1234 to tbox ID

Posted
-	script	tbox	-1,{

OnNPCKillEvent:
	if(getmonsterinfo(killedrid,22) > 1) {
		getmapxy(.@mvp$,.@mx,.@my,0);
		if(rand(100) < 40) monster .@mvp$,.@mx,.@my,"--ja--",1234,1;
	}
end;

}

change 1234 to tbox ID

 

 

what if summoning tbox will be random from different castle like the one Kriemhild summon then from scared_altar tbox. 

Posted

Here you go, just edit the mob ids.

-	script	tbox	-1,{

OnNPCKillEvent:
	if(getmonsterinfo(killedrid,22) > 1) {
		getmapxy(.@mvp$,.@mx,.@my,0);
		setarray .@T_Box[0],1111,2222,3333,4444; //Edit to Treasure Box MOB Ids
		if(rand(10) < 4) monster .@mvp$,.@mx,.@my,"--ja--",.@T_Box[rand(getarraysize(.@T_Box))],1;
	}
end;


}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...