Jump to content
  • 0

Treasure Chest Spawn when a mvp killed


Question

4 answers to this question

Recommended Posts

  • 1
Posted (edited)

Try this

-	script	mvp_chest	-1,{
OnNPCKillEvent:
	if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) {
		getmapxy(.@map$,.@x,.@y,0);
		monster .@map$,rand(.@x,.@x-3),rand(.@y-3,.@y),"--ja--",1324,1;
	}
end;
}

Idk if there's a script that get the killed monster coordinates. But this script will summon the treasure chest near the killer.

 

EDIT:

If you want it to be dropped spawned exactly where the monster was killed maybe you can use this patch LINK

Edited by Technoken
  • Upvote 3
  • 0
Posted (edited)


- script mvp_chest -1,{

OnNPCKillEvent:

if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) {

monster "prontera",0,0,"--ja--",1324,1;

}

end;

}

Edited by Technoken
  • 0
Posted
-	script	mvp_chest	-1,{
OnNPCKillEvent:
	if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) {
		monster "prontera",0,0,"--ja--",1324,1;
	}
end;
}

 

Hi! How about spawn of the treasure box beside the mvp?

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