youdied() method?
where they items are added to the ground, add it the random item stuff.
|
I coded in the PvP delta system in the tutorials section, but when someone dies they don't get a random drop. How can I make it so when a player dies theres a random drop? Giving ++++++REP.
youdied() method?
where they items are added to the ground, add it the random item stuff.
Drophandler.
Use an array to make a list of drops then add a randomizer like the one for deltas clue scrolls...Then make it drop one of the random items when a player dies
you put ++Rep so first rep and then help xD
otherwise put Rep++.
seatch for:
and addCode:if (deathStage == 2 && System.currentTimeMillis() - deathTimer >= 2500 && !isInPitGame() && !IsInFightCave())
killerz.getDrop();
=]
Extra:
making a On and Off on the loot:
declare:so it will be already on when server statsCode:public boolean bountydrop = true;
commands:
and where you added the: getdrop()Code:~if(command.startsWith("bountydrop") && playerRights >= 3) { yell("Bounty drops has turned on by " + playerName); bountydrop = true; } if(command.startsWith("bountyoff") && playerRights >= 3) { yell("Bounty drops has turned off by " + playerName); bountydrop = false; }
replace with:
did all by myselfCode:if(bountydrop == true){ killerz.getDrop(); }
ahh... didn't saw... ignore the ~
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |