Jump to content
  • 0

Treasure Chest Spawn when a mvp killed


Limestone

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

As the title says, how can script like this? Thanks!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  


- script mvp_chest -1,{

OnNPCKillEvent:

if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) {

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

}

end;

}

Edited by Technoken
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

Thank you!

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