bumb
|
Hello I'm working on a server and I'm thinking about adding pvp drops but i dont want it to be applied to dying just anywhere because that would ruin the economy of my partner's and my 317 delta. Either that or making a set item replace itself with any random item in the item.cfg. I have no idea how to do either, if anybody could provide me with the coding for either one it'd be much appreciated and I will rep++ thank you.
Make a boolean for a certain area then if it's in that area do the misc.random(addItem) to the dieing player so when he dies you get the item. But if it's in a place where you keep more than 1 items thers a chance of you not getting 1 of the items. There's better ways to do this but this is easiest.
void dropItems()
{
if (isInPvpArea()){
/*DROP HERE e.g. pvp.getPvpDrop(this);*/
} else {
/*Other stuff here*/
}
}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |