bump
|
|
when i set up the points system some monsters add more points like 1-5 because i made a high-scores board for amount of monsters killed. I don't know how to make all monster give 1 point instead of random amounts.
I figured it should work if u do + 1 but no.. monster amounts vary like nex gives 3 sunfreet gives 4 per kill others give 1 or 2. Any help would be appreciated. Thank you!
player.java
public int corp = 0;
public int getCorp() {
return corp;
}
public void setCorp(int corp) {
this.corp = corp;
}
Npc.java
if (getId() == 8133) {
player.setCorp(player.getCorp() + 1);
}
bump

So... what's the issue.
the points for all npc don't come out as +1 some are like +2,+3, +4, so the points aren't going up by increments of +1
Try this. Instead of just have player.setCorp(player.getCorp() + 1);
Try using it like this player.setCorp(player.getCorp() += 1);
The green text is the changed code.
Code:public int corp = 0; public int getCorp() { return corp; } public void setCorp(int corp) { this.corp = corp; } Npc.java if (getId() == 8133) { player.setCorp(player.getCorp() += 1); }


| « 718 rsps source help | help? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |