
Originally Posted by
§ympath„
I don't know any mini-game tutorials, but for your second question, about the phats, yes you can.
e.g with espeon:
in PlayerCombat.java, under
Code:
public void attackPlayer() {
you can add
Code:
if (opp.equipment[0] == 1048) {
p.getActionSender().sendMessage(p, "You cannot attack players with White Partyhats!");
p.resetAttack();
return;
}
So you can't attack someone with a white partyhats.
Wrong, This is the real way.
First you find the minigame name like here some stuff i made up
Code:
Public void TestGame(Player p) {
if (p == null || p.steam == null) {
}
}
Then for the game team capes do this
Code:
if (p.TestGame(p) && p.itemId == "ID" || p2.TestGame(p) && p2.itemId == "ID") {
p.message(p, "You cannot attack your team mate!");
p.resetAttack();
p2.resetAttack();
}
Done.
Sept my code i made you will not work for you, it was only a quick noobie example lol.